Documentation ¶
Index ¶
- Constants
- func GetWebsocketInterfaceChannelOverride() chan interface{}
- func GetWebsocketStructChannelOverride() chan struct{}
- func NewTestWebsocket() *stream.Websocket
- type CustomEx
- func (c *CustomEx) AuthenticateWebsocket(ctx context.Context) error
- func (c *CustomEx) CancelAllOrders(ctx context.Context, orders *order.Cancel) (order.CancelAllResponse, error)
- func (c *CustomEx) CancelBatchOrders(ctx context.Context, o []order.Cancel) (order.CancelBatchResponse, error)
- func (c *CustomEx) CancelOrder(ctx context.Context, o *order.Cancel) error
- func (c *CustomEx) CheckOrderExecutionLimits(a asset.Item, cp currency.Pair, price, amount float64, orderType order.Type) error
- func (c *CustomEx) DisableRateLimiter() error
- func (c *CustomEx) EnableRateLimiter() error
- func (c *CustomEx) FetchAccountInfo(ctx context.Context, a asset.Item) (account.Holdings, error)
- func (c *CustomEx) FetchOrderbook(ctx context.Context, p currency.Pair, a asset.Item) (*orderbook.Base, error)
- func (c *CustomEx) FetchTicker(ctx context.Context, p currency.Pair, a asset.Item) (*ticker.Price, error)
- func (c *CustomEx) FetchTradablePairs(ctx context.Context, a asset.Item) ([]string, error)
- func (c *CustomEx) FlushWebsocketChannels() error
- func (c *CustomEx) FormatWithdrawPermissions() string
- func (c *CustomEx) GetActiveOrders(ctx context.Context, getOrdersRequest *order.GetOrdersRequest) ([]order.Detail, error)
- func (c *CustomEx) GetAssetTypes(enabled bool) asset.Items
- func (c *CustomEx) GetAuthenticatedAPISupport(endpoint uint8) bool
- func (c *CustomEx) GetAvailablePairs(a asset.Item) (currency.Pairs, error)
- func (c *CustomEx) GetBase() *exchange.Base
- func (c *CustomEx) GetDefaultConfig() (*config.Exchange, error)
- func (c *CustomEx) GetDepositAddress(ctx context.Context, cryptocurrency currency.Code, accountID, chain string) (*deposit.Address, error)
- func (c *CustomEx) GetEnabledPairs(a asset.Item) (currency.Pairs, error)
- func (c *CustomEx) GetFeeByType(ctx context.Context, f *exchange.FeeBuilder) (float64, error)
- func (c *CustomEx) GetFundingHistory(ctx context.Context) ([]exchange.FundHistory, error)
- func (c *CustomEx) GetHTTPClientUserAgent() string
- func (c *CustomEx) GetHistoricCandles(ctx context.Context, p currency.Pair, a asset.Item, ...) (kline.Item, error)
- func (c *CustomEx) GetHistoricCandlesExtended(ctx context.Context, p currency.Pair, a asset.Item, ...) (kline.Item, error)
- func (c *CustomEx) GetHistoricTrades(ctx context.Context, p currency.Pair, a asset.Item, ...) ([]trade.Data, error)
- func (c *CustomEx) GetLastPairsUpdateTime() int64
- func (c *CustomEx) GetName() string
- func (c *CustomEx) GetOrderExecutionLimits(a asset.Item, cp currency.Pair) (*order.Limits, error)
- func (c *CustomEx) GetOrderHistory(ctx context.Context, getOrdersRequest *order.GetOrdersRequest) ([]order.Detail, error)
- func (c *CustomEx) GetOrderInfo(ctx context.Context, orderID string, pair currency.Pair, assetType asset.Item) (order.Detail, error)
- func (c *CustomEx) GetRecentTrades(ctx context.Context, p currency.Pair, a asset.Item) ([]trade.Data, error)
- func (c *CustomEx) GetSubscriptions() ([]stream.ChannelSubscription, error)
- func (c *CustomEx) GetWebsocket() (*stream.Websocket, error)
- func (c *CustomEx) GetWithdrawPermissions() uint32
- func (c *CustomEx) GetWithdrawalsHistory(ctx context.Context, code currency.Code) ([]exchange.WithdrawalHistory, error)
- func (c *CustomEx) IsAssetWebsocketSupported(aType asset.Item) bool
- func (c *CustomEx) IsEnabled() bool
- func (c *CustomEx) IsWebsocketEnabled() bool
- func (c *CustomEx) ModifyOrder(ctx context.Context, action *order.Modify) (order.Modify, error)
- func (c *CustomEx) SetClientProxyAddress(addr string) error
- func (c *CustomEx) SetDefaults()
- func (c *CustomEx) SetEnabled(bool)
- func (c *CustomEx) SetHTTPClientUserAgent(ua string)
- func (c *CustomEx) SetPairs(pairs currency.Pairs, a asset.Item, enabled bool) error
- func (c *CustomEx) Setup(exch *config.Exchange) error
- func (c *CustomEx) Start(wg *sync.WaitGroup) error
- func (c *CustomEx) SubmitOrder(ctx context.Context, s *order.Submit) (order.SubmitResponse, error)
- func (c *CustomEx) SubscribeToWebsocketChannels(channels []stream.ChannelSubscription) error
- func (c *CustomEx) SupportsAsset(assetType asset.Item) bool
- func (c *CustomEx) SupportsAutoPairUpdates() bool
- func (c *CustomEx) SupportsREST() bool
- func (c *CustomEx) SupportsRESTTickerBatchUpdates() bool
- func (c *CustomEx) SupportsWebsocket() bool
- func (c *CustomEx) SupportsWithdrawPermissions(permissions uint32) bool
- func (c *CustomEx) UnsubscribeToWebsocketChannels(channels []stream.ChannelSubscription) error
- func (c *CustomEx) UpdateAccountInfo(ctx context.Context, a asset.Item) (account.Holdings, error)
- func (c *CustomEx) UpdateOrderExecutionLimits(ctx context.Context, a asset.Item) error
- func (c *CustomEx) UpdateOrderbook(ctx context.Context, p currency.Pair, a asset.Item) (*orderbook.Base, error)
- func (c *CustomEx) UpdateTicker(ctx context.Context, p currency.Pair, a asset.Item) (*ticker.Price, error)
- func (c *CustomEx) UpdateTickers(ctx context.Context, a asset.Item) error
- func (c *CustomEx) UpdateTradablePairs(ctx context.Context, forceUpdate bool) error
- func (c *CustomEx) ValidateCredentials(ctx context.Context, a asset.Item) error
- func (c *CustomEx) WithdrawCryptocurrencyFunds(ctx context.Context, withdrawRequest *withdraw.Request) (*withdraw.ExchangeResponse, error)
- func (c *CustomEx) WithdrawFiatFunds(ctx context.Context, withdrawRequest *withdraw.Request) (*withdraw.ExchangeResponse, error)
- func (c *CustomEx) WithdrawFiatFundsToInternationalBank(ctx context.Context, withdrawRequest *withdraw.Request) (*withdraw.ExchangeResponse, error)
Constants ¶
View Source
const ( // WebsocketResponseDefaultTimeout used in websocket testing // Defines wait time for receiving websocket response before cancelling WebsocketResponseDefaultTimeout = (3 * time.Second) // WebsocketResponseExtendedTimeout used in websocket testing // Defines wait time for receiving websocket response before cancelling WebsocketResponseExtendedTimeout = (15 * time.Second) // WebsocketChannelOverrideCapacity used in websocket testing // Defines channel capacity as defaults size can block tests WebsocketChannelOverrideCapacity = 75 MockTesting = "Mock testing framework in use for %s exchange on REST endpoints only" LiveTesting = "Mock testing bypassed; live testing of REST endpoints in use for %s exchange" )
This package is only to be referenced in test files
Variables ¶
This section is empty.
Functions ¶
func GetWebsocketInterfaceChannelOverride ¶
func GetWebsocketInterfaceChannelOverride() chan interface{}
GetWebsocketInterfaceChannelOverride returns a new interface based channel with the capacity set to WebsocketChannelOverrideCapacity
func GetWebsocketStructChannelOverride ¶
func GetWebsocketStructChannelOverride() chan struct{}
GetWebsocketStructChannelOverride returns a new struct based channel with the capacity set to WebsocketChannelOverrideCapacity
func NewTestWebsocket ¶
NewTestWebsocket returns a test websocket object
Types ¶
type CustomEx ¶
func (*CustomEx) AuthenticateWebsocket ¶
func (*CustomEx) CancelAllOrders ¶
func (*CustomEx) CancelBatchOrders ¶
func (*CustomEx) CancelOrder ¶
func (*CustomEx) CheckOrderExecutionLimits ¶
func (*CustomEx) DisableRateLimiter ¶
func (*CustomEx) EnableRateLimiter ¶
func (*CustomEx) FetchAccountInfo ¶
func (*CustomEx) FetchOrderbook ¶
func (*CustomEx) FetchTicker ¶
func (*CustomEx) FetchTradablePairs ¶
func (*CustomEx) FlushWebsocketChannels ¶
func (*CustomEx) FormatWithdrawPermissions ¶
func (*CustomEx) GetActiveOrders ¶
func (*CustomEx) GetAuthenticatedAPISupport ¶
func (*CustomEx) GetAvailablePairs ¶
func (*CustomEx) GetDepositAddress ¶
func (*CustomEx) GetEnabledPairs ¶
func (*CustomEx) GetFeeByType ¶
func (*CustomEx) GetFundingHistory ¶
func (*CustomEx) GetHTTPClientUserAgent ¶
func (*CustomEx) GetHistoricCandles ¶
func (*CustomEx) GetHistoricCandlesExtended ¶
func (*CustomEx) GetHistoricTrades ¶
func (*CustomEx) GetLastPairsUpdateTime ¶
func (*CustomEx) GetOrderExecutionLimits ¶
func (*CustomEx) GetOrderHistory ¶
func (*CustomEx) GetOrderInfo ¶
func (*CustomEx) GetRecentTrades ¶
func (*CustomEx) GetSubscriptions ¶
func (c *CustomEx) GetSubscriptions() ([]stream.ChannelSubscription, error)
func (*CustomEx) GetWithdrawPermissions ¶
func (*CustomEx) GetWithdrawalsHistory ¶
func (*CustomEx) IsAssetWebsocketSupported ¶
func (*CustomEx) IsWebsocketEnabled ¶
func (*CustomEx) ModifyOrder ¶
func (*CustomEx) SetClientProxyAddress ¶
func (*CustomEx) SetDefaults ¶
func (c *CustomEx) SetDefaults()
func (*CustomEx) SetEnabled ¶
func (*CustomEx) SetHTTPClientUserAgent ¶
func (*CustomEx) SubmitOrder ¶
func (*CustomEx) SubscribeToWebsocketChannels ¶
func (c *CustomEx) SubscribeToWebsocketChannels(channels []stream.ChannelSubscription) error
func (*CustomEx) SupportsAutoPairUpdates ¶
func (*CustomEx) SupportsREST ¶
func (*CustomEx) SupportsRESTTickerBatchUpdates ¶
func (*CustomEx) SupportsWebsocket ¶
func (*CustomEx) SupportsWithdrawPermissions ¶
func (*CustomEx) UnsubscribeToWebsocketChannels ¶
func (c *CustomEx) UnsubscribeToWebsocketChannels(channels []stream.ChannelSubscription) error
func (*CustomEx) UpdateAccountInfo ¶
func (*CustomEx) UpdateOrderExecutionLimits ¶
func (*CustomEx) UpdateOrderbook ¶
func (*CustomEx) UpdateTicker ¶
func (*CustomEx) UpdateTickers ¶
func (*CustomEx) UpdateTradablePairs ¶
func (*CustomEx) ValidateCredentials ¶
func (*CustomEx) WithdrawCryptocurrencyFunds ¶
func (*CustomEx) WithdrawFiatFunds ¶
func (*CustomEx) WithdrawFiatFundsToInternationalBank ¶
Click to show internal directories.
Click to hide internal directories.