I’m trying to create a buy order along with stop loss and a take profit orders.
As an example say there’s token A that’s priced at $10 so I put in an order to buy 10.
I wait for the order to fill by subscribing to the order and trade websocket endpoints.
When the buy order is filled I place a stop loss order for 10 tokens at $9.90
I immediately also place a take profit order for 10 tokens at $10.10
The first order (stop loss) places fine but the take profit order is rejected due to insufficient funds.
What am I doing wrong here?