Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Suggestion #1

Open
arnoob16 opened this issue Feb 7, 2022 · 2 comments
Open

Feature Suggestion #1

arnoob16 opened this issue Feb 7, 2022 · 2 comments
Labels
good first issue Good for newcomers help wanted Extra attention is needed

Comments

@arnoob16
Copy link

arnoob16 commented Feb 7, 2022

As of now, it is only showing the value of my assets and their individual market prices.
I don't know if WazirX gives this data via free API but I will suggest to add a P/L column as well. Would be better.

@abhagsain
Copy link
Owner

Hi, Actually I also wanted that but couldn't find the endpoint for it. That's why I didn't include it.
But I searched it again it's under the Trading Endpoints.
Will try to add it by this or next weekend or if somebody else could pick this up. That'd be really great.
Here's how to form the URL.

const pair              = 'maticinr'
const totalParmas       = `timestamp=${Date.now()}&symbol=${pair}&limit=10`
const URL               = `https://api.wazirx.com/uapi/v1/allOrders?${totalParams}&signature=${signature}`

@abhagsain
Copy link
Owner

abhagsain commented Feb 8, 2022

Here's an example how you can generate a signature

@abhagsain abhagsain added good first issue Good for newcomers help wanted Extra attention is needed labels Feb 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants