Questions tagged [offer]
For questions regarding Offers to buy or sell on Stellar.
23 questions
1
vote
1
answer
26
views
When multiple individuals place identically priced offers, how does Stellar decide who will make the sale?
I inadvertently placed an offer to sell an asset in exchange for XLM only to find that I had put the same asking price as another individual. My XLM was added to the other sellers XLM in the order-...
2
votes
1
answer
40
views
"Ae.sourceAccount is not a function" when deleting multiple offer operations in single transaction
Basically deleting multiple offers with manageSellOffer operations is causing the error
"Ae.sourceAccount is not a function"
All other transactions are functional using my transactionBuilder ...
1
vote
1
answer
36
views
How do I find out the date and time a specific offer was created?
The "Offer" object only contains a "last_modified_time" field, not when it actually was created, and no information about the transaction ID or ledger number.
2
votes
0
answers
51
views
How to see "order-book" of a liquidity pool?
I've been watching trading activity on yETH/XLM market today and realized that while the orderbook API (i.e. stream from horizon.stellar.org/order_book) keeps returning order-books with very wide ...
0
votes
3
answers
53
views
Use case: how to accept only one payment for an item
For example, a seller is selling product A. The seller says that whomsoever pays first gets the product. The seller also sells product B, and whomsoever pays first gets product B, and so on.
What I ...
0
votes
1
answer
84
views
Will a market offer trigger a new subentry?
A market offer is, for example, a bid offer that takes on an outstanding ask offer at the same price and amount, and vice versa. Since the offer will get filled immediately, will the network reject ...
0
votes
1
answer
55
views
How to submit a buy offer that gets incorporated to a bid entry with the same price
An order book shows a bid entry, for example:
12:
amount: "758.2907668"
price: "11.1111111"
price_r: {n: 100, d: 9}
I submit a manageBuyOffer with buyAmount ".01" and price at "11.1111111". I ...
3
votes
1
answer
46
views
How to know if an outstanding offer was a product of a buy or a sell offer?
Is there a way to know from the following response:
{
"records": [
{
"_links": {
"self": {
"href": "https://horizon.stellar.org/offers/115426014"
},
"...
1
vote
1
answer
189
views
Various errors in submitting offers
This is my code:
var sourceSecretKey = 'REDACTED';
var sourceKeypair = StellarSdk.Keypair.fromSecret(sourceSecretKey);
var sourcePublicKey = sourceKeypair.publicKey();
var server = new StellarSdk....
2
votes
1
answer
74
views
How to get the accurate amount of bids?
An orderbook call of an asset pair returns bids as, for example:
amount: "599.3762459"
price: "0.0599376"
price_r:
d: 10427507
n: 625000
where the amount should be 10,000. Whereas, asks are returned ...
2
votes
1
answer
324
views
op_cross_self - while making a new offer
What is op_cross_self error?
I can create offers for 2 Assets ( selling and buying ).
But when creating a reverse offer for same asset, it's throwing :
{ transaction: 'tx_failed', operations: [ '...
2
votes
1
answer
132
views
Python: Retrieve Offer_id from a manage offer operation?
I am using the python py-stellar-base to create a new offer operation.
To manage the offer in the future I want to be able to retrieve the created offer_id from the completed transaction.
builder....
1
vote
0
answers
45
views
Which architecture to use for utility tokens?
Consider this scenario:
CoolVideo lets artists post videos and earn money from viewers
Viewers buy VidTokens with ETH & BTC and pay artists with VidTokens
We store the ETH & BTC. Never ...
3
votes
1
answer
63
views
How to derive a number of open Offers for a transaction set that hasn't been fully submitted to the network yet
Please help to find out a possible solutions to the following problem:
For a dedicated "Minimal Balance" service one would need to know a number of
account entries among which there are Offers ((2 + #...
3
votes
1
answer
94
views
Fill or Kill (FOK) offers on Stellar?
Is there any way currently to create Fill or Kill offers on Stellar network?
As described in Bitfinex help center:
A "fill or kill" order is a limit order that must be filled immediately in its ...
1
vote
1
answer
82
views
Order doesn't match in Stellar
I created an asset (MCoin) on Stellar test-net. I made a sell-offer of 200 MCoin in exchange for XLM and then an offer of buying 200 MCoin for XLM.
But ther orders didn't match.
Here is the script I ...
1
vote
1
answer
330
views
Making offer gives error: TypeError: opts.selling.toXDRObject is not a function
I was trying to make buy offer for a newly created asset (MCoin).
I am getting error:
TypeError: opts.selling.toXDRObject is not a function
The code of node script goes by:
server.loadAccount(...
3
votes
1
answer
57
views
What happens to offers that are completely fulfilled and are no longer part of orderbook?
Are these offers removed from account and base reserve requirement lowered for the same automatically once offer is fulfilled?
1
vote
2
answers
148
views
Best way to calculate exact offer price?
If I want to place a bidding offer for an asset at 41.5, it's getting converted to 41.499999.
Is there a way in the JS-SDK to make the price exactly as intended? I know there is a price:{n,d} object ...
2
votes
2
answers
123
views
Bidding and asking price conversion on client or server?
Price: How many units of buying it takes to get 1 unit of selling. A number representing the decimal form of price_r.
According to the Stellar guides, the price of an offer should be the amount of ...
2
votes
1
answer
87
views
How do folks keep offers in sync with market prices?
If I want to keep an offer for my asset USD@me near the current market rate for USD/XLM how would I go about that?
Do folks just add, remove and update offers non stop?
Doesn't that burn up XLM in ...
3
votes
1
answer
528
views
Can anyone explain what passive offers achieve?
I've read https://www.stellar.org/developers/guides/concepts/list-of-operations.html#create-passive-offer but I can't quite wrap my head around the purpose of a passive offer. Can anyone explain their ...
1
vote
1
answer
92
views
Which operations are required to accept an offer?
If an account has posted an offer, what is/are the operation(s) required to accept that offer?
Is it a combination of Payment and Manage Offer?