No iterator for contract_details #165
BigKahunaCanuck
started this conversation in
General
Replies: 1 comment
-
You can use contract_details.contract.primary_exchange After you've done this once you can set the primary exchange when requesting contracts details to only receive data for that exchange. let mut contract = Contract::stock("AAPL"); // this defaults exchange to SMART
contract.exchange = "NYSE";
client.contract_details(&contract); |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I would like to get the primary exchange for a stock symbol. This would allow me to cut down on the amount of data retrieved (only one exchange versus all available exchanges) for market data requests.
Beta Was this translation helpful? Give feedback.
All reactions