Open notdanielb opened 5 years ago
Apologies, I should have posted my code. Please find an example of selling 'BTC' below.
import robin_stocks robin_stocks.login('myuser', 'mypass') robin_stocks.orders.order_sell_crypto_by_price('BTC',100.0,priceType='mark_price')
do this:
print(robin_stocks.orders.order_sell_crypto_by_price('BTC',100.0,priceType='mark_price'))
and you can see what error it comes back with.
This seems to be an issue with ask_price vs bid_price. check out version 1.5.0 of code to see if issue is still happening.
Hello All,
When executing the buy_crypto or sell_crypto (buy quantity or price), I am getting flaws respective to each. I am buying/selling BTC.
buy crypto (quantity or price) 1) Will not execute order more often than will execute. Code will complete successfully (shows standard end python line ''Process finished with exit code 0', but will not actually place order on Robinhood. (Can confirm this by Robinhood account/order details). 2) When order executes (or fails to execute), it will not show order details (or failure to execute). Only shows end python line of 'Process finished with exit code 0'. I must run the code of 'Get Crypto Position' (or view Robinhood website) to see if it completed/executed/what have you.
sell crypto (quantity or price) 1) Same as 1 & 2 of buying crypto 2) Returns nonsensical line. Sometimes will return the line 'Pice ####'; where #### is the current price of BTC (and then followed by 'Process finished with exit code 0').
Please help me either: 1) understand what I am doing wrong, or 2) ask for more information [if necessary] to expedite the glitch fix.
Thank you... (also, great overall program; when the idea came to me, I thought I would have to code all of it myself!)