Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running multiple pairs using the same single model #25

Open
developeralgo8888 opened this issue Apr 29, 2021 · 0 comments
Open

Running multiple pairs using the same single model #25

developeralgo8888 opened this issue Apr 29, 2021 · 0 comments

Comments

@developeralgo8888
Copy link

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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant