Documentation ¶
Index ¶
- type BinanceFuture
- func (e *BinanceFuture) CheckBalance()
- func (e *BinanceFuture) GetBinanceSymbols() []pkg.Symbol
- func (e *BinanceFuture) InitData(data pkg.OrderInfo)
- func (e *BinanceFuture) InitKline()
- func (e *BinanceFuture) Process(price fixedpoint.Value)
- func (e *BinanceFuture) QueryMarket() error
- func (e *BinanceFuture) RunWebsocket(symbols []string)
- func (e *BinanceFuture) SubmitOrder()
- func (e *BinanceFuture) SubmitProfitOrder(price fixedpoint.Value)
- func (e *BinanceFuture) SubmitStopOrder(price fixedpoint.Value)
- func (e *BinanceFuture) TickPrice(symbol string)
- type BinanceSpot
- type Config
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BinanceFuture ¶
type BinanceFuture struct { Exchange *binance.Exchange MinProfit fixedpoint.Value MaxProfit fixedpoint.Value StopLoss fixedpoint.Value StepProfit fixedpoint.Value Markets types.MarketMap Market types.Market Ctx context.Context Usdt fixedpoint.Value Symbol string CreateOrder *types.Order StopOrder *types.Order PostionPrice fixedpoint.Value StopPrice fixedpoint.Value ProfitOrder *types.Order ProfitPrice fixedpoint.Value }
func NewBinanceFuture ¶
func NewBinanceFuture() BinanceFuture
func (*BinanceFuture) GetBinanceSymbols ¶
func (e *BinanceFuture) GetBinanceSymbols() []pkg.Symbol
func (*BinanceFuture) InitKline ¶
func (e *BinanceFuture) InitKline()
func (*BinanceFuture) Process ¶
func (e *BinanceFuture) Process(price fixedpoint.Value)
func (*BinanceFuture) RunWebsocket ¶
func (e *BinanceFuture) RunWebsocket(symbols []string)
func (*BinanceFuture) SubmitProfitOrder ¶
func (e *BinanceFuture) SubmitProfitOrder(price fixedpoint.Value)
移动止损
func (*BinanceFuture) SubmitStopOrder ¶
func (e *BinanceFuture) SubmitStopOrder(price fixedpoint.Value)
移动止损
type BinanceSpot ¶
type BinanceSpot struct { Exchange *binance.Exchange MinProfit fixedpoint.Value MaxProfit fixedpoint.Value StopLoss fixedpoint.Value StepProfit fixedpoint.Value Market types.Market Ctx context.Context Usdt fixedpoint.Value Symbol string }
func NewBinanceSpot ¶
func NewBinanceSpot() BinanceSpot
type Config ¶
type Config struct { MinProfit fixedpoint.Value MaxProfit fixedpoint.Value StopLoss fixedpoint.Value StepProfit fixedpoint.Value Market types.Market }
Click to show internal directories.
Click to hide internal directories.