委托追单服务,通过 http 传递委托参数,接收数据后,根据配置进行委托撤单追单等操作。
354
委托追单服务,通过 http 传递委托参数,接收数据后,根据配置进行委托撤单追单等操作。
如果提示 curdate 不正确,请指定变量
make deploy CURDATE=yyyyMMdd
curl -i http://localhost:8765/order --header 'Content-Type: application/json' -d '{
"instrument": "rb2210",
"direction": "sell",
"offset": "close",
"price": 4090,
"volume": 1,
"remark": "正确用例"
}'
curl -i http://localhost:8765/order --header 'Content-Type: application/json' -d '{
"instrument": "n1903",
"direction": "buy",
"offset": "close",
"price": 3184.92,
"volume": 19,
"remark": "错误用例"
}'
curl -i http://localhost:8765/config --header 'Content-Type: application/json' -d '{
"firstOffset": -2,
"cancelSeconds": 3,
"reorderTimes": 3,
"reorderOffset": 2
}'
Content type
Image
Digest
sha256:f4817bd38…
Size
12.4 MB
Last updated
about 4 years ago
docker pull haifengat/after_single