Skip to content
This repository has been archived by the owner on Dec 6, 2017. It is now read-only.
/ geminiwss Public archive

Gemini Websocket API Client written in Python3

License

Notifications You must be signed in to change notification settings

deepbrook/geminiwss

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

GeminiWSS

A super simple WSS client for the Gemini Crpyto Exchange. It makes data available via Queues, while connecting to any number of public endpoints.

Usage

from geminiwss.client import GeminiWss
import time


wss = GeminiWss()

wss.subscribe('marketdata/btcusd')
wss.subscribe('marketdata/ethbtc')
wss.subscribe('marketdata/ethusd')

time.sleep(30)

while not wss.endpoint_qs['marketdata/btcusd'].empty():
    print('BTCUSD', wss.endpoint_qs['marketdata/btcusd'].get())

while not wss.endpoint_qs['marketdata/ethbtc'].empty():
    print('ETHBTC', wss.endpoint_qs['marketdata/ethbtc'].get())

while not wss.endpoint_qs['marketdata/ethusd'].empty():
    print('ETHUSD', wss.endpoint_qs['marketdata/ethusd'].get())

In the pipe

  • Authentication
  • Trading

About

Gemini Websocket API Client written in Python3

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages