Skip to main content

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

string
required
Your Ethereum wallet address (with 0x prefix)

Example Connection

Event Types

The User Events WebSocket streams the following event types:

Order Events

Fired when a new order is placed.
string
Always "order_placed"
string
Unique identifier for the order
string
Market ticker for the order
string
Either "buy" or "sell"
string
Either "yes" or "no"
string
Number of cContracts (integer string)
string
Price per contract in µUSDC (microUSDC, 6 decimals)
Fired when an order is filled (fully or partially).
Fields are the same as order_placed.
Fired when an order is cancelled.
Fields are the same as order_placed.

Market Events

Fired when a market opens for trading.
string
Always "market_opened"
string
Market ticker that opened
Fired when a market closes for trading.
Fields are the same as market_opened.
Fired when a market is settled with a final result.
string
Always "market_settled"
string
Market ticker that settled
string
Settlement result: "yes" or "no"

Balance Events

Fired when USDC is deposited into your Bison account.
string
Always "usdc_deposited"
string
Your Ethereum address
string
Amount deposited in µUSDC (1 USDC = 1,000,000 µUSDC)
string
Your new total balance in µUSDC
Fired when USDC is withdrawn from your Bison account.
Fields are the same as usdc_deposited.

Position Events

Fired when you withdraw position tokens from the exchange to your wallet as ERC-20 tokens.
string
Always "position_minted"
string
Your Ethereum address
string
Market ticker for the position
string
Position side: "yes" or "no"
string
Number of position tokens minted (integer string)
Fired when you deposit position tokens from your wallet back to the exchange.
Fields are the same as position_minted.