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

How to Access Values in the Order Object #132

Closed
GnosisGo opened this issue Dec 30, 2019 · 1 comment
Closed

How to Access Values in the Order Object #132

GnosisGo opened this issue Dec 30, 2019 · 1 comment

Comments

@GnosisGo
Copy link

Hi,

This is regarding the order object that is returned upon submitting an order.

I am using python to submit orders and track them but can't seem to access the order values. The order object looks like a dictionary but its type is alpaca_trade_api.entity.Order.

I looked for any related info on the website but couldn't find it.

Can anyone please point me to an example or reply with a code snippet to show how do you normally access an order's values.

Thanks

@GnosisGo
Copy link
Author

Got the answer by playing with the object:

result.client_order_id

@ttt733 ttt733 closed this as completed Jan 29, 2020
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

2 participants