Skip to content

Commit bda93d6

Browse files
change binance api (#26)
1 parent 22acded commit bda93d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

price-server/src/provider/crypto/quoter/Binance.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ type Response = Array<{ symbol: string; price: string }> | { msg: string; code:
1010
export class Binance extends Quoter {
1111
private async updatePrices(): Promise<void> {
1212
const symbols = this.symbols.map((symbol) => '"' + symbol.replace('/', '') + '"').join(',')
13-
const response: Response = await fetch(`https://api.binance.com/api/v3/ticker/price?symbols=[${symbols}]`, {
13+
const response: Response = await fetch(`https://data-api.binance.vision/api/v3/ticker/price?symbols=[${symbols}]`, {
1414
timeout: this.options.timeout,
1515
}).then((res) => res.json())
1616

0 commit comments

Comments
 (0)