We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I have searched in Google and documentation page: https://alpaca.markets/docs/python-sdk/market_data.html
I couldn't find an example on how to get the latest trade with alpaca-py 0.5.3
alpaca-py 0.5.3
With alpaca-trade-api 2.3.0 is as simple as this: api.get_latest_trade("AAPL")
alpaca-trade-api 2.3.0
api.get_latest_trade("AAPL")
Thanks in advance for your response.
Regards,
The text was updated successfully, but these errors were encountered:
Ok, finally, I got it.
LT = api.get_latest_trade(symbol).p
alpaca-py 0.5.4
pre_latest_trade = StockLatestTradeRequest(symbol_or_symbols=[symbol]) pre2_latest_trade = data.get_stock_latest_trade(pre_latest_trade) LT = pre2_latest_trade[symbol].price
Sorry, something went wrong.
No branches or pull requests
Question form pre-submit checklist.
Question
I have searched in Google and documentation page:
https://alpaca.markets/docs/python-sdk/market_data.html
I couldn't find an example on how to get the latest trade with
alpaca-py 0.5.3
With
alpaca-trade-api 2.3.0
is as simple as this:api.get_latest_trade("AAPL")
Thanks in advance for your response.
Regards,
The text was updated successfully, but these errors were encountered: