Sign inSign up

haifengat/after_single

By haifengat

•Updated about 4 years ago

委托追单服务,通过 http 传递委托参数,接收数据后,根据配置进行委托撤单追单等操作。

Image
0

354

haifengat/after_single repository overview

海风/委托追单

Fork me on Gitee
star

⁠委托追单

⁠介绍

委托追单服务,通过 http 传递委托参数,接收数据后,根据配置进行委托撤单追单等操作。

⁠安装教程

⁠Makefile 部署

如果提示 curdate 不正确,请指定变量

make deploy CURDATE=yyyyMMdd
⁠docker-compose 部署

⁠使用说明

⁠测试委托
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
}'

Tag summary

Content type

Image

Digest

sha256:f4817bd38…

Size

12.4 MB

Last updated

about 4 years ago

docker pull haifengat/after_single