4
votes
Accepted
How to implement OTC trading of Stellar assets?
Your answer is correct, except that the thing you say is impossible is actually easy. A Stellar transaction can contain up to 100 operations, and each operation can have its own source account. So ...
4
votes
Accepted
Order of trade executions inside the last closed ledger
Taking a look at this with the assumption that the attacker controls some validators (as it makes it easier to exploit).
So the way the network deals with transaction ordering is by making it as hard ...
4
votes
Getting the 'offerId' on a new Offer and any documentation on 'xdr.ManageOfferOp'?
I had the same problem with offer id after the ManageOffer operation, and I came to the same solution. If you don't have a lot of orders and don't mind to make an extra request, you can also pull ...
3
votes
How to implement OTC trading of Stellar assets?
If you have both asset (USD and EUR) on Stellar, there's no problem at all.
const {Server, Network, Keypair, TransactionBuilder, Operation, Asset} = require('stellar-sdk')
Network.useTestNetwork()
...
3
votes
Accepted
Why doesn't Stellar match the other order?
The behavior you encountered existed in protocol versions 1 and 2. Protocol version 10, the most recently released version, incorporates CAP-0003 and CAP-0004 which make changes to the functionality ...
2
votes
Order of trade executions inside the last closed ledger
I asked the same question earlier.
Jed mentioned that trades are applied in random (actually, pseudo-random) order, and transaction fees do not affect the order in which transactions are applied ...
1
vote
What XLM asset markets allow for greater than 7 decimal places
Stellar amount representation uses a fixed 7 decimal digits, this cannot be changed by clients and this is a hard coded limit on stellar. The minimum exchangeable value is 0.0000001, also called a ...
1
vote
kelp buy-sell AMOUNT parameter
Each level has the AMOUNT parameter.
If you want each level to have increasing sizes (for example) then you can adjust the appropriate AMOUNT parameter for each level.
There is also the ...
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
How does the trade id relate to the effect id?
Effect id consists of two parts: {operation_id}-{effect_application_order}.
Operation ID is an encoded unique identifier of the operation, which contains:
Ledger sequence
Transaction application ...
1
vote
Seeing and using multiple order books on an asset?
StellarPort allows this. Left click the asset and you can either get Info, or select. Select allows you to search for the asset you want.
So if you already know the trading pair is there, you can ...
1
vote
Accepted
How do folks keep offers in sync with market prices?
As far as I know, there is no other way at the moment. If you would do 1 operation with base fee per second (which is most probably huge overkill) for one day it would cost you less than 1XLM.
Even ...
1
vote
Accepted
Which operations are required to accept an offer?
According to the Stellar developers' guide, a trade is effected when a second offer matching the first is posted.
1
vote
Bifrost for altcoins?
I'm operating anchor apay.io and half a year ago I was looking at Bifrost if it can be used for my anchor.
Potentially yes, but:
it requires some code changes
you would still need to implement ...
1
vote
Internal error on trades API
Whether counter_asset_type is required or not, you should not be seeing an internal server error. As the error document states, this is the server's fault, not yours.
I took a quick look through the ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
trade × 18dex × 4
transactions × 3
assets × 3
manageofferoperation × 3
offer × 3
horizon × 2
operations × 2
exchanges × 2
kelp × 2
effects × 2
javascript-sdk × 1
payments × 1
token × 1
ledger × 1
testnet × 1
nodes × 1
anchor × 1
history × 1
fees × 1
new-developer × 1
stellar-website × 1
bifrost × 1