coinbase_pro
Coinbase pro client for Nim
Summary
| Latest Version | Unknown |
|---|---|
| License | MIT |
| CI Status | Failing |
| Downloads | 0 |
| Last Indexed | 2026-07-21 05:24 |
Tags
Installation
nimble install coinbase_pro
choosenim install coinbase_pro
git clone https://github.com/inv2004/coinbase-pro-nim
OS Compatibility
| Platform | Linux | macOS | Windows | FreeBSD | OpenBSD | NetBSD | Android | iOS | WASM | Embedded |
|---|---|---|---|---|---|---|---|---|---|---|
| coinbase_pro | ✓ | ✓ | ✓ | - | - | - | - | - | - | - |
Source
| Repository | https://github.com/inv2004/coinbase-pro-nim |
|---|---|
| Homepage | https://github.com/inv2004/coinbase-pro-nim |
| Registry Source | nimble_official |
README
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
- [x] getProduct(s)
- [x] getBook
- [x] getTicker
- [x] getTrades
- [x] getCandles
- [x] getStats
- [x] getTime
- [x] getCurrenc(y|ies)
WS-Feed
- [x] heartbeat
- [x] status
- [x] ticker
- [x] level2
- [x] full