5
votes
Accepted
How to use the ManageOfferOperation with Assets in the Java SDK?
It sounds to me like you are unfamiliar with the available methods in the SDK. In addition to what Orbit Lens said, you'll need to create a transaction, sign it, and then submit it to the network.
...
4
votes
Accepted
How do you cancel all open trades for a Stellar account?
There isn't method for bulk cancelling.
Stellar cancels offers by setting the Amount parameter to 0. From the site
Manage Offer: Parameters [...] Amount: Amount of selling being sold. Set to 0 if ...
4
votes
Accepted
Monitoring if offers are filled
The OffersRequestBuilder seems like it only displays active offers. So once an order is "filled" it simply disappears. Do I need to store the offer ID and loop through active offers to check if it ...
4
votes
Accepted
Create offer has no _effect_
Effects Offer Created, Offer Updated, and Offer Removed are described in API docs, but not yielded by the Horizon. Check the bug description for more details.
3
votes
Accepted
Stellar offer fulfilment process in orderbook. Are partial bids accepted by Stellar?
Yes, orders can be partially fulfilled. The minimum tradable amount is 0.0000001.
3
votes
op_cross_self - while making a new offer
It is the MANAGE_OFFER_CROSS_SELF error described in the guides and it prevents you from unintentionally fullfilling your own previous offer:
The account has opposite offer of equal or lesser price ...
3
votes
Memo in manageoffer
The memo is part of the transaction, it's never part of an operation. You can set a memo in any transaction no matter what kind of operations it contains, so a transaction with a memo and a ...
3
votes
ManageOfferOperation - Not taking the price I set
The price you set with manageOffer is the maximum price when buying and the minimum price when selling. So it will match the best available price in the orderbook.
If you make an offer that has an ...
3
votes
How do you cancel all open trades for a Stellar account?
Since there is no method for canceling all your offers in one go, you need to submit many manageOfferOp together, one for each offer. The good news is that you can submit up to 100 of this operations ...
2
votes
Accepted
Various errors in submitting offers
You have to provide buyAmount instead of amount in manageBuyOffer operations.
The 400 error on the testnet may be cause by different reasons: no trustline, not enough funds, invalid signers, etc. ...
2
votes
How to use the ManageOfferOperation with Assets in the Java SDK?
Have you checked the Java SDK docs?
But createNonNativeAsset requires an KeyPair object. So, I'll need to find the issuing public ID of whatever asset I want to trade, and make a KeyPair?
Yes, any ...
2
votes
Why is amount an integer in manage_offer operation?
This page documents the core API which takes integers. You must divide by 10^7 to get the actual numbers. All of the SDKs use strings which are the actual amounts.
So the doc isn't wrong, just a bit ...
2
votes
Accepted
"Ae.sourceAccount is not a function" when deleting multiple offer operations in single transaction
It's difficult to test it out without a living test version of the issue but checking at the code I see this:
// 2. create the transaction - ready to be built
let tx = this.transactionBuilder([...
1
vote
WalletConnect stellar_signXDR method returns an XDR object that does not match the usual response data
When using stellar_signXDR, what you get is the same transaction you sent to the wallet but signed. This is the one you need to submit to the network later using any horizon available.
Btw I'm the one ...
1
vote
sold_amount and bought_amount return 0.0000 in /effects
If the trade amount is less than a rounding error (in other words, traded amount is smaller than 0.0000001), DEX engine treats it as a "dust" trade and closes the offer returning all buying/selling ...
1
vote
Accepted
How to submit a buy offer that gets incorporated to a bid entry with the same price
I think the underlying problem is that the number 100/9 has infinite decimal digits and cannot be represented as string. The price you see, 11.1111111 is a truncation of 11.11111111.... = 100/9. When ...
1
vote
Order doesn't match in Stellar
I think it is a feature with NodeJS. They don't go deep to reveal every detail down an object.
Note the difference at console.log: offerResult.records VS offerResult
server.offers('accounts', ...
1
vote
Making offer gives error: TypeError: opts.selling.toXDRObject is not a function
I found the answer. I was not representing the Assets that I need to sell properly.
Replacing MCoin with new StellarSdk.Asset('MCoin',
'GCKRPJXPGNHBPMRCXEX4MDH532BN5RLUJJOMVACA3CB7E2LWSTKTB5U2') ...
1
vote
Accepted
Can the issuer limit/approve the counter asset that can be traded against
I'll attempt to answer your many questions one-by-one.
Can the issuer limit/approve the counter asset that can be traded
against? To make sure the asset you issue does not become part of a
...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
manageofferoperation × 25offer × 8
transactions × 4
java-sdk × 4
trade × 3
horizon × 2
javascript-sdk × 2
operations × 2
dex × 2
path-payment × 2
effects × 2
stellar-core × 1
assets × 1
payments × 1
anchor × 1
fees × 1
exchanges × 1
memo × 1
ico × 1
asset-pairs × 1