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

Hi how can i know details about a open position in order to place an opposite order to close it? Can I user GET /fapi/v1/openOrder (HMAC SHA256)?

@Sunchaser GET /fapi/v2/positionRisk