post https://investment-back.test.ive.one/api/trades
Create a new trade order. Base account is always crypto, quote account is always fiat. To switch between buy and sell set 'type' to BUY
or SELL
. To switch between market and limit types, set 'orderClass' to MARKET
or LIMIT
. Amount has to be in fiat for buy, in crypto for sell. Example: you want to buy ETH for 10 EUR - type: BUY
, amount: 10
, baseAccount: 'your ETH account', quoteAccount: your EUR account
. You want to sell 0.05 ETH - type: SELL
, amount: 0.05
, baseAccount: 'your ETH account', quoteAccount: your EUR account
.