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 ...
user3188445's user avatar
  • 1,221
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 ...
MonsieurNicolas's user avatar
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 ...
Orbit Lens's user avatar
  • 6,886
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() ...
Orbit Lens's user avatar
  • 6,886
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 ...
Jon's user avatar
  • 46
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 ...
Orbit Lens's user avatar
  • 6,886
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 ...
Vinamo's user avatar
  • 191
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 ...
nikhils's user avatar
  • 1,080
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 ...
Orbit Lens's user avatar
  • 6,886
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 ...
Orbit Lens's user avatar
  • 6,886
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 ...
Steve Kirsch's user avatar
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 ...
Qumeric's user avatar
  • 146
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.
Synesso's user avatar
  • 3,367
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 ...
umbrel's user avatar
  • 938
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 ...
Synesso's user avatar
  • 3,367

Only top scored, non community-wiki answers of a minimum length are eligible