Created
May 12, 2020 13:31
-
-
Save jmoz/0c254ee2f2e9eeeaa3f366a327b9ad37 to your computer and use it in GitHub Desktop.
Revisions
-
jmoz created this gist
May 12, 2020 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,11 @@ import FtxClient c = FtxClient( api_key='YOURKEY', api_secret='YOURSECRET', ) balance = c.get_balances() print(balance) btc_total = next((b['total'] for b in balance if b['coin'] == 'BTC')) print(btc_total)