deepbrook / geminiwss

Gemini Websocket API Client written in Python3

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

License:MIT License


Languages

Language:Python 100.0%