Kucoin / kucoin-futures-python-sdk

MIT License
7 stars 3 forks source link

How to view Profit/Loss for each order? #7

Closed garagesteve1155 closed 3 years ago

garagesteve1155 commented 3 years ago

I see where I can check fills and whatnot, but how can I see the actual Profit/Loss from each order?

edithkucoin commented 3 years ago

Q1:where I can check fills and whatnot try GET /api/v1/orders/{order-id} Get a single order by order id, the return parameters are as follows if the "status" field is "done", it means your order has been filled. if the "status" field is "open", it means your order has not been filled and it is still on the orderbook. To check the return parameters, please refer to: https://docs.kucoin.com/futures/#get-details-of-a-single-order

Q2:how can I see the actual Profit/Loss from each order try GET /api/v1/fills the "fee" field means trading commissions, which is your actual Profit/Loss from each order. To check the return parameters, please refer to: https://docs.kucoin.com/futures/#get-fills