Subscription APIs

Less than 1 minute

Events

Note

  1. The following are all asynchronous APIs, you need to specify a method to respond to the returned result
  2. You need to initialize an PushClientopen in new window instance before using its methods to get market data feeds. Refer to Quick Start for examples.

Account Changes

MethodDescriptionCallback Method
subscribe_assetSubscribe to asset changePushClient.asset_changed
unsubscribe_assetCancel asset change subscription
subscribe_positionSubscribe to position changePushClient.position_changed
unsubscribe_positionCancel position change subscription
subscribe_orderSubscribe to order changePushClient.order_changed
unsubscribe_orderCancel order change subscription

Market Data Streaming

MethodDescriptionCallback Method
subscribe_quoteSubscribe to market quotePushClient.quote_changed
subscribe_depth_quoteSubscribe to market depth quotePushClient.quote_changed
subscribe_tickSubscribe to tickPushClient.tick_changed/PushClient.full_tick_changed
subscribe_optionSubscribe to options market quotePushClient.quote_changed
query_subscribed_quoteGet a list of subscribed symbolsPushClient.subscribed_symbols

Other Events

MethodCallback Method
ConnectedPushClient.connect_callback
DisconnectedPushClient.disconnect_callback
Connection ErrorPushClient.error_callback
Last update: