viabtc / viabtc_exchange_server

A trading engine with high-speed performance and real-time notification
MIT License
2.67k stars 1.49k forks source link

curl http://127.0.0.1:18080/ -d '{"method": "order.put_market", "params": [1, "BTCBCH", 1, "10","0.002"],"id": 1}' #239

Open yangmiok opened 4 years ago

yangmiok commented 4 years ago

curl http://127.0.0.1:18080/ -d '{"method": "order.put_market", "params": [1, "BTCBCH", 1, "10","0.002"],"id": 1}'

{ "error": { "message": "invalid argument", "code": 1 }, "result": null, "id": 1 }

yangmiok commented 4 years ago

curl http://127.0.0.1:18080/ -d '{"method": "order.put_market", "params": [1, "BTCBCH", 1, "10","0.002"]}'

yangmiok commented 4 years ago

no response why

serefercelik commented 4 years ago

@zhangtianai you must to add last parameter too, source (string) please try this : curl http://127.0.0.1:18080/ -d '{"method": "order.put_market", "params": [1, "BTCBCH", 1, "10","0.002","web"]}'