Skip to content

Conversation

@jackwaller
Copy link

Summary

  • adds Drift Protocol exchange (perps only)
  • implements public market data, account endpoints, and tx-based trading
  • includes ed25519 signing for tx/execute (accountId + privateKey)

Exchange Info

  • name: Drift Protocol
  • markets: swap (perp)
  • api: https://data.api.drift.trade, DLOB https://dlob.drift.trade
  • docs: https://docs.drift.trade
  • rateLimit: 250 ms

Implemented Unified Methods

  • fetchMarkets, fetchCurrencies
  • fetchTicker, fetchTickers, fetchOrderBook, fetchTrades, fetchOHLCV
  • fetchMyTrades, fetchOrder, fetchOrders, fetchOpenOrders
  • fetchBalance, fetchPositions, fetchFundingHistory
  • fetchTransactions, fetchLedger
  • createOrder, cancelOrder, cancelAllOrders
  • deposit, withdraw

Notes

  • perps only; spot markets are used to build currency metadata
  • top-of-book + L2 from DLOB endpoints
  • signing uses base58 privateKey (ed25519); requires accountId

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant