mirror of
https://github.com/NoFxAiOS/nofx.git
synced 2026-07-17 09:24:36 +08:00
feat: init coinank openapi http request framework (#1240)
This commit is contained in:
25
provider/coinank/coinank_enum/exchange.go
Normal file
25
provider/coinank/coinank_enum/exchange.go
Normal 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"
|
||||
)
|
||||
6
provider/coinank/coinank_enum/product_type.go
Normal file
6
provider/coinank/coinank_enum/product_type.go
Normal file
@@ -0,0 +1,6 @@
|
||||
package coinank_enum
|
||||
|
||||
type ProductType string
|
||||
|
||||
const SWAP ProductType = "SWAP" //Contract
|
||||
const SPOT ProductType = "SPOT" //SPOT
|
||||
5
provider/coinank/coinank_enum/url.go
Normal file
5
provider/coinank/coinank_enum/url.go
Normal 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
|
||||
Reference in New Issue
Block a user