Displays a list of your last ~8 months of Gemini crypto transfers on the command line. Also displays your current total trading portfolio.
I wanted a quick way of retrieving my latest transfers from the command line, without fiddling with Gemini's web site or manual authentication. This does the job, and is based on https://docs.gemini.com/rest-api/#transfers
git clone https://github.com/ulysseskan/geminitransfers.git
cd geminitransfers
pip3 install -r requirements.txt
- Within config.py, edit
GEMINI_API_KEY
,GEMINI_API_SECRET
, obtainable from https://exchange.gemini.com/settings/api The key needs read-only auditor permissions and time based nonces. python3 geminitransfers.py
You need a copy of Python 3. I only tested with Python 3.10. One way to install Python 3 is:
- Install Brew.
brew install python3
- Ensure Brew's executable bin directory is in your PATH variable, for example:
echo "eval \$($(brew --prefix)/bin/brew shellenv)" >>~/.profile
- SSL certificate verification could be enabled by setting verify=True in the requests.post() method, and the hashlib module could be used to encode the API secret properly
- Don't use time-based nonces
- Filter transfers by date range or specific months
- Calculate and display total values of each currency in portfolio
- Add pagination support to handle large amounts of transfers
The transfers API request path has an undocumented limitation: it can only retrieve the last 8 or so months of data.
Distributed under the MIT License. See LICENSE
for more information.