My orders
Changes of the user's orders.
wss://ws.bit2me.com/v1/tradingmy-ordersStreams the current state of one of the user's orders each time it changes, on every market or only on symbol. Needs an authenticated connection.
Subscribe
Subscribes the connection to my-orders. Send symbol to receive only that market, or leave it out to receive every market. Authenticate the connection first: an unauthenticated connection gets Forbidden.
subscribeOnly this market. Every market when not sent.
^[A-Z0-9]+/[A-Z0-9]+$B2M/EURShow propertiesHide properties
my-ordersUpdate
Changes of the user's orders.
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.
Unsubscribe
Removes the my-orders subscription. Send the same symbol used to subscribe, if any.
Removes the my-orders subscription of the connection.
unsubscribeThe same symbol sent to subscribe, if any.
^[A-Z0-9]+/[A-Z0-9]+$B2M/EURShow propertiesHide properties
my-orders{ "event": "subscribe", "subscription": { "name": "my-orders" }}{ "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": "my-orders" }}