Documentation
¶
Index ¶
- type Action
- type StepParamsDummy
- func (sp *StepParamsDummy) BuyByMarket(instrumentId string, ticker string, cnt int, meta *smp.MetaForOperations) (orderId string, err *mft.Error)
- func (sp *StepParamsDummy) BuyByPrice(instrumentId string, ticker string, cnt int, price float64, ...) (orderId string, err *mft.Error)
- func (sp *StepParamsDummy) CancelBuyOrder(instrumentId string, ticker string, orderId string, ...) (ok bool, err *mft.Error)
- func (sp *StepParamsDummy) CancelSellOrder(instrumentId string, ticker string, orderId string, ...) (ok bool, err *mft.Error)
- func (sp *StepParamsDummy) DoStep() bool
- func (sp *StepParamsDummy) GetCandles(instrumentId string, ticker string, dateFrom time.Time, dateTo time.Time) (cs smp.Candles, err *mft.Error)
- func (sp *StepParamsDummy) GetInstrumentInfo(instrumentId string, ticker string) (instrumentInfo *smp.InstrumentInfo, err *mft.Error)
- func (sp *StepParamsDummy) GetOrderBook(instrumentId string, ticker string) (ob *smp.OrderBook, err *mft.Error)
- func (sp *StepParamsDummy) SellByMarket(instrumentId string, ticker string, cnt int, meta *smp.MetaForOperations) (orderId string, err *mft.Error)
- func (sp *StepParamsDummy) SellByPrice(instrumentId string, ticker string, cnt int, price float64, ...) (orderId string, err *mft.Error)
- func (sp *StepParamsDummy) StatusBuyOrder(instrumentId string, ticker string, orderId string, ...) (status smp.StatusOrder, prices []smp.LotPrices, err *mft.Error)
- func (sp *StepParamsDummy) StatusSellOrder(instrumentId string, ticker string, orderId string, ...) (status smp.StatusOrder, prices []smp.LotPrices, err *mft.Error)
- type VirtualMarket
- func (vm *VirtualMarket) BuyByMarket(instrumentId string, ticker string, cnt int, meta *smp.MetaForOperations) (orderId string, err *mft.Error)
- func (vm *VirtualMarket) BuyByPrice(instrumentId string, ticker string, cnt int, price float64, ...) (orderId string, err *mft.Error)
- func (vm *VirtualMarket) CancelBuyOrder(instrumentId string, ticker string, orderId string, ...) (ok bool, err *mft.Error)
- func (vm *VirtualMarket) CancelSellOrder(instrumentId string, ticker string, orderId string, ...) (ok bool, err *mft.Error)
- func (vm *VirtualMarket) DoStep() bool
- func (vm *VirtualMarket) GetCandles(instrumentId string, ticker string, dateFrom time.Time, dateTo time.Time) (cs smp.Candles, err *mft.Error)
- func (vm *VirtualMarket) GetInstrumentInfo(instrumentId string, ticker string) (instrumentInfo *smp.InstrumentInfo, err *mft.Error)
- func (vm *VirtualMarket) GetOrderBook(instrumentId string, ticker string) (ob *smp.OrderBook, err *mft.Error)
- func (vm *VirtualMarket) SellByMarket(instrumentId string, ticker string, cnt int, meta *smp.MetaForOperations) (orderId string, err *mft.Error)
- func (vm *VirtualMarket) SellByPrice(instrumentId string, ticker string, cnt int, price float64, ...) (orderId string, err *mft.Error)
- func (vm *VirtualMarket) StatusBuyOrder(instrumentId string, ticker string, orderId string, ...) (status smp.StatusOrder, prices []smp.LotPrices, err *mft.Error)
- func (vm *VirtualMarket) StatusSellOrder(instrumentId string, ticker string, orderId string, ...) (status smp.StatusOrder, prices []smp.LotPrices, err *mft.Error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StepParamsDummy ¶
type StepParamsDummy struct { Candles smp.Candles OrderBook *smp.OrderBook OrderBookNext *smp.OrderBook InstrumentInfo *smp.InstrumentInfo Position int Actions []Action // contains filtered or unexported fields }
func (*StepParamsDummy) BuyByMarket ¶
func (sp *StepParamsDummy) BuyByMarket(instrumentId string, ticker string, cnt int, meta *smp.MetaForOperations) (orderId string, err *mft.Error)
func (*StepParamsDummy) BuyByPrice ¶
func (sp *StepParamsDummy) BuyByPrice(instrumentId string, ticker string, cnt int, price float64, meta *smp.MetaForOperations) (orderId string, err *mft.Error)
func (*StepParamsDummy) CancelBuyOrder ¶
func (sp *StepParamsDummy) CancelBuyOrder(instrumentId string, ticker string, orderId string, meta *smp.MetaForOperations) (ok bool, err *mft.Error)
func (*StepParamsDummy) CancelSellOrder ¶
func (sp *StepParamsDummy) CancelSellOrder(instrumentId string, ticker string, orderId string, meta *smp.MetaForOperations) (ok bool, err *mft.Error)
func (*StepParamsDummy) DoStep ¶
func (sp *StepParamsDummy) DoStep() bool
func (*StepParamsDummy) GetCandles ¶
func (*StepParamsDummy) GetInstrumentInfo ¶
func (sp *StepParamsDummy) GetInstrumentInfo(instrumentId string, ticker string) (instrumentInfo *smp.InstrumentInfo, err *mft.Error)
func (*StepParamsDummy) GetOrderBook ¶
func (*StepParamsDummy) SellByMarket ¶
func (sp *StepParamsDummy) SellByMarket(instrumentId string, ticker string, cnt int, meta *smp.MetaForOperations) (orderId string, err *mft.Error)
func (*StepParamsDummy) SellByPrice ¶
func (sp *StepParamsDummy) SellByPrice(instrumentId string, ticker string, cnt int, price float64, meta *smp.MetaForOperations) (orderId string, err *mft.Error)
func (*StepParamsDummy) StatusBuyOrder ¶
func (sp *StepParamsDummy) StatusBuyOrder(instrumentId string, ticker string, orderId string, meta *smp.MetaForOperations) (status smp.StatusOrder, prices []smp.LotPrices, err *mft.Error)
func (*StepParamsDummy) StatusSellOrder ¶
func (sp *StepParamsDummy) StatusSellOrder(instrumentId string, ticker string, orderId string, meta *smp.MetaForOperations) (status smp.StatusOrder, prices []smp.LotPrices, err *mft.Error)
type VirtualMarket ¶
type VirtualMarket struct { Candles smp.Candles OrderBook *smp.OrderBook InstrumentInfo *smp.InstrumentInfo Position int }
func (*VirtualMarket) BuyByMarket ¶
func (vm *VirtualMarket) BuyByMarket(instrumentId string, ticker string, cnt int, meta *smp.MetaForOperations) (orderId string, err *mft.Error)
func (*VirtualMarket) BuyByPrice ¶
func (vm *VirtualMarket) BuyByPrice(instrumentId string, ticker string, cnt int, price float64, meta *smp.MetaForOperations) (orderId string, err *mft.Error)
func (*VirtualMarket) CancelBuyOrder ¶
func (vm *VirtualMarket) CancelBuyOrder(instrumentId string, ticker string, orderId string, meta *smp.MetaForOperations) (ok bool, err *mft.Error)
func (*VirtualMarket) CancelSellOrder ¶
func (vm *VirtualMarket) CancelSellOrder(instrumentId string, ticker string, orderId string, meta *smp.MetaForOperations) (ok bool, err *mft.Error)
func (*VirtualMarket) DoStep ¶
func (vm *VirtualMarket) DoStep() bool
func (*VirtualMarket) GetCandles ¶
func (*VirtualMarket) GetInstrumentInfo ¶
func (vm *VirtualMarket) GetInstrumentInfo(instrumentId string, ticker string) (instrumentInfo *smp.InstrumentInfo, err *mft.Error)
func (*VirtualMarket) GetOrderBook ¶
func (*VirtualMarket) SellByMarket ¶
func (vm *VirtualMarket) SellByMarket(instrumentId string, ticker string, cnt int, meta *smp.MetaForOperations) (orderId string, err *mft.Error)
func (*VirtualMarket) SellByPrice ¶
func (vm *VirtualMarket) SellByPrice(instrumentId string, ticker string, cnt int, price float64, meta *smp.MetaForOperations) (orderId string, err *mft.Error)
func (*VirtualMarket) StatusBuyOrder ¶
func (vm *VirtualMarket) StatusBuyOrder(instrumentId string, ticker string, orderId string, meta *smp.MetaForOperations) (status smp.StatusOrder, prices []smp.LotPrices, err *mft.Error)
func (*VirtualMarket) StatusSellOrder ¶
func (vm *VirtualMarket) StatusSellOrder(instrumentId string, ticker string, orderId string, meta *smp.MetaForOperations) (status smp.StatusOrder, prices []smp.LotPrices, err *mft.Error)
Click to show internal directories.
Click to hide internal directories.