Subscription APIs
Less than 1 minute
Events
Note
- The following are all asynchronous APIs, you need to specify a method to respond to the returned result
- You need to initialize an PushClientinstance before using its methods to get market data feeds. Refer to Quick Start for examples.
Account Changes
| Method | Description | Callback Method | 
|---|---|---|
| subscribe_asset | Subscribe to asset change | PushClient.asset_changed | 
| unsubscribe_asset | Cancel asset change subscription | |
| subscribe_position | Subscribe to position change | PushClient.position_changed | 
| unsubscribe_position | Cancel position change subscription | |
| subscribe_order | Subscribe to order change | PushClient.order_changed | 
| unsubscribe_order | Cancel order change subscription | 
Market Data Streaming
| Method | Description | Callback Method | 
|---|---|---|
| subscribe_quote | Subscribe to market quote | PushClient.quote_changed | 
| subscribe_depth_quote | Subscribe to market depth quote | PushClient.quote_changed | 
| subscribe_tick | Subscribe to tick | PushClient.tick_changed/PushClient.full_tick_changed | 
| subscribe_option | Subscribe to options market quote | PushClient.quote_changed | 
| query_subscribed_quote | Get a list of subscribed symbols | PushClient.subscribed_symbols | 
Other Events
| Method | Callback Method | 
|---|---|
| Connected | PushClient.connect_callback | 
| Disconnected | PushClient.disconnect_callback | 
| Connection Error | PushClient.error_callback | 
