mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-05-14 15:09:51 +00:00
* Add exchange multichain support * Start tidying up * Add multichain transfer support for Bitfinex and fix poloniex bug * Add Coinbene multichain support * Start adjusting the deposit address manager * Fix deposit tests and further enhancements * Cleanup * Add bypass flag, expand tests plus error coverage for Huobi Adjust helpers * Address nitterinos * BFX wd changes * Address nitterinos * Minor fixes rebasing on master * Fix BFX acceptableMethods test * Add some TO-DOs for 2 tests WRT races * Fix acceptableMethods test round 2 * Address nitterinos
48 lines
2.7 KiB
Go
48 lines
2.7 KiB
Go
package protocol
|
|
|
|
// Features holds all variables for the exchanges supported features
|
|
// for a protocol (e.g REST or Websocket)
|
|
type Features struct {
|
|
TickerBatching bool `json:"tickerBatching,omitempty"`
|
|
AutoPairUpdates bool `json:"autoPairUpdates,omitempty"`
|
|
AccountBalance bool `json:"accountBalance,omitempty"`
|
|
CryptoDeposit bool `json:"cryptoDeposit,omitempty"`
|
|
CryptoWithdrawal bool `json:"cryptoWithdrawal,omitempty"`
|
|
FiatWithdraw bool `json:"fiatWithdraw,omitempty"`
|
|
GetOrder bool `json:"getOrder,omitempty"`
|
|
GetOrders bool `json:"getOrders,omitempty"`
|
|
CancelOrders bool `json:"cancelOrders,omitempty"`
|
|
CancelOrder bool `json:"cancelOrder,omitempty"`
|
|
SubmitOrder bool `json:"submitOrder,omitempty"`
|
|
SubmitOrders bool `json:"submitOrders,omitempty"`
|
|
ModifyOrder bool `json:"modifyOrder,omitempty"`
|
|
DepositHistory bool `json:"depositHistory,omitempty"`
|
|
WithdrawalHistory bool `json:"withdrawalHistory,omitempty"`
|
|
TradeHistory bool `json:"tradeHistory,omitempty"`
|
|
UserTradeHistory bool `json:"userTradeHistory,omitempty"`
|
|
TradeFee bool `json:"tradeFee,omitempty"`
|
|
FiatDepositFee bool `json:"fiatDepositFee,omitempty"`
|
|
FiatWithdrawalFee bool `json:"fiatWithdrawalFee,omitempty"`
|
|
CryptoDepositFee bool `json:"cryptoDepositFee,omitempty"`
|
|
CryptoWithdrawalFee bool `json:"cryptoWithdrawalFee,omitempty"`
|
|
TickerFetching bool `json:"tickerFetching,omitempty"`
|
|
KlineFetching bool `json:"klineFetching,omitempty"`
|
|
TradeFetching bool `json:"tradeFetching,omitempty"`
|
|
OrderbookFetching bool `json:"orderbookFetching,omitempty"`
|
|
AccountInfo bool `json:"accountInfo,omitempty"`
|
|
FiatDeposit bool `json:"fiatDeposit,omitempty"`
|
|
DeadMansSwitch bool `json:"deadMansSwitch,omitempty"`
|
|
// FullPayloadSubscribe flushes and changes full subscription on websocket
|
|
// connection by subscribing with full default stream channel list
|
|
FullPayloadSubscribe bool `json:"fullPayloadSubscribe,omitempty"`
|
|
Subscribe bool `json:"subscribe,omitempty"`
|
|
Unsubscribe bool `json:"unsubscribe,omitempty"`
|
|
AuthenticatedEndpoints bool `json:"authenticatedEndpoints,omitempty"`
|
|
MessageCorrelation bool `json:"messageCorrelation,omitempty"`
|
|
MessageSequenceNumbers bool `json:"messageSequenceNumbers,omitempty"`
|
|
CandleHistory bool `json:"candlehistory,omitempty"`
|
|
MultiChainDeposits bool `json:"multiChainDeposits,omitempty"`
|
|
MultiChainWithdrawals bool `json:"multiChainWithdrawals,omitempty"`
|
|
MultiChainDepositRequiresChainSet bool `json:"multiChainDepositRequiresChainSet,omitempty"`
|
|
}
|