MCPcopy Index your code
hub / github.com/dovahcrow/bitmex-rs

github.com/dovahcrow/bitmex-rs @0.1.5

Chat with this repo
repository ↗ · DeepWiki ↗ · release 0.1.5 ↗ · + Follow
253 symbols 434 edges 70 files 37 documented · 15%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

bitmex-rs Crates.io Build Status MIT licensed

BitMEX (non-official) client for rust

Documentation

Usage

Add this to your Cargo.toml

[dependencies]
bitmex-rs = "0.1"

Examples located in the examples and tests folder.

Implementation status

If you find some features are not implemented and you just need them urgently, file an issue and I'll put that in priority. A PR is also welcome :)

  • Announcement
  • [x] GET /announcement
  • [x] GET /announcement/urgent
  • APIKey
  • [x] GET /apiKey
  • [x] POST /apiKey
  • [x] DELETE /apiKey
  • [x] POST /apiKey/enable
  • [x] POST /apiKey/disable
  • Chat
  • [x] GET /chat
  • [x] POST /chat
  • [x] GET /chat/channels
  • [x] GET /chat/connected
  • Execution
  • [x] GET /execution
  • [x] GET /execution/tradeHistory
  • Funding
  • [x] GET /funding
  • GlobalNotification
  • [x] GET /globalNotification
  • Instrument
  • [x] GET /instrument
  • [x] GET /instrument/active
  • [x] GET /instrument/activeAndIndices
  • [x] GET /instrument/activeIntervals
  • [x] GET /instrument/compositeIndex
  • [x] GET /instrument/indices
  • Insurance
  • [x] GET /insurance
  • Leaderboard
  • [x] GET /leaderboard
  • [x] GET /leaderboard/name
  • Liquidation
  • [x] GET /liquidation
  • Order
  • [x] GET /order
  • [x] PUT /order
  • [x] POST /order
  • [x] DELETE /order
  • [x] DELETE /order/all
  • [x] PUT /order/bulk
  • [x] POST /order/bulk
  • [x] POST /order/cancelAllAfter
  • [x] POST /order/closePosition
  • OrderBook
  • [x] GET /orderBook/L2
  • Position
  • [x] GET /position
  • [x] POST /position/isolate
  • [x] POST /position/leverage
  • [x] POST /position/riskLimit
  • [x] POST /position/transferMargin
  • Quote
  • [x] GET /quote
  • [x] GET /quote/bucketed
  • Schema
  • [ ] GET /schema
  • [ ] GET /schema/websocketHelp
  • Settlement
  • [x] GET /settlement
  • Stat
  • [ ] GET /stats
  • [ ] GET /stats/history
  • [ ] GET /stats/historyUSD
  • Trade
  • [x] GET /trade
  • [x] GET /trade/bucketed
  • User
  • [x] GET /user
  • [ ] PUT /user
  • [ ] GET /user/affiliateStatus
  • [ ] POST /user/cancelWithdrawal
  • [ ] GET /user/checkReferralCode
  • [x] GET /user/commission
  • [ ] POST /user/communicationToken
  • [ ] POST /user/confirmEmail
  • [ ] POST /user/confirmEnableTFA
  • [ ] POST /user/confirmWithdrawal
  • [ ] GET /user/depositAddress
  • [ ] POST /user/disableTFA
  • [ ] GET /user/executionHistory
  • [ ] POST /user/logout
  • [ ] POST /user/logoutAll
  • [ ] GET /user/margin
  • [ ] GET /user/minWithdrawalFee
  • [ ] POST /user/preferences
  • [ ] POST /user/requestEnableTFA
  • [ ] POST /user/requestWithdrawal
  • [x] GET /user/wallet
  • [x] GET /user/walletHistory
  • [x] GET /user/walletSummary
  • UserEvent
  • [ ] GET /userEvent
  • [x] Websocket

Extension points exported contracts — how you extend this code

ToUrlQuery (Interface)
(no doc) [1 implementers]
src/transport.rs

Core symbols most depended-on inside this repo

to_string
called by 52
src/model/api_key.rs
get
called by 13
src/transport.rs
signed_post
called by 13
src/transport.rs
post_order
called by 11
src/client/order.rs
signed_get
called by 8
src/transport.rs
delete_order
called by 7
src/client/order.rs
signature
called by 5
src/transport.rs
websocket
called by 4
src/client/websocket.rs

Shape

Class 94
Method 82
Function 60
Enum 16
Interface 1

Languages

Rust100%

Modules by API surface

src/model/definitions.rs36 symbols
src/transport.rs20 symbols
src/model/public.rs10 symbols
tests/order.rs9 symbols
src/model/websocket/message.rs9 symbols
src/client/order.rs9 symbols
src/model/order.rs7 symbols
src/model/chat.rs7 symbols
src/client/websocket.rs7 symbols
tests/instrument.rs6 symbols
src/model/position.rs6 symbols
src/model/api_key.rs6 symbols

For agents

$ claude mcp add bitmex-rs \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page