Market Data

Public trades

Trades executed on a symbol.

WSSwss://ws.bit2me.com/v1/tradingpublic-trades

Streams every trade executed on a symbol. Any client can subscribe, without authenticating.

Subscribe

Subscribes the connection to public-trades. Send symbol with the market to subscribe to.

event*string
Valuesubscribe
symbol*string

Market to subscribe to.

Match^[A-Z0-9]+/[A-Z0-9]+$
ExampleB2M/EUR
subscription*object
Show properties
name*string
Valuepublic-trades

Update

Trades executed on a symbol.

A trade executed on a symbol.

event*string
Valuepublic-trades
symbol*string

Market symbol as BASE/QUOTE, uppercase. The list of valid symbols is GET /v2/trading/market-config.

Match^[A-Z0-9]+/[A-Z0-9]+$
ExampleB2M/EUR
data*object
Show properties
side*string

buy spends the quote currency to get the base currency; sell does the opposite.

Value inbuy | sell
price*number

Price in the quote currency.

amount*number

Amount in the base currency.

timestamp*integer

Execution time, in milliseconds since the Unix epoch.

Unsubscribe

Removes the public-trades subscription. Send the same symbol used to subscribe, if any.

Removes the public-trades subscription of the connection.

event*string
Valueunsubscribe
symbol*string

The same symbol sent to subscribe, if any.

Match^[A-Z0-9]+/[A-Z0-9]+$
ExampleB2M/EUR
subscription*object
Show properties
name*string
Valuepublic-trades
{  "event": "subscribe",  "symbol": "B2M/EUR",  "subscription": {    "name": "public-trades"  }}
{  "event": "public-trades",  "symbol": "B2M/EUR",  "data": {    "side": "buy",    "price": 0.012,    "amount": 100,    "timestamp": 1673599321725  }}
{  "event": "unsubscribe",  "symbol": "B2M/EUR",  "subscription": {    "name": "public-trades"  }}