David Dombrowsky
David Dombrowsky
does this mean it's no longer a limitation of the go sdk?
maybe if I could change `PricePrecision` in : ``` 2020/04/17 22:32:06 orderConstraints for trading pair BTC/XLM: OrderConstraints[PricePrecision: 7, VolumePrecision: 7, MinBaseVolume: 0.0000001, MinQuoteVolume: ] ```
This appears to be hardcoded: `plugins/sdex.go` ``` 30 var sdexOrderConstraints = model.MakeOrderConstraints(7, 7, 0.0000001) ``` Welp, that was fun while it lasted.
@nikhilsaraf > @ddombrowsky the Stellar DEX only allows 7 decimals of precision for all assets. This cannot be changed. While this is true, prices are specified in `numerator / denominator`...
Unfortunately, it's not as simple as editing that one line in `plugins/sdex.go`. It blows up: ``` 2020/04/18 10:48:03 error in selling sub-strategy: unable to create preceding offers: unable to create...
If I look at one of the raw offers: ``` { "id": "125589649803780097", "paging_token": "125589649803780097", "transaction_successful": true, "source_account": "GAWYHDRCFT2YOFFDYAAPSLJB6ULIZBSNNPJKW6KIEU3EQ7KJZPUBVT24", "type": "manage_sell_offer", "type_i": 3, "created_at": "2020-04-18T16:58:02Z", "transaction_hash": "4d143c226e44d06c303644551ef5c70f0fedbba4dbc724cd56a50f65dcad3519", "amount": "0.0287770", "price":...
@nikhilsaraf > 1. you are getting 7 decimal places of precision but you are being rounded as described above. The only solution to this is increasing your spread as described...
[screenlog.19.zip](https://github.com/stellar/kelp/files/4503453/screenlog.19.zip)
@nikhilsaraf > This error is currently preventing us from using more than 7 decimals in kelp. Can you instead specify the price using the fractional notation? IIRC the SDK allows...
as a work-around, I was able to hack in a switch from "sell" to "buy" when the price is too low to be significant. https://github.com/ddombrowsky/kelp/commits/405-flip-buy-sell @nikhilsaraf If this problem is...