future

package
v0.3.14 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 21, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

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

type CancelOrderResp

type CancelOrderResp = api.CancelOrderResp

api返回类型

type Client

type Client = api.Client

公共类型

type CrossedAccount

type CrossedAccount = types.CrossedAccount

公共类型

type FixedAccount

type FixedAccount = types.FixedAccount

公共类型

type GetAllPositionsResp

type GetAllPositionsResp = api.GetAllPositionsResp

api返回类型

type GetDepthParam

type GetDepthParam = api.GetDepthParam

api参数类型

type GetDepthResp

type GetDepthResp = api.GetDepthResp

api返回类型

type GetOrdersParam

type GetOrdersParam = api.GetOrdersParam

api参数类型

type GetOrdersResp

type GetOrdersResp = api.GetOrdersResp

api返回类型

type GetPositionResp

type GetPositionResp = api.GetPositionResp

api返回类型

type NewOrderParam

type NewOrderParam = api.NewOrderParam

api参数类型

type NewOrderResp

type NewOrderResp = api.NewOrderResp

api返回类型

type Order

type Order = types.Order

公共类型

type Position

type Position = types.Position

公共类型

type TableDepth5

type TableDepth5 = types.TableDepth5

推送类型

type TableOrder

type TableOrder = types.TableOrder

推送类型

type TablePosition

type TablePosition = types.TablePosition

推送类型

type TablePriceRange

type TablePriceRange = types.TablePriceRange

推送类型

Directories

Path Synopsis
internal
api

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL