I have placed an order for BUY(Long) and it has confirmed. Now i want to close that order in higher price.

I have placed an order for BUY(Long) and it has confirmed. Now I want to close that order at a higher price. What is the API for that? And How to proceed? Please give me any solution as possible.

Same API and changing BUY to SELL should do it

I am talking about USDT FUTURE API (Long/Sort). How To close Position using API?

You open a long position using BUY LONG so use SELL LONG to close the position

Okay Thanks