validator

package
v0.0.0-...-83dca6d Latest Latest
Warning

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

Go to latest
Published: May 23, 2022 License: MIT Imports: 16 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(ctx context.Context, exch string, assetType asset.Item) (account.Holdings, error)

AccountInformation validator for test execution/scripts

func (Wrapper) CancelOrder

func (w Wrapper) CancelOrder(ctx context.Context, 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, chain string, _ currency.Code) (*deposit.Address, 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(ctx context.Context, 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(ctx context.Context, 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(ctx context.Context, exch, _ string, _ currency.Pair, _ asset.Item) (*order.Detail, error)

QueryOrder validator for test execution/scripts

func (Wrapper) SubmitOrder

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

SubmitOrder validator for test execution/scripts

func (Wrapper) Ticker

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

Ticker validator for test execution/scripts

func (Wrapper) WithdrawalCryptoFunds

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

WithdrawalCryptoFunds validator for test execution/scripts

func (Wrapper) WithdrawalFiatFunds

func (w Wrapper) WithdrawalFiatFunds(ctx context.Context, _ 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