mirror of
https://github.com/inv2004/coinbase-pro-nim
synced 2026-01-14 03:11:34 +00:00
No description
| src | ||
| tests | ||
| .gitignore | ||
| coinbase_pro.nimble | ||
| LICENSE | ||
| README.md | ||
Coinbase pro client for Nim
It is just experiment to compare effort of making the same like coinbase-pro-rs but on Nim.
It was made in 3 evenings. Coinbase-pro-rs was made ?in a few months?, or course rs version is a bit more polished + has private API (I have never used). But the version supports decimal numbers and status channel.
The only stoppers here were:
- Nim's jsonutils bug and their fix (easy) https://github.com/nim-lang/Nim/pull/16615 and https://github.com/nim-lang/Nim/pull/16612
- Nim's kind objects cannot have the same field-names for different branches - it is a problem to make marshalling easier: https://github.com/nim-lang/RFCs/issues/19
Api
Sync
Async in Nim has very little overhead, all you need is just to import asyncdispatch and waitFor before any async call. That is why specific sync API is not necessary
ASync
- getProduct(s)
- getBook
- getTicker
- getTrades
- getCandles
- getStats
- getTime
- getCurrenc(y|ies)
WS-Feed
- heartbeat
- status
- ticker
- level2
- full