Deribit API V2 Client for Rust Language
![Build Status] ![Latest Version] ![Rustc Version nightly] ![license] ![keybase logo] ![btc]
This is experimental and currently under heavy development. Use at your own risk.
This library uses Rust nightly features extensively like async/await and futures api. You need a nightly Rust to make it run.
The current plan is to only implement the websocket communication, which includes call api through websocket
and websocket subscription. I will first implement these APIs used for my own trading purpose, however, if you want some APIs
to be prioritly implemented please open an issue or just throw me a PR (this is more welcome :P).
Implementation Status
- Authentication
- [x] /public/auth
- [ ] /private/logout
- Session Management
- [x] /public/setheartbeat
- [x] /public/disableheartbeat
- [ ] /private/enablecancelondisconnect
- [ ] /private/disablecancelondisconnect
- Supporting
- [x] /public/get_time
- [x] /public/hello
- [x] /public/test
- Subscription Management
- [x] /public/subscribe
- [ ] /public/unsubscribe
- [x] /private/subscribe
- [ ] /private/unsubscribe
- Account Management
- [ ] /public/getannouncements
- [ ] /private/changesubaccountname
- [ ] /private/createsubaccount
- [ ] /private/disabletfaforsubaccount
- [x] /private/getaccountsummary
- [ ] /private/getemaillanguage
- [ ] /private/getnewannouncements
- [ ] /private/getposition
- [x] /private/getpositions
- [x] /private/getsubaccounts
- [ ] /private/setannouncementasread
- [ ] /private/setemailforsubaccount
- [ ] /private/setemaillanguage
- [ ] /private/setpasswordforsubaccount
- [ ] /private/togglenotificationsfromsubaccount
- [ ] /private/togglesubaccountlogin
Trading
- [x] /private/buy
- [x] /private/sell
- [x] /private/edit
- [x] /private/cancel
- [x] /private/cancel_all
- [x] /private/cancelallby_currency
- [x] /private/cancelallby_instrument
- [ ] /private/close_position
- [ ] /private/get_margins
- [ ] /private/getopenordersbycurrency
- [ ] /private/getopenordersbyinstrument
- [ ] /private/getorderhistorybycurrency
- [ ] /private/getorderhistorybyinstrument
- [ ] /private/getordermarginbyids
- [x] /private/getorderstate
- [ ] /private/getusertradesbycurrency
- [ ] /private/getusertradesbycurrencyandtime
- [ ] /private/getusertradesbyinstrument
- [ ] /private/getusertradesbyinstrumentandtime
- [ ] /private/getusertradesbyorder
- [ ] /private/getsettlementhistorybyinstrument
- [ ] /private/getsettlementhistorybycurrency
Market Data
- [x] /public/get_index
- [x] /public/get_instruments
- Wallet
- Subscriptions
- [x] announcements
- [x] book.{instrumentname}.{group}.{depth}.{interval}
- [x] book.{instrumentname}.{interval}
- [x] deribitpriceindex.{indexname}
- [x] deribitpriceranking.{indexname}
- [x] estimatedexpirationprice.{indexname}
- [x] markprice.options.{indexname}
- [x] perpetual.{instrumentname}.{interval}
- [x] quote.{instrumentname}
- [x] ticker.{instrumentname}.{interval}
- [x] trades.{instrumentname}.{interval}
- [x] user.orders.{instrumentname}.{interval}
- [x] user.orders.{kind}.{currency}.{interval}
- [x] user.portfolio.{currency}
- [x] user.trades.{instrumentname}.{interval}
- [x] user.trades.{kind}.{currency}.{interval}]
Donate

16PeVqncfWoQ94M4pxnitkYnnW8agQBBZB