How to set sell order when using MARKET BUY

I am making a bot to fulfill my trades. But I want it to set a sell order for x2 of whatever price I bought in at and a stop loss at 0.9 of my purchase price. I am using javascript. and the MARKET BUY new trade api. Is there any way to do this? As the return data binance gives says I bought the coin for 0.0000000 which is false

Are you using any SDK?

How do you mean?

Share some sample code and mask your personal information in JS and list your questions clearly; It seems like you’re asking about two things