Ccxt: Huobi IOC order type

Created on 5 Aug 2018  ·  1Comment  ·  Source: ccxt/ccxt

Hello
Huobi support buy-ioc, sell-ioc, order types

https://github.com/huobiapi/API_Docs_en/wiki/REST_Reference

Is it possible to implement it via params?
Thank you

duplicate question

Most helpful comment

@Showgofar we already do support all endpoints and params intrinsically, as documented in the Manual: https://github.com/ccxt/ccxt/wiki/Manual#overriding-unified-api-params

$symbol = 'FOO/BAR';
$type = 'limit';
$side = 'buy';
$amount = 123;
$price = 321;
$overrides = array ( 'type' => 'buy-ioc' ); // ←------------------- ↓↓↓
$exchange->create_order ($symbol, $type, $side, $amount, $price, $overrides);

Let us know if it does not answer your question. Thx!

>All comments

@Showgofar we already do support all endpoints and params intrinsically, as documented in the Manual: https://github.com/ccxt/ccxt/wiki/Manual#overriding-unified-api-params

$symbol = 'FOO/BAR';
$type = 'limit';
$side = 'buy';
$amount = 123;
$price = 321;
$overrides = array ( 'type' => 'buy-ioc' ); // ←------------------- ↓↓↓
$exchange->create_order ($symbol, $type, $side, $amount, $price, $overrides);

Let us know if it does not answer your question. Thx!

Was this page helpful?
0 / 5 - 0 ratings