dingir-exchange
dingir-exchange copied to clipboard
Broken: Adding new assets and markets over the REST API
The test examples/js/tests/set_markets.ts doesn't run through.
It is broken on many levels:
- The constants
new_assetas well asnew_market1andnew_market2in the fileexamples/js/tests/set_markets.tsneed additional arguments to fit the REST interface (See structsNewAssetReqandNewTradePairReqin filesrc/restapi/types.rsfor more details. - The
baseandquoteattribute for a new market needs to be a string rather than an object (eg.base: "BTC",rather thanbase: { name: "BTC", prec: 2 },) - The
new asset-call does not persist for some reason, without throwing any error. Maybe it is because of theon conflict do nothing-part in the file src/storage/config.rs (functionpersist_asset_to_db) - ... might require additional fixes
Thanks for reporting the bug, we will look into it!