All Projects → struktured → ocaml-gemini

struktured / ocaml-gemini

Licence: MIT license
OCaml REST and WebSockets client for the Gemini Trading Exchange.

Programming Languages

ocaml
1615 projects
Makefile
30231 projects

Projects that are alternatives of or similar to ocaml-gemini

Cryptex
Gemini, GDAX, Bitfinex, Poloniex, Binance, Kraken, Cryptopia, Koinex, BitGrail and CoinMarketCap cryptocurrency exchange API clients in Swift / iOS SDK. Check prices and account balances using Sample iOS app.
Stars: ✭ 51 (+218.75%)
Mutual labels:  gemini, cryptocurrencies
gemini-python
A python client for the Gemini API and Websocket
Stars: ✭ 71 (+343.75%)
Mutual labels:  gemini, gemini-api
Crypto-Webminer
Use Crypto Webminer JavaScript miner on various Cryptonight | CN-Lite | CN-Fast | CN-Fast2 | CN-Pico | CN-RWZ | CN-UPX2 | CN-Half | CN-Heavy | CN-Saber (BitTube) | Argon2id - Chukwa Stratum Pools
Stars: ✭ 166 (+937.5%)
Mutual labels:  cryptocurrencies
astro
A Gemini web browser using shell script
Stars: ✭ 32 (+100%)
Mutual labels:  gemini
candlestick retriever
Retrieve all historical candlestick data from crypto exchange Binance and upload it to Kaggle.
Stars: ✭ 122 (+662.5%)
Mutual labels:  cryptocurrencies
learn-crypto-trading.github.io
valuable sources for TA, FA, Algorithmic \ Quant Trading
Stars: ✭ 133 (+731.25%)
Mutual labels:  cryptocurrencies
algo-coin
Python library for algorithmic trading cryptocurrencies across multiple exchanges
Stars: ✭ 386 (+2312.5%)
Mutual labels:  gemini
binance-node-docker
Docker image for Binance full and light nodes
Stars: ✭ 24 (+50%)
Mutual labels:  cryptocurrencies
catalyst
An Algorithmic Trading Library for Crypto-Assets in Python
Stars: ✭ 2,364 (+14675%)
Mutual labels:  cryptocurrencies
profbit
Track your Coinbase profits!
Stars: ✭ 37 (+131.25%)
Mutual labels:  cryptocurrencies
telescope
A Gemini Browser
Stars: ✭ 19 (+18.75%)
Mutual labels:  gemini
gemini-react
Plugin, which simplifies writing gemini tests for react components
Stars: ✭ 22 (+37.5%)
Mutual labels:  gemini
coinwatch
Coinmarketcap console client to keep track of your crypto currency trades - are you winning or losing?
Stars: ✭ 73 (+356.25%)
Mutual labels:  cryptocurrencies
go-gemini
Client and server library for the Gemini protocol, in Go.
Stars: ✭ 45 (+181.25%)
Mutual labels:  gemini
backtrading-python-binance
Backtesting several trading strategy and rank them according their profit return.
Stars: ✭ 108 (+575%)
Mutual labels:  cryptocurrencies
Kriptofolio
Free open source minimalistic cryptocurrencies portfolio app for Android.
Stars: ✭ 79 (+393.75%)
Mutual labels:  cryptocurrencies
waves-keeper
Your entry point to the Waves blockchain and Waves-powered web services
Stars: ✭ 57 (+256.25%)
Mutual labels:  cryptocurrencies
Crypto-Resources
Resources for trading Bitcoin and Altcoins
Stars: ✭ 22 (+37.5%)
Mutual labels:  cryptocurrencies
atomicswap-qt
decred/atomicswap rewrite by Python3 and add gui by PyQt5
Stars: ✭ 17 (+6.25%)
Mutual labels:  cryptocurrencies
Microstaking
No description or website provided.
Stars: ✭ 26 (+62.5%)
Mutual labels:  cryptocurrencies

Introduction

This library implements the Gemini exchange v1 REST, Market Data, and Order events websockets services. It is backed by cohttp-async and websockets-async to do the heavy lifting. A provisional console interface is also provided using s-expressions to encode request parameters.

Installation

From your project directory run

opam pin . -y

You can also build the code locally with make or dune.

Api Documentation

The autogenerated api documentation is here.

Configuration

Default environment property

export GEMINI_ENV=production

or

export GEMINI_ENV=sandbox

Sandbox properties

export GEMINI_SANDBOX_API_KEY=...
export GEMINI_SANDBOX_API_SECRET=...

Production properties

export GEMINI_PRODUCTION_API_SECRET=...
export GEMINI_PRODUCTION_API_KEY=...

Example command line usage

gemini tradevolume

2018-03-30 22:01:44.029835-04:00 Info response:
 ((((account_id 123456) (symbol Ethusd) (base_currency Eth)
   (notional_currency Usd) (data_date 2018-03-07)
   (total_volume_base 1.35528896) (maker_buy_sell_ratio 0) (buy_maker_base 0)
   (buy_maker_notional 0) (buy_maker_count 0) (sell_maker_base 0)
   (sell_maker_notional 0) (sell_maker_count 0) (buy_taker_base 1.35528896)
   (buy_taker_notional 997.5062274496) (buy_taker_count 1)
   (sell_taker_base 0) (sell_taker_notional 0) (sell_taker_count 0))
  ((account_id 123456) (symbol Ethusd) (base_currency Eth)
   (notional_currency Usd) (data_date 2018-03-12)
   (total_volume_base 0.30208043) (maker_buy_sell_ratio 0) (buy_maker_base 0)
   (buy_maker_notional 0) (buy_maker_count 0) (sell_maker_base 0)
   (sell_maker_notional 0) (sell_maker_count 0) (buy_taker_base 0.80208043)
   (buy_taker_notional 428.72431038315204) (buy_taker_count 10)
   (sell_taker_base 0) (sell_taker_notional 0) (sell_taker_count 0))
  ....
 gemini order new '((symbol Ethusd) (price 500.0) (amount .001) (type_ Exchange_limit) (client_order_id "test-order") (options ()) (side Sell))'

2018-03-30 22:18:01.210962-04:00 Info response:
 ((client_order_id (test-order)) (order_id 1392122353) (id 1190026576)
 (symbol Ethusd) (exchange Gemini) (avg_execution_price 0.00) (side Sell)
 (type_ Exchange_limit) (timestamp (2018-03-30 22:18:01.000000-04:00))
 (timestampms (2018-03-30 22:18:01.198000-04:00)) (is_live true)
 (is_cancelled false) (is_hidden false) (was_forced false)
 (executed_amount 0) (remaining_amount 0.001) (options ()) (price 500.00)
 (original_amount 0.001))

License

MIT

Features and Bugs

Open issues on github. I am too busy to add new features personally but will review and accept PRs when time permits.

TODO

  • order status web sockets api
  • fix unit test harness
  • document code
  • make opam release
  • integration test against sandbox environment
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].