LogoLogo
Launch App
  • Standard
    • Thesis
    • Core Contributors
    • Sigma
    • $STND
    • Tokenomics
    • DeFi 3.0
  • Apps
    • Spot
      • For Traders
        • Market
        • Order Type
      • For Developers
        • REST API
        • Websocket Streams
          • Connect
          • Trades
          • Orders
          • Orderhistories
          • Prices
          • Orderbook
      • For Projects
        • Listing
        • Launchpad
        • Terminal
        • Market Making
    • Vaults
  • Standard L3
    • What is Standard L3?
      • How Standard L3 works
      • Modular Architecture
      • Bridge
Powered by GitBook
On this page
  • Stream orderhistories in an accounts in Standard spot exchange
  • ✅ Request
  • 📤 Response
  • 📡 Streamed Data Format
  • 📄 Field Descriptions
  • 📡 Streamed Data Format
  • 📄 Field Descriptions

Was this helpful?

  1. Apps
  2. Spot
  3. For Developers
  4. Websocket Streams

Orderhistories

Stream orderhistories in an accounts in Standard spot exchange

✅ Request

Subscription
{
  "id": 1,
  "method": "spot.orderhistories.subscribe.accounts",
  "params": {
    "addresses": ["0x0000000000000000000000000000000000000000"]
  }
}
Unsubscription
{
  "id": 1,
  "method": "spot.orders.unsubscribe.accounts",
  "params": {
    "addresses": ["0x0000000000000000000000000000000000000000"]
  }
}

📤 Response

Success
{
  "result": null,
  "id": 1
}
Error
{
  "code": 1,
  "msg": "Internal Error: {error}"
}

📡 Streamed Data Format

Order Stream
[
  "spotOrderHistory",
  true,
  78901,
  "0xBaseTokenAddress",
  "ETH",
  "0xQuoteTokenAddress",
  "USDT",
  "ETH/USDT",
  "0xPairContractAddress",
  3150.5,
  "0xAssetAddress",
  "ETH",
  2.0,
  6301.0,
  1713659000,
  "0xUserAddress",
  "0xTransactionHash"
]

📄 Field Descriptions

Index
Field
Type
Description

0

eventId

string

Unique event identifier

1

isBid

boolean

Whether the trade is a bid or ask

2

orderId

integer

Order ID of the trade

3

base

string

Base token address

4

baseSymbol

string

Symbol of base token

5

quote

string

Quote token address

6

quoteSymbol

string

Symbol of quote token

7

pairSymbol

string

Symbol of the trading pair (e.g. ETH/USDT)

8

pair

string

Contract address of the trading pair

9

price

float

Price of the trade

10

asset

string

Asset address involved in the trade

11

assetSymbol

string

Symbol of the asset

12

amount

float

Amount of the asset traded

13

placed

float

Amount placed (likely base × price)

14

timestamp

integer

Unix timestamp of the trade

15

account

string

Address of the trader or executor

16

txHash

string

Transaction hash

📡 Streamed Data Format

[
  "deleteSpotOrderHistory"      // eventId
  true,                         // isBid (true = buy order, false = sell order)
  "0xPairContractAddress",      // trading pair contract address
  "0xUserAddress",              // account that placed the order
  123456,                       // orderId
  1713657900                    // timestamp (Unix)
]

📄 Field Descriptions

Index
Field
Type
Description

0

eventId

string

Unique event identifier

1

isBid

boolean

true for bid (buy), false for ask (sell)

2

pair

string

Address of the trading pair contract

3

account

string

Address of the user whose order was removed

4

orderId

number

Unique identifier of the deleted order

5

timestamp

number

Unix timestamp of deletion event

PreviousOrdersNextPrices

Last updated 25 days ago

Was this helpful?