gemini-python-unoffc
gemini-python-unoffc copied to clipboard
Python library for the Gemini Exchange API
gemini-python-unoffc
Unofficial Python library for the Gemini Exchange REST API. This library has methods for all public, private, and order execution methods. The API documentation can be found here.
Installation
We're on PyPi! This library is compatible with Python 2 and 3.
pip install gemini-python-unoffc
Usage
You need to complete two steps before you can use the library:
- Register for a Gemini Exchange Account. They also offer a Sandbox for testing purposes.
- Once registered, obtain an API key and API secret.
Now you are ready to use the library. Everything is called via a Client object:
from gemini.client import Client
c = Client(api_key='API_KEY', api_secret='API_SECRET', sandbox=True)
Note the sandbox argument. The default is False, so if you want to test on the exchange's sandbox, you need to override this argument and excplicitly set it to True.
The Client object returns JSON from the exchange's API.
Example
from gemini.client import Client
c = Client('API_KEY','API_SECRET')
print(c.get_symbols())
print(c.get_balance())
Future Enhancements
Some feautres planned for later releases include:
- 100% test coverage
- Websocket interface
- Travis CI builds (goes along with 100% test coverage)
- Those neat lil' icons showing "Build Passing," and "100% test coverage"
License
This software is licensed under the MIT License.