A repo to execute Gemini Exchange trades at lower fees than their Web App.
-
Create a
config.py
file with this formatkeys = { "real": { "pub_key": "account-xxxxxxxxxxxxxxxxxxxx", "priv_key": "xxxxxxxxxxxxxxxxxxxxxxxxxxxx", }, "sandbox": { "pub_key": "account-xxxxxxxxxxxxxxxxxxxx", "priv_key": "xxxxxxxxxxxxxxxxxxxxxxxxxxxx", }, }
Create your Gemini API key here https://exchange.gemini.com/settings/api Create your Gemini Sandbox API key here, if you want to test it out first https://exchange.sandbox.gemini.com/settings/api
-
Add missing pairs to trade on
cryptos.csv
Price_round
: The amount of significant figures after the decimal point for any given pair's price.Qty_round
: The amount of significant figures after the decimal point for any given pair's quantity.
-
Read
api.py
script. Most importantly read afterif __name__ == '__main__':
for a brief explanation how to execute orders. -
Never share your API Keys or
config.py
as anyone with your keys can control your account. I would recommend making sureconfig.py
is in your.gitignore
file.
Run this command to download all required python dependencies.
python3 -m pip install pandas, math, sys, gemini_python