-
Notifications
You must be signed in to change notification settings - Fork 0
Muliti order
huyaohua edited this page Jan 19, 2020
·
1 revision
Interface address:https://api.bitforex.com/api/v1/trade/placeMultiOrder
Request method:POST
Parameters
parameter name | Types | Is required | Defaults | Description |
---|---|---|---|---|
symbol | String | Yes | - | Transaction pairs such as coin-usd-btc, coin-usd-eth, etc. |
ordersData | String | Yes | - | json format, example:[{"price":5,"amount":1,"tradeType":1},{"price:8","amount":2,"tradeType":2}] Order quantity limit 5,price,amount,tradeType parameters refer to the instructions in the Order interface |
accessKey | String | Yes | - | API access key |
nonce | long | Yes | - | Request timestamp, milliseconds |
signData | String | Yes | - | Signing information |
Example
# request
POST https://api.bitforex.com/api/v1/trade/placeMultiOrder
# Response
{
"success": true,
"data": [
{"orderId":161256},
{"orderId":161257},
{"orderId":-1,"code":code,"message","message"}
]
}
Return value description
Parameter Name | Type | Description |
---|---|---|
orderId | long | Order ID |
remark: The return result is order by ordersData If failed:orderId return -1,code is failure code,message is the error information