Funding
My working capital
The user's working capital limits each time one changes.
WSS
wss://ws.bit2me.com/v1/tradingmy-working-capitalStreams the user's working capital limits every time one of them changes. Needs an authenticated connection.
Subscribe
Subscribes the connection to my-working-capital. This channel takes no symbol. Authenticate the connection first: an unauthenticated connection gets Forbidden.
event*string
Value
subscribesubscription*object
Show propertiesHide properties
name*string
Value
my-working-capitalUpdate
The user's working capital limits each time one changes.
The user's working capital limits.
event*string
Value
my-working-capitaldata*object
Show propertiesHide properties
userId?string
Format
uuidworkingCapital?object[]
Show propertiesHide properties
currency?string
Match
^[A-Z0-9]+$Example
EURtype?string
Example
depositlimit?number
used?number
remaining?number
refillThreshold?number
Unsubscribe
Removes the my-working-capital subscription.
Removes the my-working-capital subscription of the connection.
event*string
Value
unsubscribesubscription*object
Show propertiesHide properties
name*string
Value
my-working-capital{ "event": "subscribe", "subscription": { "name": "my-working-capital" }}{ "event": "my-working-capital", "data": { "userId": "7bd4cc22-7682-4e45-85b3-29386b979d75", "workingCapital": [ { "currency": "B2M", "type": "deposit", "limit": 5000, "used": 2500, "remaining": 2500, "refillThreshold": 2500 } ] }}{ "event": "unsubscribe", "subscription": { "name": "my-working-capital" }}