''' The most basic way to use the Private API. I recommend renaming the file .env
to .env and filling out the gemini api key information. The dotenv package loads the .env (or .env)
file and the os.environ() function reads the values from the file.ß
'''
import os

import robin_stocks.gemini as g
from dotenv import load_dotenv
##
ticker = "btcusd"
##
g.login(os.environ['gemini_account_key'], os.environ['gemini_account_secret'])
my_trades, error = g.get_trades_for_crypto(ticker, jsonify=True)
if error:
    print("oh my an error")
else:
    print("no errors here")
print(my_trades)
