Documentation ¶
Index ¶
- Constants
- type CancelOrderResp
- type Client
- type CrossedAccount
- type FixedAccount
- type GetAllPositionsResp
- type GetDepthParam
- type GetDepthResp
- type GetOrdersParam
- type GetOrdersResp
- type GetPositionResp
- type NewOrderParam
- type NewOrderResp
- type Order
- type Position
- type TableDepth5
- type TableOrder
- type TablePosition
- type TablePriceRange
Constants ¶
View Source
const ( SideBuy = "buy" SideSell = "sell" )
View Source
const ( OpenLong = 1 // 开多 OpenShort = 2 // 开空 CloseLong = 3 // 平多 CloseShort = 4 // 平空 )
View Source
const ( OrderStateFailed = -2 // 失败 OrderStateCanceled = -1 // 撤单成功 OrderStatePending = 0 // 等待成交 OrderStatePartiallyFilled = 1 // 部分成交 OrderStateFilled = 2 // 完全成交 OrderStateNew = 3 // 下单中 OrderStateCancel = 4 // 撤单中 OrderStateUnfinished = 6 // 未完成(等待成交+部分成交)仅查询用 OrderStateFinished = 7 // 已完成(撤单成功+完全成交)仅查询用 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.