feat: init coinank openapi http request framework (#1240)

This commit is contained in:
wqqqqqq
2025-12-17 10:22:02 +08:00
committed by GitHub
parent b169fcd3d2
commit 612e25db66
9 changed files with 344 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
package coinank_enum
type Exchange string
const ( // all maybe support exchange
Binance Exchange = "Binance"
Huobi Exchange = "Huobi"
Okex Exchange = "Okex"
Bitmex Exchange = "Bitmex"
FTX Exchange = "FTX"
Bybit Exchange = "Bybit"
Gate Exchange = "Gate"
Bitget Exchange = "Bitget"
dYdX Exchange = "dYdX"
Deribit Exchange = "Deribit"
Kraken Exchange = "Kraken"
Bitfinex Exchange = "Bitfinex"
AAX Exchange = "AAX"
CME Exchange = "CME"
Upbit Exchange = "Upbit"
Coinbase Exchange = "Coinbase"
Hyperliquid Exchange = "Hyperliquid"
Bitunix Exchange = "Bitunix"
Aster Exchange = "Aster"
)

View File

@@ -0,0 +1,6 @@
package coinank_enum
type ProductType string
const SWAP ProductType = "SWAP" //Contract
const SPOT ProductType = "SPOT" //SPOT

View File

@@ -0,0 +1,5 @@
package coinank_enum
var MainUrl = "https://open-api.coinank.com" //coinank openapi main url
var MainCnUrl = "https://open-api-cn.coinank.com" //coinank openapi url for chinese mainland