mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-05-14 23:16:49 +00:00
* initial wiring to providegethistoricalcandles * initial wiring to providegethistoricalcandles * initial wiring to providegethistoricalcandles * gethistriccandles work from cli using hard coded inputs * gethistoriccandles RPC service and CLI working fine for coinbasepro * fixed unit test * input check on grpc for gethistoriccandles * updated deps * fixed the return value when a method is not yet implemented * code review: fixed CLI input check and int32->int64 * code review: handling wrong exchange name * added check on granularity and allowing start and end being empty * code review: removed currency2 * code review: dependency reverted * improved func comment * typo in func comment * get historic values tests * unit tests for get historical rates on coinbasepro * using time format time.RFC3339 * names to camel case and improved comments * test cleanup * changed to camel case * added InArray tests * dropped not needed string time * enforced use of int64 * fixed make check * cleaned up code organisation to be consistent * fixed Travis remarks * more Travis remarks * added comments * regenerated proto files after merge * linter fix
42 lines
2.3 KiB
Go
42 lines
2.3 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"`
|
|
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"`
|
|
}
|