Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Market ¶
type Market struct { BuyPrice big.Float // 买方价格 BuyAmount big.Float // 买方数量 SellPrice big.Float // 卖方价格 SellAmount big.Float // 卖方数量 OpenTx bool // 是否开启交易 }
行情
type Symbol ¶
type Symbol interface { GetConfig() []SymbolConfig // 获取交易对配置 Subscribe(symbolConfig SymbolConfig) (chan<- *Market, error) // 订阅交易对行情 ChangeTx(symbolConfig SymbolConfig, openCloseFlag bool) // 开启关闭交易 }
交易对
type SymbolConfig ¶
交易对
Click to show internal directories.
Click to hide internal directories.