Skip to main content

Questions tagged [offer]

For questions regarding Offers to buy or sell on Stellar.

Filter by
Sorted by
Tagged with
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-...
Claude's user avatar
  • 11
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 ...
Ben Racicot's user avatar
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.
kipadip0001's user avatar
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 ...
inative's user avatar
  • 21
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 ...
J R's user avatar
  • 157
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 ...
J R's user avatar
  • 157
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 ...
J R's user avatar
  • 157
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" }, "...
J R's user avatar
  • 157
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....
J R's user avatar
  • 157
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 ...
J R's user avatar
  • 157
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: [ '...
rohan sethi's user avatar
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....
Murray Bryant's user avatar
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 ...
spentak's user avatar
  • 11
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 + #...
Yura Lazarev's user avatar
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 ...
user1363's user avatar
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 ...
Prashant Prabhakar Singh's user avatar
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(...
Prashant Prabhakar Singh's user avatar
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?
Anshul mittal's user avatar
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 ...
Kuyawa's user avatar
  • 1,328
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 ...
Kuyawa's user avatar
  • 1,328
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 ...
Paul Hill's user avatar
  • 139
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 ...
Paul Hill's user avatar
  • 139
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?
Synesso's user avatar
  • 3,367