К прмеру мы получили вывод result = [BTC:1][ETH:2][USD:3] Вот тут мне надо вытащить данные, а таким образом a, b, c = result["BTC"]["total"], result["ETH"]["total"], result["USD"]["total"]
К прмеру мы получили вывод result = [BTC:1][ETH:2][USD:3] Вот тут мне надо вытащить данные, а таким образом a, b, c = result["BTC"]["total"], result["ETH"]["total"], result["USD"]["total"]
мы сделаем три запроса и получим данные.
Нет, нихуя, мы берез из уже полученного ответа от серва данные в варианте Саши
Если воспроизвести код result = await exchange.fetch_balance(hitbtc)
то он пишет мне, что необходимо перед запросом закрыть соединение
Сообщение ошибки
hitbtc requires to release all resources with an explicit call to the .close() coroutine. If you are using the exchange instance with async coroutines, add exchange.close() to your code into a place when you're done with the exchange and don't need the exchange instance anymore (at the end of your async coroutine).
hitbtc requires to release all resources with an explicit call to the .close() coroutine. If you are using the exchange instance with async coroutines, add exchange.close() to your code into a place when you're done with the exchange and don't need the exchange instance anymore (at the end of your async coroutine).
print(' * Balance ETH {0}: {1}'.format(exchange_id, "%.4f" % result["ETH"]["total"]))
Выйдет ошибка.
hitbtc requires to release all resources with an explicit call to the .close() coroutine. If you are using the exchange instance with async coroutines, add exchange.close() to your code into a place when you're done with the exchange and don't need the exchange instance anymore (at the end of your async coroutine).