Skip to content

Commit

Permalink
fix: gate io tickers
Browse files Browse the repository at this point in the history
  • Loading branch information
MiguelMedeiros committed Dec 19, 2023
1 parent 2091096 commit 01ff572
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/domain/ticker/repositories/gateio.repository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@ export class GateIORepository extends CacheRepository {
baseUrl = 'https://api.gateio.ws/api/v4'

getTickerCode(symbol: string): string {
return `${symbol.substring(0, 3)}_${symbol.substring(3, 6)}`
const tickers = {
BTCUSD: 'BTC_USDT',
}
return tickers[symbol.toUpperCase()] || symbol.toUpperCase()
}

getTickerURL(ticker: string): string {
Expand Down

0 comments on commit 01ff572

Please sign in to comment.