alleyway / add-tradingview-alerts-tool

Automated entry of TradingView alerts for bot trading tools such as 3Commas, Alertatron, CryptoHopper, etc.
MIT License
650 stars 142 forks source link

Unable to fetch perp pairs for binance #67

Closed avatar-lavventura closed 3 years ago

avatar-lavventura commented 3 years ago

I am unable to fetch perp pairs for the binance. Is it possible to fetch them?

❯  ./atat fetch-pairs binance perp
ℹ ATAT Version: 1.8.6 | Node Version: v16.3.0            
No symbols fetched!
avatar-lavventura commented 3 years ago

Downloading file from https://sandwichfinance.blob.core.windows.net/files/binancefuturesf_usdt_perpetual_futures.txt

and applyig following code piece solved my problem:

#!/usr/bin/env python3

with open('binancefuturesf_usdt_perpetual_futures.txt') as f:
    for line in f:
        _line = line.rstrip()
        print(f"{_line},{_line.replace('USDTPERP', '').replace('BINANCE:', '')},USDTPERP,")