Account Balance

Use get_account_balance to retrieve the current account balance.

Accounts

This function only works when connected to an account.

It does not work when Trade Simulation Mode is checked.

SC’s Futures Trading Service

It does work with SC’s built in trade evaluator connections and the associated accounts.

See here for more:

Selecting the account

The account balance retrieved is the account that you see in the Trade Window that is attached to the chart

Example Code

The method has 2 parameters:

  • key - the chart from which to get the account balance

  • subscribe

Use the field account_balance to get the response

from trade29.sc.bridge import SCBridge bridge = SCBridge() bridge.get_account_balance('xx', subscribe=True) while True: ret = bridge.get_response_queue().get() print(ret.account_balance)