-
Notifications
You must be signed in to change notification settings - Fork 37
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
Support more Trade properties #51
Comments
Are you referring to the realtime streaming data? If so, I believe we can think about making I.e., something along the lines of 9552a6f |
Hi @d-e-s-o, sounds like a good solution! Before I took your changes, I forked off main and ran the tests where 6 failed:
Maybe I am doing something wrong for 6 with my environment variables but 4 and 5 sound like it could be something not on my end? Are some tests expected to be run only during market trading hours? |
Interesting. All tests are expected to pass during all hours, but it is hard to actually test that and so it's possible Alpaca reports something weird and undocumented some of the time and stuff breaks. That being said, doesn't look to be the case here, I would say.
Not sure about those. They have been stable from what I recall. I ran them a few times and they worked fine. You will need to make sure that your account has activities, but judging from what assertions were hit that should be the case.
Is this an older account, created before fractional orders were a thing? You may have to reset it. They had problems in the past where despite support being enabled via the UI, some internal state was screwed up and all sorts of weird things were happening with their API.
Could be the same issue.
Sounds like a likely culprit. |
Thanks @d-e-s-o, I'll reset my account, it's definitely old. As for |
Not sure when they changed URLs, but the default is already a paper trading API: |
Okay my tests all pass after I reset my account, removed the environment variable setting to the URL specified in Alpaca's documentation and bought some stock on my paper account. Now I can have a play with your code! |
Tested your commit here using the stream realtime data example. Works like a charm! Would you like me to contribute some tests like your existing |
Thanks for testing!
That would be great! |
Good evening!
I have done something similar for the quote. Have three questions:
|
Yes, that's fine.
No need to make it public. It's just for testing at this point.
Oh okay. Nah, it's probably fine then. Will leave it configurable anyway, though. |
Completed as per #53 |
Hello!
Really liking your Rust API! Was just wondering if you might entertain the idea of supporting more properties for the Trade type? In particular I would like to the trade exchange to be supported. I am more than happy to work on an MR 😀
Looking forward to hearing from you,
Kind regards,
Cemlyn
The text was updated successfully, but these errors were encountered: