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
The fields returned from the positions API should be properly matched to fields in fetchPositions.
I'm an amateur developer, but just eyeballing the code base, I wonder if the solution is relatively simple to update the undefined parameters and link them to the kraken futures api fields?
If someone can take a look at this, I would be happy to submit a change request. I'm not sure how I could build and test this locally, but again would be happy to if someone can give me some rough idea so I can research more.
Describe alternatives you've considered
No response
The text was updated successfully, but these errors were encountered:
The reason for this is that the exchange, in this case krakenfutures, returns different information through the websocket than their rest API. You can see the raw information received by the excange in the info property of the response.
I checked and unfortunately in the rest API, the exchange does not return any mark price or pnl information.
I'll close this issue for now but feel free to reach out with any other questions or isses
Preliminary Checks
Is your feature request related to a problem? Please describe
fetchPositions() does not properly return several fields which are present in the kraken futures websocket api response.
Example response from the websocket api:
Response from fetchPositions()
As you can see, a number of the fields are hardcoded to
unrealizedPnl : pnl
markPrice : mark_price
initialMargin : initial_margin
maintenanceMargin : maintenance_margin
Describe the solution you'd like
The fields returned from the positions API should be properly matched to fields in fetchPositions.
I'm an amateur developer, but just eyeballing the code base, I wonder if the solution is relatively simple to update the undefined parameters and link them to the kraken futures api fields?
e.g.
If someone can take a look at this, I would be happy to submit a change request. I'm not sure how I could build and test this locally, but again would be happy to if someone can give me some rough idea so I can research more.
Describe alternatives you've considered
No response
The text was updated successfully, but these errors were encountered: