Overview
Connect to receive real-time updates about your trading activity, including order status changes, position updates, and balance changes.To avoid ambiguity, we denote the smallest possible multiple of USDC (0.000001 USDC) as one
uusdc,
which stands for µUSDC (micro-USDC), and denote the smallest possible multiple of a contract (0.01 contract)
as one ccontract (centicontract).User-facing USDC balances are specified as fixed-point strings (e.g. "1.2625" for USDC). Contract quantities
in the API and SDK are specified as integer ccontracts strings (e.g. "1050" for 10.50 contracts at precision 2).Connection
Your Ethereum wallet address (with
0x prefix)Example Connection
Event Types
The User Events WebSocket streams the following event types:Order Events
order_placed
order_placed
Fired when a new order is placed.
Always
"order_placed"Unique identifier for the order
Market ticker for the order
Either
"buy" or "sell"Either
"yes" or "no"Number of cContracts (integer string)
Price per contract in µUSDC (microUSDC, 6 decimals)
order_filled
order_filled
Fired when an order is filled (fully or partially).Fields are the same as
order_placed.order_cancelled
order_cancelled
Fired when an order is cancelled.Fields are the same as
order_placed.Market Events
market_opened
market_opened
market_closed
market_closed
Fired when a market closes for trading.Fields are the same as
market_opened.market_settled
market_settled
Balance Events
usdc_deposited
usdc_deposited
usdc_withdrawn
usdc_withdrawn
Fired when USDC is withdrawn from your Bison account.Fields are the same as
usdc_deposited.Position Events
position_minted
position_minted
Fired when you withdraw position tokens from the exchange to your wallet as ERC-20 tokens.
Always
"position_minted"Your Ethereum address
Market ticker for the position
Position side:
"yes" or "no"Number of position tokens minted (integer string)
position_burned
position_burned
Fired when you deposit position tokens from your wallet back to the exchange.Fields are the same as
position_minted.