You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is more of a question at this point. I was trying to get the information about current position I am in and there are no any existing methods for it. There is one websocket method called "futureUser" which logs all the activities.
There is a function called "futuresAccountInfo()". It will have all the information.
It is not in the docs but there are lot of other helpful functions when you look in actual code. I found this function inside
http-client.js as this query was more http request related than websocket related.
Usage:
let res = await client.futuresAccountInfo();
console.log(res); // res.positions has all available position of every pairs. It will have lof of empty positions,
//just filter for pairs you need.
This is more of a question at this point. I was trying to get the information about current position I am in and there are no any existing methods for it. There is one websocket method called "futureUser" which logs all the activities.
But this will only fire if i open or close a position and there is some change in position. I wont be able to retrive my current position with this.
Any workaround or suggestion would be helpful.
The text was updated successfully, but these errors were encountered: