validator

package
v0.0.0-...-ae86ed1 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2022 License: MIT Imports: 13 Imported by: 0

Documentation

Index

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(exch string, assetType asset.Item) (account.Holdings, error)

AccountInformation validator for test execution/scripts

func (Wrapper) CancelOrder

func (w Wrapper) CancelOrder(exch, orderid string, cp currency.Pair, a asset.Item) (bool, error)

CancelOrder validator for test execution/scripts

func (Wrapper) DepositAddress

func (w Wrapper) DepositAddress(exch string, _ currency.Code) (string, error)

DepositAddress validator for test execution/scripts

func (Wrapper) Exchanges

func (w Wrapper) Exchanges(enabledOnly bool) []string

Exchanges validator for test execution/scripts

func (Wrapper) IsEnabled

func (w Wrapper) IsEnabled(exch string) (v bool)

IsEnabled returns if requested exchange is enabled or disabled

func (Wrapper) OHLCV

func (w Wrapper) OHLCV(exch string, p currency.Pair, a asset.Item, start, end 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(exch string, pair currency.Pair, item asset.Item) (*orderbook.Base, error)

Orderbook validator for test execution/scripts

func (Wrapper) Pairs

func (w Wrapper) Pairs(exch string, _ bool, _ asset.Item) (*currency.Pairs, error)

Pairs validator for test execution/scripts

func (Wrapper) QueryOrder

func (w Wrapper) QueryOrder(exch, _ string, _ currency.Pair, _ asset.Item) (*order.Detail, error)

QueryOrder validator for test execution/scripts

func (Wrapper) SubmitOrder

func (w Wrapper) SubmitOrder(o *order.Submit) (*order.SubmitResponse, error)

SubmitOrder validator for test execution/scripts

func (Wrapper) Ticker

func (w Wrapper) Ticker(exch string, pair currency.Pair, item asset.Item) (*ticker.Price, error)

Ticker validator for test execution/scripts

func (Wrapper) WithdrawalCryptoFunds

func (w Wrapper) WithdrawalCryptoFunds(r *withdraw.Request) (out string, err error)

WithdrawalCryptoFunds validator for test execution/scripts

func (Wrapper) WithdrawalFiatFunds

func (w Wrapper) WithdrawalFiatFunds(_ string, r *withdraw.Request) (out string, err error)

WithdrawalFiatFunds validator for test execution/scripts

Jump to

Keyboard shortcuts

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