mxc-php
mxc-php copied to clipboard
如何发起现货市价单啊
你好,怎么发起现货市价单啊,多谢
你要看一下官方的文档提交的参数是什么,我给你举例一个作为参考
//Place an Order
try {
$result=$mxc->order()->postPlace([
'symbol'=>'EOS_USDT',
'quantity'=>10,
'trade_type'=>'BID',//BID=buy,ASK=sell
'POST_ONLY'=>'LIMIT_ORDER',//LIMIT_ORDER,POST_ONLY,IMMEDIATE_OR_CANCEL
]);
print_r($result);
}catch (\Exception $e){
print_r($e->getMessage());
}