Skip to main content

API client for Gemini

Project description

# TSGemini- Shockdav A library for the Gemini bitcoin exchange API

Easily communicate with the Gemini Bitcoin exchange API without having to deal with HTTP requests.

Requirements

Please get an API key from [https://exchange.gemini.com/settings/api](https://exchange.gemini.com/settings/api)

Installation

shell pip install tsgemini

Example

python from tsgemini import TSGemini

# The connection defaults to the Gemini sandbox. # Add ‘live=True’ to use the live exchange con = Geminipy(api_key=’your API key’, secret_key=’your secret key’, live=True)

# public request symbols = con.symbols()

# a Requests response is returned. # So we can access the HTTP reponse code, # the raw response content, or a json object print symbols.status_code print symbols.content print symbols.json()

# authenticated request order = con.new_order(amount=’1’, price=’200’,side=’buy’)

print order.json()

#send a heartbeat con.heartbeat()

The required nonce is the current millisecond timestamp.

TS-Shockdav

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

monedadigitag-3.0.0.tar.gz (3.6 kB view hashes)

Uploaded Source

Built Distribution

monedadigitag-3.0.0-py3-none-any.whl (3.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page