Documentation ¶
Index ¶
- Variables
- type Wrapper
- func (w Wrapper) AccountInformation(_ context.Context, exch string, assetType asset.Item) (account.Holdings, error)
- func (w Wrapper) CancelOrder(_ context.Context, exch, orderid string, cp currency.Pair, a asset.Item) (bool, error)
- func (w Wrapper) DepositAddress(exch, _ string, _ currency.Code) (*deposit.Address, error)
- func (w Wrapper) Exchanges(enabledOnly bool) []string
- func (w Wrapper) IsEnabled(exch string) (v bool)
- func (w Wrapper) OHLCV(_ context.Context, exch string, p currency.Pair, a asset.Item, ...) (*kline.Item, error)
- func (w Wrapper) Orderbook(_ context.Context, exch string, pair currency.Pair, item asset.Item) (*orderbook.Base, error)
- func (w Wrapper) Pairs(exch string, _ bool, _ asset.Item) (*currency.Pairs, error)
- func (w Wrapper) QueryOrder(_ context.Context, exch, _ string, _ currency.Pair, _ asset.Item) (*order.Detail, error)
- func (w Wrapper) SubmitOrder(_ context.Context, o *order.Submit) (*order.SubmitResponse, error)
- func (w Wrapper) Ticker(_ context.Context, exch string, pair currency.Pair, item asset.Item) (*ticker.Price, error)
- func (w Wrapper) WithdrawalCryptoFunds(_ context.Context, r *withdraw.Request) (out string, err error)
- func (w Wrapper) WithdrawalFiatFunds(_ context.Context, _ string, r *withdraw.Request) (out string, err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // IsTestExecution if test is executed under test conditions IsTestExecution atomic.Value )
Functions ¶
This section is empty.
Types ¶
type Wrapper ¶
type Wrapper struct{}
Wrapper for validator interface
func (Wrapper) AccountInformation ¶
func (w Wrapper) AccountInformation(_ context.Context, exch string, assetType asset.Item) (account.Holdings, error)
AccountInformation validator for test execution/scripts
func (Wrapper) CancelOrder ¶
func (w Wrapper) CancelOrder(_ context.Context, exch, orderid string, cp currency.Pair, a asset.Item) (bool, error)
CancelOrder validator for test execution/scripts
func (Wrapper) DepositAddress ¶
DepositAddress validator for test execution/scripts
func (Wrapper) OHLCV ¶
func (w Wrapper) OHLCV(_ context.Context, exch string, p currency.Pair, a asset.Item, start, _ time.Time, i kline.Interval) (*kline.Item, error)
OHLCV returns open high low close volume candles for requested exchange/pair/asset/start & end time
func (Wrapper) Orderbook ¶
func (w Wrapper) Orderbook(_ context.Context, exch string, pair currency.Pair, item asset.Item) (*orderbook.Base, error)
Orderbook validator for test execution/scripts
func (Wrapper) QueryOrder ¶
func (w Wrapper) QueryOrder(_ context.Context, exch, _ string, _ currency.Pair, _ asset.Item) (*order.Detail, error)
QueryOrder validator for test execution/scripts
func (Wrapper) SubmitOrder ¶
SubmitOrder validator for test execution/scripts
func (Wrapper) Ticker ¶
func (w Wrapper) Ticker(_ context.Context, exch string, pair currency.Pair, item asset.Item) (*ticker.Price, error)
Ticker validator for test execution/scripts
Click to show internal directories.
Click to hide internal directories.