Questions tagged [offer]

For questions regarding Offers to buy or sell on Stellar.

Filter by
Sorted by
Tagged with
0
votes
0answers
10 views

orderbook is empty

Any one knows how Orderbook is generated? I create a few offers: https://stellar.expert/explorer/testnet/asset/MYRT-GDNW52QWNSPDPIFH2J3PHOTLE4AUWGEUKL7Q7CMVHASHSYK45XWSXDRO?filter=offers&order=...
0
votes
3answers
25 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
0answers
8 views

How to know if I have any pending offer for an asset

A trustline for an asset can be deleted by changeTrust and assigning its limit to 0. But the server returns an error op_invalid_limit if there is a pending buy offer for the asset. Is there a way to ...
0
votes
0answers
16 views

Concept: ManageSellOffer didn't update but instead create a new offer

I read the documentation and it says that by providing the original offerId of a ManageSellOffer, one is able to change its price. But after I tried it out, I found that it creates another offer and ...
0
votes
1answer
25 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
1answer
35 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
1answer
22 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
1answer
86 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....
1
vote
1answer
44 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 ...
1
vote
1answer
109 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: [ '...
1
vote
1answer
63 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
0answers
35 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
1answer
46 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
1answer
72 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
1answer
68 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 ...
0
votes
1answer
196 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
1answer
37 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
2answers
116 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
2answers
91 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
1answer
66 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
1answer
352 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
1answer
74 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?