Skip to content

Running multiple pairs using the same single model  #25

@developeralgo8888

Description

@developeralgo8888

Under main.py is there a way to run multiple pairs at once using the same hftmodel1

below will only run ( EURUSD , USDJPY ). if for example let's say i want to run 3 pairs

(EURUSD, USDJPY ) , (AUDUSD, USDCAD) , (GBPUSD , USDCHF )

how would i implement that in the main .py

model = HftModel1(
		host=TWS_HOST,
		port=TWS_PORT,
		client_id=2,
	)

	to_trade = [
		('EURUSD', Forex('EURUSD')),
		('USDJPY', Forex('USDJPY'))
	]

	model.run(to_trade=to_trade, trade_qty=100000)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions