Skip to Content
Sugar RushData plane

Data plane

Users can query the data plane directly or subscribe to updates from the data plane:

  • GetLevel2 { trading_pair } Requests a single copy of the level 2 trading book (a list of (price, depth) tuples)

  • GetOpenOrders { signature } Retrieve all open orders for a given user

  • GetHistory { signature, cursor } Retrieve a cursor-paginated history of deposits, withdrawals, placed orders, cancellations, and filled orders relating to this user.

  • SubscribeLevel2 { trading_pair } Subscribe to regularly spaced updates about the Level2 of a specific trading pair; These updates may be batched if many events happen simultaneously, and may be silent if there is no activity on the market.

  • SubscribeHistory { signature } Subscribe to a live stream of all deposits, withdrawals, orders, cancellations, and fills for this user as they happen.

Last updated on