mirror of
https://github.com/tiennm99/tiennm99bot.git
synced 2026-10-16 06:14:45 +00:00
fix(coin): use Binance public market-data endpoint data-api.binance.vision
This commit is contained in:
1 parent
fd2e84f8fd
commit
224a27cfd4
2 files changed
+2
-2
No files matched your search
@@ -11,7 +11,7 @@ import (
|
||||
)
|
||||
|
||||
const (
|
||||
binanceDefaultURL = "https://api.binance.com/api/v3/ticker/price"
|
||||
binanceDefaultURL = "https://data-api.binance.vision/api/v3/ticker/price"
|
||||
coinbaseDefaultURL = "https://api.coinbase.com/v2/exchange-rates"
|
||||
coinGeckoDefaultURL = "https://api.coingecko.com/api/v3/simple/price"
|
||||
coinHTTPTimeout = 10 * time.Second
|
||||
|
||||
+1
-1
@@ -60,7 +60,7 @@ Parameters:
|
||||
CoinBinanceAPIURL:
|
||||
Type: String
|
||||
Default: ""
|
||||
Description: Optional Binance ticker price API URL override. Empty uses the built-in public endpoint.
|
||||
Description: Optional Binance ticker price API URL override. Empty uses the public market-data endpoint https://data-api.binance.vision/api/v3/ticker/price.
|
||||
|
||||
CoinCoinbaseAPIURL:
|
||||
Type: String
|
||||
|
||||
Reference in new issue
Block a user