|
Crypto backtesting
|
Go to the source code of this file.
Namespaces | |
| namespace | binance |
Variables | |
| binance.api_key = os.getenv('BINANCE_API_KEY') | |
| binance.api_secret = os.getenv('BINANCE_API_SECRET') | |
| binance.client = Client(api_key, api_secret) | |
| binance.info = client.get_account() | |
| int | binance.non_zero_balances = 0 |
| binance.open_orders = client.get_open_orders() | |
| binance.reader = csv.reader(file) | |
| binance.date = row[0] | |
| binance.dt = datetime.strptime(date, '%Y-%m-%d %H:%M:%S') | |
| binance.exchange_and_symbol = row[1] | |
| binance.tokens = exchange_and_symbol.split('-') | |
| binance.symbol = tokens[1] + tokens[2] | |
| binance.symbol_spot = client.get_symbol_ticker(symbol=symbol) | |
| binance.price = float(symbol_spot['price']) | |
| binance.eth_price = float(symbol_spot['price']) | |