validator

package
v0.0.0-...-068a453 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2024 License: MIT Imports: 16 Imported by: 12

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(_ 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

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

QueryOrder validator for test execution/scripts

func (Wrapper) SubmitOrder

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

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

func (Wrapper) WithdrawalCryptoFunds

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

WithdrawalCryptoFunds validator for test execution/scripts

func (Wrapper) WithdrawalFiatFunds

func (w Wrapper) WithdrawalFiatFunds(_ 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