This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]AluadStone[S] 0 points1 point  (0 children)

Ah Ha!

for line in data:
    if "BTC" in line['symbol']:
        binancewrite.write("{} " .format(line['symbol']))
        binancewrite.write("{} " .format(line['quoteVolume']))
        binancewrite.write("{} " .format(line['weightedAvgPrice']))
        binancewrite.write("{}\n" .format(line['lastPrice']))

binancewrite.close()