Executions
Order changes and trades of the user on a single subscription.
wss://ws.bit2me.com/v1/tradingexecutionsStreams my-orders and my-trades messages on a single subscription: a market order that opens, fills and closes arrives as my-orders (open), my-trades and my-orders (filled). Needs an authenticated connection.
Subscribe
Subscribes the connection to executions. This channel takes no symbol. Authenticate the connection first: an unauthenticated connection gets Forbidden.
subscribeShow propertiesHide properties
executionsUpdate
Order changes and trades of the user on a single subscription.
The current state of one of the user's orders, sent each time it changes.
my-ordersMarket symbol as BASE/QUOTE, uppercase. The list of valid symbols is GET /v2/trading/market-config.
^[A-Z0-9]+/[A-Z0-9]+$B2M/EURShow propertiesHide properties
uuiduuidCreation time of the order, in milliseconds since the Unix epoch.
Creation time of the order.
date-timebuy spends the quote currency to get the base currency; sell does the opposite.
buy | sellMarket symbol as BASE/QUOTE, uppercase. The list of valid symbols is GET /v2/trading/market-config.
^[A-Z0-9]+/[A-Z0-9]+$B2M/EUROrder size in the base currency.
Part of amount already executed.
amount minus filled.
open: in the order book, waiting to be filled; may be partially filled.inactive: astop-limitorder whosestopPricehas not been reached yet.filled: completely executed.cancelled: cancelled by the user, by Bit2Me or by its time-in-force.
open | inactive | filled | cancelledlimit: rests in the book atpriceor better.market: executes immediately against the book at the best available prices.stop-limit: staysinactiveuntil the market reachesstopPrice, then becomes a limit order atprice.
limit | market | stop-limitValue executed so far, in the quote currency.
GTC(good 'til cancelled), the default: rests in the book until filled or cancelled.FOK(fill or kill): executes completely and immediately, or is cancelled. Only forlimitorders.IOC(immediate or cancel): not available on Bit2Me markets.
GTC | IOC | FOKGTCWhy the order was cancelled, starting with a stable CR-<n> code.
A trade executed on one of the user's orders.
my-tradesMarket symbol as BASE/QUOTE, uppercase. The list of valid symbols is GET /v2/trading/market-config.
^[A-Z0-9]+/[A-Z0-9]+$B2M/EURShow propertiesHide properties
Trade identifier.
uuiduuidExecution time, in milliseconds since the Unix epoch.
Execution time.
date-timeMarket symbol as BASE/QUOTE, uppercase. The list of valid symbols is GET /v2/trading/market-config.
^[A-Z0-9]+/[A-Z0-9]+$B2M/EURThe user's order this trade belongs to.
uuidbuy spends the quote currency to get the base currency; sell does the opposite.
buy | sellAmount in the base currency.
Value in the quote currency.
Show propertiesHide properties
Fee charged, in currency.
^[A-Z0-9]+$EURFee rate, as a percentage.
Unsubscribe
Removes the executions subscription.
Removes the executions subscription of the connection.
unsubscribeShow propertiesHide properties
executions{ "event": "subscribe", "subscription": { "name": "executions" }}{ "event": "my-orders", "symbol": "B2M/EUR", "data": { "id": "51002851-2f76-4c10-9b4c-bcc131f27b1d", "userId": "7bd4cc22-7682-4e45-85b3-29386b979d75", "timestamp": 1666006194005, "datetime": "2022-10-17T11:29:54.005Z", "side": "buy", "symbol": "B2M/EUR", "price": 1, "stopPrice": 0, "amount": 1000, "filled": 10, "remainingAmount": 990, "status": "cancelled", "type": "limit", "cost": 0, "clientOrderId": null, "timeInForce": "GTC", "cancelationReason": "CR-1: User request" }}{ "event": "unsubscribe", "subscription": { "name": "executions" }}