Using python API:
I’ve successfully placed a buy limit order, it has been executed so I am now long SOLANA (say).
I immediately want to place a stop_limit_order (as I now OWN the SOLANA as executed above).
However, after I get the order status as FILLED (from 1 above), 2) fails as it tells me I dont have sufficient funds to do so. However I definitely do. If I use the “refresh wallet” button in the GUI, the SOLANA are immediately available, however I obviously cannot use that from the API.
Is there a means to programmatically “refresh wallet” or the equivalent, such that once I OWN the SOLANA in 1) above, I can proceed to 2) (sell the same SOLANA) without any issues. Seems like an API call is needed to do the refresh but I can’t find it.