It looks like the get_crypto()
function is not available in the stocks
module of the Robinhood API. Instead, you can use the crypto
module to interact with cryptocurrency data.
Here is an example of how to use the crypto
module to get information about cryptocurrency:
import robin_stocks as rs
# log in to Robinhood
rs.login()
# get information about Ethereum
eth_info = rs.crypto.get_crypto_info('ETH')
# get the current market price of Ethereum
eth_price = rs.crypto.get_crypto('ETH')['last_trade_price']
# log out of Robinhood
rs.logout()
You can also use other functions in the crypto
module, such as get_crypto_currency_pairs()
to get a list of cryptocurrency trading pairs available on Robinhood.
Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss
Asked: 2022-02-11 11:00:00 +0000
Seen: 11 times
Last updated: May 02 '21
What is the process of using the Multmerge() function in r to combine files in a directory?
Is it possible for two distinct useState functions to trigger changes simultaneously?
How can one use node to change an ogg file into an mp3 file?
How can a function pointer be transferred between different files in CUDA?
What does the error message "TypeError: e.endsWith is not a function" mean in Redoc?
What is the expected outcome of the math.floor function in terms of the return value?