Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

exchanges: Add V2 Crypto.com exchange support #1122

Open
wants to merge 102 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
102 commits
Select commit Hold shift + click to select a range
27bbb99
Creating exchange using exchange_template and adding public eps
samuael Jan 16, 2023
1a548f0
Adding private endpoints
samuael Jan 17, 2023
7b7feb1
Adding private endpoints and unit tests
samuael Jan 18, 2023
3d46675
Added SPOT API endpoints and unit tests
samuael Jan 19, 2023
689d22d
Added Sub-Account APIs
samuael Jan 19, 2023
0bb7a40
Merge branch 'master' into cryptoCom
samuael Jan 19, 2023
5c4d2b0
Adding rate limiter and OTC Trading APIs
samuael Jan 20, 2023
b1d44e1
Adding wrapper functions
samuael Jan 21, 2023
31b1c37
Adding wrapper functions
samuael Jan 21, 2023
c2da8ba
Adding authenticated wrapper functions
samuael Jan 21, 2023
6d875d1
Adding werbsocket functions
samuael Jan 24, 2023
46df860
adding websocket connection subscription handling
samuael Jan 25, 2023
6bafbf9
Adding websocket push data handlers
samuael Jan 26, 2023
273d22f
fix on websocket connection, authentication, and completed websocket …
samuael Jan 28, 2023
25f5219
fix linter issues[
samuael Jan 28, 2023
62b0841
Merge branch 'master' into cryptoCom
samuael Jan 28, 2023
d76745a
Slight updates on the documentations
samuael Jan 28, 2023
d0721dd
Minor unit tests update
samuael Jan 29, 2023
b2d948e
Address minor issues
samuael Jan 31, 2023
60dc1d7
inspection fix
samuael Jan 31, 2023
9b0e03a
Merge branch 'master' into cryptoCom
samuael Jan 31, 2023
2a6dc48
Minor update
samuael Feb 7, 2023
a57f7c5
minor fixes
samuael Feb 8, 2023
99f2274
Merge branch 'master' into cryptoCom
samuael Feb 9, 2023
18bbd1d
Minor fix
samuael Feb 9, 2023
de07b60
Remove WsConnect unit test to prevent race cond
samuael Feb 12, 2023
1e37072
Fix on unit tests
samuael Feb 14, 2023
48fa29d
Update rate limit and small formating issues
samuael Feb 20, 2023
0549510
WS fix
samuael Feb 20, 2023
75dc05b
Merge branch 'master' into cryptoCom
samuael Feb 27, 2023
490c117
Add GetFee wrapper func
samuael Feb 28, 2023
a149dd9
Adding wrapper function
samuael Mar 1, 2023
c7fff3c
Merge branch 'master' into cryptoCom
samuael Mar 8, 2023
626a46f
Minor update
samuael Mar 10, 2023
b0b307c
race, unit test, and websocket handling fix
samuael Mar 17, 2023
d434174
websocket handler fix
samuael Mar 17, 2023
136c4df
Minor websocekt rountine manager update
samuael Mar 20, 2023
4ae8d5c
Minor fix
samuael Mar 28, 2023
3cd3874
reverting deleted wrapper function
samuael Mar 28, 2023
ae8f9be
Merge branch 'master' of http://github.com/thrasher-corp/gocryptotrad…
samuael Apr 4, 2023
50024d9
Merge branch 'master' of http://github.com/thrasher-corp/gocryptotrad…
samuael Apr 5, 2023
e7171f3
slight documentation fix
samuael Apr 16, 2023
11ded83
Merge branch 'master' of http://github.com/thrasher-corp/gocryptotrad…
samuael Apr 16, 2023
ff63657
model and functions test update
samuael Apr 27, 2023
85b36f0
Merge branch 'master' of http://github.com/thrasher-corp/gocryptotrad…
samuael Apr 27, 2023
e0ae743
Documentation and minor linter fix
samuael Apr 28, 2023
32ef0a2
Merge branch 'master' of http://github.com/thrasher-corp/gocryptotrad…
samuael May 30, 2023
e07b043
fix type conversion method and add unit test
samuael May 31, 2023
a3f973c
timestamp unmarshal fix
samuael Jun 1, 2023
9dae023
Merge branch 'master' of http://github.com/thrasher-corp/gocryptotrad…
samuael Jun 8, 2023
f999d8e
Merge branch 'master' of http://github.com/thrasher-corp/gocryptotrad…
samuael Jun 19, 2023
8bf25bd
Merge branch 'master' of http://github.com/thrasher-corp/gocryptotrad…
samuael Jun 20, 2023
a2b2669
Merge branch 'master' of http://github.com/thrasher-corp/gocryptotrad…
samuael Jun 22, 2023
a9f9986
Merge branch 'master' of http://github.com/thrasher-corp/gocryptotrad…
samuael Jun 26, 2023
30ccfa3
Merge branch 'master' of http://github.com/thrasher-corp/gocryptotrad…
samuael Jul 3, 2023
7204ad7
Merge branch 'master' of http://github.com/thrasher-corp/gocryptotrad…
samuael Jul 4, 2023
a640232
Merge branch 'master' of http://github.com/thrasher-corp/gocryptotrad…
samuael Jul 5, 2023
0ed85bd
Merge branch 'master' of http://github.com/thrasher-corp/gocryptotrad…
samuael Jul 6, 2023
9dd6396
Merge branch 'master' of http://github.com/thrasher-corp/gocryptotrad…
samuael Jul 12, 2023
a011dde
Merge branch 'master' of http://github.com/thrasher-corp/gocryptotrad…
samuael Sep 28, 2023
0bca653
small update on unit test and orderbook testing
samuael Sep 30, 2023
933898e
Merge branch 'master' of http://github.com/thrasher-corp/gocryptotrad…
samuael Oct 4, 2023
1578af0
Merge branch 'master' of http://github.com/thrasher-corp/gocryptotrad…
samuael Oct 10, 2023
710f12a
Merge branch 'master' of http://github.com/thrasher-corp/gocryptotrad…
samuael Nov 5, 2023
1366934
add missing wrapper declaration
samuael Nov 5, 2023
c3e0c5d
Merge branch 'master' of http://github.com/thrasher-corp/gocryptotrad…
samuael Dec 16, 2023
035e850
Types, Wrapper functions, and unit tests updates
samuael Dec 16, 2023
9eddc9d
Minor unit test update
samuael Dec 16, 2023
79f5214
Merge branch 'master' of http://github.com/thrasher-corp/gocryptotrad…
samuael Dec 22, 2023
b9a3598
Types update
samuael Dec 22, 2023
39f7cf1
Merge branch 'master' of http://github.com/thrasher-corp/gocryptotrad…
samuael Dec 28, 2023
f1ae01e
Merge branch 'master' of http://github.com/thrasher-corp/gocryptotrad…
samuael Dec 31, 2023
98f3441
Merge branch 'master' of http://github.com/thrasher-corp/gocryptotrad…
samuael Jan 3, 2024
f5937da
Merge branch 'master' of http://github.com/thrasher-corp/gocryptotrad…
samuael Feb 8, 2024
c30e347
Merge branch 'master' of http://github.com/thrasher-corp/gocryptotrad…
samuael Mar 20, 2024
86fdbc8
Update unit test handlings
samuael Mar 20, 2024
b7e7e7c
Fit unix test, types, and linter issues
samuael Mar 23, 2024
d9f6b2a
Unit tests and few endpoints update
samuael Jun 5, 2024
d04c9ca
Merge branch 'master' of http://github.com/thrasher-corp/gocryptotrad…
samuael Jun 5, 2024
91614ce
Update ratelimiter, wrapper, and few changes
samuael Jun 5, 2024
a537c5a
Config lint fix
samuael Jun 5, 2024
0e16a7d
endpoints update and started adding missing endpoints, and unit tests
samuael Jun 5, 2024
f316c24
Added missing endpoints and unit tests
samuael Jun 6, 2024
890207d
Merge branch 'master' of http://github.com/thrasher-corp/gocryptotrad…
samuael Jun 22, 2024
ed8dad5
Minor cleanup on websocket configuration
samuael Jun 22, 2024
235c48c
Merge branch 'master' of http://github.com/thrasher-corp/gocryptotrad…
samuael Jul 6, 2024
12e1f13
replace errors and minor changes
samuael Jul 6, 2024
333d59e
Merge branch 'master' of http://github.com/thrasher-corp/gocryptotrad…
samuael Oct 14, 2024
6bc8907
Update REST endpoints, types, and unit tests
samuael Oct 14, 2024
0b8eb99
Websocket endpoints error handling update
samuael Oct 15, 2024
9d138e8
Merge branch 'master' of http://github.com/thrasher-corp/gocryptotrad…
samuael Oct 15, 2024
6f00725
Added Staking endpoint and unit testing
samuael Oct 22, 2024
c8c640f
Merge branch 'master' of http://github.com/thrasher-corp/gocryptotrad…
samuael Oct 22, 2024
7d71b49
Added missing updates
samuael Oct 23, 2024
6366cb8
Merge branch 'master' of http://github.com/thrasher-corp/gocryptotrad…
samuael Oct 24, 2024
e66e793
Update websocket endpoints, types, and unit tests
samuael Oct 24, 2024
f9bb92a
Merge branch 'master' of http://github.com/thrasher-corp/gocryptotrad…
samuael Oct 25, 2024
3ea7789
Merge branch 'master' of http://github.com/thrasher-corp/gocryptotrad…
samuael Nov 1, 2024
4a64dfe
Merge branch 'master' of http://github.com/thrasher-corp/gocryptotrad…
samuael Nov 14, 2024
238a281
Merge branch 'master' of http://github.com/thrasher-corp/gocryptotrad…
samuael Nov 20, 2024
b822d76
Merge branch 'master' of http://github.com/thrasher-corp/gocryptotrad…
samuael Nov 28, 2024
55d8088
Merge branch 'master' of http://github.com/thrasher-corp/gocryptotrad…
samuael Dec 7, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ Join our slack to discuss all things related to GoCryptoTrader! [GoCryptoTrader
| Bybit | Yes | Yes | NA |
| CoinbasePro | Yes | Yes | No|
| COINUT | Yes | Yes | NA |
| Cryptodotcom | Yes | Yes | No |
| Deribit | Yes | Yes | No |
| Exmo | Yes | NA | NA |
| GateIO | Yes | Yes | NA |
Expand Down
106 changes: 106 additions & 0 deletions cmd/documentation/exchanges_templates/cryptodotcom.tmpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
{{define "exchanges cryptodotcom" -}}
{{template "header" .}}
## CryptoDotCom Exchange

### Current Features

+ REST Support
+ Websocket Support

### How to enable

+ [Enable via configuration](https://githucr.com/thrasher-corp/gocryptotrader/tree/master/config#enable-exchange-via-config-example)

+ Individual package example below:

```go
// Exchanges will be abstracted out in further updates and examples will be
// supplied then
```

### How to do REST public/private calls

+ If enabled via "configuration".json file the exchange will be added to the
IBotExchange array in the ```go var bot Bot``` and you will only be able to use
the wrapper interface functions for accessing exchange data. View routines.go
for an example of integration usage with GoCryptoTrader. Rudimentary example
below:

main.go
```go
var cr exchange.IBotExchange

for i := range bot.Exchanges {
if bot.Exchanges[i].GetName() == "CryptoDotCom" {
cr = bot.Exchanges[i]
}
}

// Public calls - wrapper functions

// Fetches current ticker information
tick, err := cr.FetchTicker()
if err != nil {
// Handle error
}

// Fetches current orderbook information
ob, err := cr.FetchOrderbook()
if err != nil {
// Handle error
}

// Private calls - wrapper functions - make sure your APIKEY and APISECRET are
// set and AuthenticatedAPISupport is set to true

// Fetches current account information
accountInfo, err := cr.GetAccountInfo()
if err != nil {
// Handle error
}
```

+ If enabled via individually importing package, rudimentary example below:

```go
// Public calls

// Fetches current ticker information
ticker, err := cr.GetTicker()
if err != nil {
// Handle error
}

// Fetches current orderbook information
ob, err := cr.GetOrderBook()
if err != nil {
// Handle error
}

// Private calls - make sure your APIKEY and APISECRET are set and
// AuthenticatedAPISupport is set to true

// GetUserInfo returns account info
accountInfo, err := cr.GetUserInfo(...)
if err != nil {
// Handle error
}

// Submits an order and the exchange and returns its tradeID
tradeID, err := cr.Trade(...)
if err != nil {
// Handle error
}
```

### How to do Websocket public/private calls

```go
// Exchanges will be abstracted out in further updates and examples will be
// supplied then
```

### Please click GoDocs chevron above to view current GoDoc information for this package
{{template "contributions"}}
{{template "donations" .}}
{{end}}
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ _b in this context is an `IBotExchange` implemented struct_
| Bybit | Yes | Yes | Yes |
| CoinbasePro | Yes | Yes | No|
| COINUT | Yes | Yes | No |
| Cryptodotcom | Yes | Yes | No |
| Deribit | Yes | Yes | Yes |
| Exmo | Yes | NA | No |
| GateIO | Yes | Yes | No |
Expand Down
1 change: 1 addition & 0 deletions cmd/documentation/root_templates/root_readme.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ Join our slack to discuss all things related to GoCryptoTrader! [GoCryptoTrader
| Bybit | Yes | Yes | NA |
| CoinbasePro | Yes | Yes | No|
| COINUT | Yes | Yes | NA |
| Cryptodotcom | Yes | Yes | No |
| Deribit | Yes | Yes | No |
| Exmo | Yes | NA | NA |
| GateIO | Yes | Yes | NA |
Expand Down
83 changes: 83 additions & 0 deletions config_example.json
Original file line number Diff line number Diff line change
Expand Up @@ -1288,6 +1288,89 @@
}
]
},
{
"name": "Cryptodotcom",
"enabled": true,
"verbose": false,
"httpTimeout": 15000000000,
"websocketResponseCheckTimeout": 30000000,
"websocketResponseMaxLimit": 7000000000,
"websocketTrafficTimeout": 30000000000,
"baseCurrencies": "USD",
"currencyPairs": {
"bypassConfigFormatUpgrades": false,
"assetTypes": [
"spot"
],
"pairs": {
"spot": {
"assetEnabled": true,
"enabled": "RSR_USDT,PERP_USDT,MATIC_BTC,MATIC_USD,SHIB_USDT,GRT_BTC",
"available": "RSR_USDT,PERP_USDT,MATIC_BTC,MATIC_USD,SHIB_USDT,GRT_BTC,GRT_USD,C98_USD,AIOZ_USD,REEF_USD,MC_USD,CUDOS_USDT,QI_USDT,ANKR_USD,GTC_USD,VET_BTC,VET_USD,FIL_USDT,KNC_USDT,CHESS_USD,ICP_USDT,UNFI_USDT,LPT_USD,THETA_USDT,OP_USD,BADGER_USDT,LRC_USD,HERO_USD,QI_USD,FORTH_USDT,LSK_USD,QNT_USD,COMP_BTC,COMP_USD,LTC_BTC,LTC_USD,GLMR_BTC,GLMR_USD,GLM_USDT,SC_USD,SD_USD,SHIB_USD,CUDOS_USD,T_USDT,IRIS_USD,ZRX_USDT,ICX_USDT,SUPER_USDT,YFI_USDT,JASMY_BTC,JASMY_USD,COTI_USD,UNFI_USD,REQ_USDT,VRA_USD,POWR_USDT,ASTR_USD,CHR_USD,CHZ_BTC,CHZ_USD,USDT_USD,CTSI_USD,MATIC_USDT,UNI_USDT,KSM_USDT,EGLD_USDT,QUICK_USD,HOT_USDT,SPELL_USDT,CKB_USD,BCH_USDT,VVS_USD,HFT_USD,NMR_USDT,DIA_USDT,ZIL_USDT,MBL_USD,AXS_USDT,IMX_USDT,BOSON_USD,CKB_USDT,MDT_USD,POND_USDT,IDEX_USD,COS_USD,RAD_USD,MOVR_USDT,MOVR_BTC,MOVR_USD,FXS_USDT,WBTC_USDT,RBN_USD,CQT_USD,FITFI_USD,CRO_BTC,CRO_USD,WOO_USDT,KP3R_USDT,CRV_BTC,CRV_USD,RAD_USDT,WAVES_USD,HNT_USD,HOD_USD,REN_USD,REP_USD,REQ_USD,HOT_USD,EGLD_BTC,EGLD_USD,ALPHA_USDT,LOKA_USDT,MKR_USD,MLN_USD,ALICE_USD,CVX_USD,MMF_USD,XRP_USDT,KAVA_USDT,SAND_USDT,MANA_BTC,MANA_USD,STORJ_USD,RLC_USD,RLY_USD,LUNA2_USD,VVS_USDT,FET_USDT,CELR_USDT,MASK_USD,ELON_USD,AERGO_BTC,AERGO_USD,LRC_USDT,MTD_USD,INJ_USDT,GHST_USD,TFUEL_USD,QTUM_USDT,DAI_USD,RARE_USD,RARI_USD,DAR_USD,OGN_USDT,ATOM_BTC,ATOM_CRO,ATOM_USD,MXC_USD,YGG_USDT,RSR_USD,QRDO_USD,PERP_USD,WOO_USD,FORTH_USD,VRA_USDT,FTM_USDT,DGB_USD,HBAR_BTC,HBAR_USD,MKR_USDT,POLS_USD,MAGIC_USD,ICP_BTC,ICP_USD,ICX_BTC,ICX_USD,WTC_USD,DIA_USD,POND_USD,KP3R_USD,DYDX_USDT,GMX_USDT,BICO_USD,TFUEL_USDT,GRT_USDT,WAXP_USD,NEAR_USDT,ALICE_USDT,BIFI_USD,NEAR_BTC,NEAR_USD,NEO_BTC,NEO_USD,BAND_USDT,DOT_BTC,DOT_USD,RUNE_BTC,RUNE_USD,XNO_USDT,ILV_BTC,ILV_USD,SUSHI_BTC,SUSHI_USD,AIOZ_USDT,IMX_BTC,IMX_USD,SC_USDT,POWR_USD,INJ_USD,SDN_USD,APE_USDT,1INCH_USDT,AAVE_BTC,AAVE_USD,FARM_USD,NKN_USD,API3_USD,SNX_USDT,REEF_USDT,DOGE_BTC,DOGE_USD,BICO_USDT,MBL_USDT,IQ_USDT,DERC_USD,NMR_USD,ASTR_USDT,PYR_USDT,SKL_USD,LDO_USDT,SLP_USD,AAVE_USDT,RLC_USDT,LINK_USDT,KAVA_USD,SNT_USD,SNX_USD,NEO_USDT,DYDX_BTC,DYDX_USD,SOL_BTC,SOL_USD,LINK_BTC,LINK_USD,AURORA_USDT,RARE_USDT,OMG_USDT,SPS_USD,TONIC_USDT,IOTX_USDT,XLM_BTC,XLM_USD,FLOW_USDT,BNT_USDT,SPELL_USD,ERN_USDT,XNO_USD,APT_USDT,RARI_USDT,FITFI_USDT,TRB_USDT,KLAY_USDT,STG_USD,TONIC_USD,COMP_USDT,STX_BTC,STX_USD,PAXG_USD,DOT_USDT,CQT_USDT,EFI_BTC,EFI_USD,LSK_USDT,XRP_BTC,XRP_USD,WBTC_BTC,WBTC_USD,OCEAN_USDT,AUTO_USD,STRAX_USDT,IOTX_USD,XTZ_USD,ANKR_USDT,SOL_USDT,DAI_USDT,MULTI_USD,METIS_USDT,RADAR_USD,ELF_USD,ALCX_USD,PAXG_USDT,ENJ_BTC,ENJ_USD,BOBA_USD,XYO_USD,ENS_USD,CVX_USDT,QNT_USDT,EOS_BTC,EOS_USD,AGLD_USD,ALGO_BTC,ALGO_USD,EPX_USD,T_USD,OGN_BTC,OGN_USD,ERN_USD,KLAY_USD,DAR_USDT,RLY_USDT,ETC_USD,JOE_USD,AVAX_BTC,AVAX_USD,ETH_BTC,ETH_CRO,ETH_USD,GODS_USD,BTC_USDT,GLMR_USDT,OLE_USD,TRU_USDT,OMG_USD,PLA_USDT,ONE_BTC,ONE_USD,ONG_USD,METIS_USD,ONT_USD,ENJ_USDT,CHR_USDT,GTC_USDT,YFI_USD,BOND_USD,OP_USDT,STX_USDT,YGG_USD,SAND_BTC,SAND_USD,XYO_USDT,HBAR_USDT,ORN_USD,FLOW_BTC,FLOW_USD,ONE_USDT,ACA_USD,ACH_USD,HIGH_USDT,LTC_USDT,ADA_BTC,ADA_USD,VOXEL_USDT,WAXP_USDT,ACA_USDT,LOKA_USD,CRO_USDT,VELO_USD,ALPHA_USD,CRPT_USD,TRB_USD,CHZ_USDT,XTZ_USDT,TRU_USD,NKN_USDT,ENS_USDT,VOXEL_USD,FLUX_USD,OXT_USD,ETHW_USDT,SKL_USDT,FER_USD,FET_USD,MANA_USDT,AKT_USD,CTSI_USDT,ALI_USD,ACH_USDT,FLUX_USDT,STRAX_USD,API3_USDT,STORJ_USDT,BADGER_USD,CRV_USDT,AMP_USD,FIL_USD,FIS_USD,ANT_USD,VET_USDT,OSMO_USD,SUPER_USD,BAL_USDT,APE_BTC,APE_USD,BAND_USD,APT_USD,WAVES_USDT,1INCH_USD,RUNE_USDT,AVAX_USDT,CSPR_USDT,VTHO_USD,FLR_USD,ONT_USDT,ATOM_USDT,DOGE_USDT,GALA_USD,AR_USDT,GAL_USDT,AURORA_USD,SPS_USDT,HIGH_USD,BAT_USDT,PSTAKE_USD,KNC_BTC,KNC_USD,AXS_BTC,AXS_USD,AGLD_USDT,GARI_USD,FTM_BTC,FTM_USD,QTUM_USD,MASK_USDT,PLA_USD,ZBC_USD,OCEAN_USD,JASMY_USDT,ETC_USDT,KRL_USD,JOE_USDT,KSM_USD,FXS_USD,AUDIO_USDT,ELON_USDT,AERGO_USDT,POLS_USDT,ZED_USD,AMP_USDT,SUSHI_USDT,BAL_USD,BAT_USD,ETHW_USD,UMA_USDT,ETH_USDT,UMA_USD,PRQ_BTC,PRQ_USD,AUDIO_USD,RNDR_USD,MINA_USD,QUICK_USDT,UNI_BTC,UNI_USD,BCH_BTC,BCH_USD,ZIL_BTC,ZIL_USD,THETA_USD,ARPA_USD,ALGO_USDT,POLYX_USD,MDT_USDT,ADA_USDT,PENDLE_USD,GAL_USD,CSPR_USD,COTI_USDT,MXC_USDT,OOKI_USD,EOS_USDT,PYR_BTC,PYR_USD,ILV_USDT,ZRX_USD,BLZ_USD,RNDR_USDT,AR_USD,SLP_USDT,LUNC_USD,LDO_BTC,LDO_USD,BNT_USD,XLM_USDT,MINA_USDT,GLM_USD,DERC_USDT,PRQ_USDT,GMT_USD,GMX_USD,CELR_USD,EFI_USDT,GODS_USDT,WEMIX_USD,GNO_USD,LIT_USD,BTC_USD,IQ_USD",
"requestFormat": {
"uppercase": true,
"delimiter": "_"
},
"configFormat": {
"uppercase": true,
"delimiter": "_"
}
}
}
},
"api": {
"authenticatedSupport": false,
"authenticatedWebsocketApiSupport": true,
"credentials": {},
"credentialsValidator": {
"requiresKey": true,
"requiresSecret": true
},
"urlEndpoints": {
"RestSpotURL": "https://api.crypto.com/v2/",
"WebsocketSpotURL": "wss://stream.crypto.com/v2/market"
}
},
"features": {
"supports": {
"restAPI": true,
"restCapabilities": {
"tickerBatching": true,
"autoPairUpdates": true
},
"websocketAPI": true,
"websocketCapabilities": {}
},
"enabled": {
"autoPairUpdates": true,
"websocketAPI": true,
"saveTradeData": true,
"tradeFeed": true,
"fillsFeed": true
}
},
"bankAccounts": [
{
"enabled": false,
"bankName": "",
"bankAddress": "",
"bankPostalCode": "",
"bankPostalCity": "",
"bankCountry": "",
"accountName": "",
"accountNumber": "",
"swiftCode": "",
"iban": "",
"supportedCurrencies": ""
}
],
"orderbook": {
"verificationBypass": false,
"websocketBufferLimit": 5,
"websocketBufferEnabled": false,
"publishPeriod": 10000000000
}
},
{
"name": "Deribit",
"enabled": true,
Expand Down
2 changes: 1 addition & 1 deletion currency/forexprovider/exchangeratesapi.io/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# GoCryptoTrader package Exchangeratesapi.io
# GoCryptoTrader package Exchangeratesapi.Io

<img src="/common/gctlogo.png?raw=true" width="350px" height="350px" hspace="70">

Expand Down
2 changes: 1 addition & 1 deletion currency/forexprovider/fixer.io/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# GoCryptoTrader package Fixer.io
# GoCryptoTrader package Fixer.Io

<img src="/common/gctlogo.png?raw=true" width="350px" height="350px" hspace="70">

Expand Down
2 changes: 2 additions & 0 deletions docs/ADD_NEW_EXCHANGE.md
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,7 @@ Yes means supported, No means not yet implemented and NA means protocol unsuppor
| BTSE | Yes | Yes | NA |
| Bybit | Yes | Yes | NA |
| COINUT | Yes | Yes | NA |
| Cryptodotcom | Yes | Yes | No |
| Deribit | Yes | Yes | NA |
| Exmo | Yes | NA | NA |
| FTX | Yes | Yes | No | // <-------- new exchange
Expand Down Expand Up @@ -236,6 +237,7 @@ var Exchanges = []string{
"bybit",
"coinbasepro",
"coinut",
"cryptodotcom",
"deribit",
"exmo",
"ftx", // <-------- new exchange
Expand Down
1 change: 1 addition & 0 deletions docs/MULTICHAIN_TRANSFER_SUPPORT.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ $ ./gctcli withdrawcryptofunds --exchange=binance --currency=USDT --address=TJU9
| Bybit | Yes | Yes | |
| CoinbasePro | No | No | No|
| COINUT | No | No | NA |
| Cryptodotcom | Yes | Yes | |
| Deribit | Yes | Yes | |
| Exmo | Yes | Yes | Addresses must be created via their website first |
| GateIO | Yes | Yes | |
Expand Down
1 change: 1 addition & 0 deletions docs/OHLCV.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ A helper tool [cmd/dbseed](../cmd/dbseed/README.md) has been created for assisti
| Bybit | Y |
| Coinbase Pro | Y |
| Coinut | |
| Cryptodotcom | |
| Deribit | Y |
| Exmo | |
| GateIO | Y |
Expand Down
3 changes: 3 additions & 0 deletions engine/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ import (
"github.com/thrasher-corp/gocryptotrader/exchanges/bybit"
"github.com/thrasher-corp/gocryptotrader/exchanges/coinbasepro"
"github.com/thrasher-corp/gocryptotrader/exchanges/coinut"
"github.com/thrasher-corp/gocryptotrader/exchanges/cryptodotcom"
"github.com/thrasher-corp/gocryptotrader/exchanges/deposit"
"github.com/thrasher-corp/gocryptotrader/exchanges/deribit"
"github.com/thrasher-corp/gocryptotrader/exchanges/exmo"
Expand Down Expand Up @@ -1015,6 +1016,8 @@ func NewSupportedExchangeByName(name string) (exchange.IBotExchange, error) {
return new(bybit.Bybit), nil
case "coinut":
return new(coinut.COINUT), nil
case "cryptodotcom":
return new(cryptodotcom.Cryptodotcom), nil
case "deribit":
return new(deribit.Deribit), nil
case "exmo":
Expand Down
9 changes: 8 additions & 1 deletion exchanges/asset/asset.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ const (
MarginFunding
Index
Binary
OTC // Over-the-counter(OTC)
// Futures asset consts must come below this comment for method `IsFutures`
Futures
PerpetualContract
Expand All @@ -44,6 +45,7 @@ const (
// Options asset consts must come below this comment for method `IsOptions`
Options
OptionCombo

// All asset const must come immediately after all valid assets for method `IsValid`
All
)
Expand All @@ -68,12 +70,13 @@ const (
options = "options"
optionCombo = "option_combo"
futureCombo = "future_combo"
otc = "otc"
linearContract = "linearcontract"
all = "all"
)

var (
supportedList = Items{Spot, Margin, CrossMargin, MarginFunding, Index, Binary, PerpetualContract, PerpetualSwap, Futures, DeliveryFutures, UpsideProfitContract, DownsideProfitContract, CoinMarginedFutures, USDTMarginedFutures, USDCMarginedFutures, Options, LinearContract, OptionCombo, FutureCombo}
supportedList = Items{Spot, Margin, CrossMargin, MarginFunding, Index, Binary, PerpetualContract, PerpetualSwap, Futures, DeliveryFutures, UpsideProfitContract, DownsideProfitContract, CoinMarginedFutures, USDTMarginedFutures, USDCMarginedFutures, Options, LinearContract, OptionCombo, FutureCombo, OTC}
)

// Supported returns a list of supported asset types
Expand Down Expand Up @@ -120,6 +123,8 @@ func (a Item) String() string {
return optionCombo
case FutureCombo:
return futureCombo
case OTC:
return otc
case LinearContract:
return linearContract
case All:
Expand Down Expand Up @@ -238,6 +243,8 @@ func New(input string) (Item, error) {
return OptionCombo, nil
case futureCombo:
return FutureCombo, nil
case otc:
return OTC, nil
case linearContract:
return LinearContract, nil
case all:
Expand Down
2 changes: 2 additions & 0 deletions exchanges/asset/asset_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,8 @@ func TestNew(t *testing.T) {
{Input: "Option", Expected: Options},
{Input: "Future", Error: ErrNotSupported},
{Input: "option_combo", Expected: OptionCombo},
{Input: "otc", Expected: OTC},
{Input: "OTC", Expected: OTC},
{Input: "future_combo", Expected: FutureCombo},
{Input: "linearContract", Expected: LinearContract},
}
Expand Down
Loading
Loading