ExOkex.Spot.Private.create_bulk_orders
You're seeing just the function
create_bulk_orders
, go back to ExOkex.Spot.Private module for more information.
Place multiple orders for specific trading pairs (up to 4 trading pairs, maximum 4 orders each)
https://www.okex.com/docs/en/#spot-batch
Examples
iex> ExOkex.Spot.Private.create_bulk_orders([
%{
"client_oid" => "20180728",
"instrument_id" => "btc-usdt",
"side" => "sell",
"type" => "limit",
"size" => "0.001",
"price" => "10001",
"margin_trading" => "1"
},
%{
"client_oid":"20180729",
"instrument_id":"btc-usdt",
"side":"sell",
"type":"limit",
"size":"0.001",
"price":"10002",
"margin_trading ":"1"
}
])
{:ok, %{
"btc_usdt" => [
%{"client_oid" => "20180728", "error_code" => 0, "error_message" => "", "order_id" => "2510832677159936", "result" => true},
%{"client_oid" => "20180729", "error_code" => 0, "error_message" => "", "order_id" => "2510832677225472", "result" => true}
]
}}