Streaming feed

class lime_trader.clients.account_feed_client.AccountFeedClient(websocket_app: WebSocketApp, logger: Logger)[source]

Client used to subscribe to account feeds. Should not be instantiated by end-user.

subscribe_balance(account_number: str) None[source]

Subscribe to balance changes for specific account

Parameters:

account_number – Account number

subscribe_orders(account_number: str) None[source]

Subscribe to order changes for specific account

Parameters:

account_number – Account number

subscribe_positions(account_number: str) None[source]

Subscribe to position changes for specific account

Parameters:

account_number – Account number

subscribe_trades(account_number: str) None[source]

Subscribe to trades changes for specific account

Parameters:

account_number – Account number

unsubscribe_balance(account_number: str) None[source]

Unsubscribe from balance changes for specific account

Parameters:

account_number – Account number

unsubscribe_orders(account_number: str) None[source]

Unsubscribe from order changes for specific account

Parameters:

account_number – Account number

unsubscribe_positions(account_number: str) None[source]

Unsubscribe from position changes for specific account

Parameters:

account_number – Account number

unsubscribe_trades(account_number: str) None[source]

Unsubscribe from trades changes for specific account

Parameters:

account_number – Account number