Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

如何发起现货市价单啊 #3

Open
staywithdream opened this issue May 14, 2021 · 1 comment
Open

如何发起现货市价单啊 #3

staywithdream opened this issue May 14, 2021 · 1 comment

Comments

@staywithdream
Copy link

你好,怎么发起现货市价单啊,多谢

@zhouaini528
Copy link
Owner

你要看一下官方的文档提交的参数是什么,我给你举例一个作为参考

//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());
} 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants