lib/ig_markets/streaming/account_state.rb
def start
        start_accounts_subscription
        start_trades_subscription

        @accounts = @dealing_platform.account.all
        @positions = @dealing_platform.positions.all
        @working_orders = @dealing_platform.working_orders.all

        @trades_subscription.unsilence

        update_market_subscriptions
      end
# Starts all the relevant streaming subscriptions that are needed to keep this account state up to date using live
# streaming updates. After this account state has been started the {#process_queued_data} method must be called
# repeatedly to process the queue of streaming updates and apply them to {#accounts}, {#positions} and
# {#working_orders} as appropriate.
Starts all the relevant streaming subscriptions that are needed to keep this account state up to date using live
streaming updates. After this account state has been started the {#process_queued_data} method must be called
repeatedly to process the queue of streaming updates and apply them to {#accounts}, {#positions} and
{#working_orders} as appropriate.
Starts all the relevant streaming subscriptions that are needed to keep this account state up to date using live streaming updates . After this account state has been started the { #process_queued_data } method must be called repeatedly to process the queue of streaming updates and apply them to { #accounts } { #positions } and { #working_orders } as appropriate .
def start
        start_accounts_subscription
        start_trades_subscription
        @accounts = @dealing_platform.account.all
        @positions = @dealing_platform.positions.all
        @working_orders = @dealing_platform.working_orders.all
        @trades_subscription.unsilence
        update_market_subscriptions
      end
def start start_accounts_subscription start_trades_subscription @accounts = @dealing_platform . account . all @positions = @dealing_platform . positions . all @working_orders = @dealing_platform . working_orders . all @trades_subscription . unsilence update_market_subscriptions end
Starts all the relevant streaming subscriptions that are needed to keep this account state up to date using live
streaming updates.
Starts all the relevant streaming subscriptions that are needed to keep this account state up to date using live streaming updates .