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

Add funding rates params #79

Closed
julienkermarec opened this issue May 27, 2022 · 1 comment
Closed

Add funding rates params #79

julienkermarec opened this issue May 27, 2022 · 1 comment

Comments

@julienkermarec
Copy link

To have funding rates history of an unique coin, i want to add the future param :

    getFundingRates(futureName) {
        console.log('getFundingRates', futureName);
        if (futureName === null) {
            return this.requestWrapper.get('funding_rates');
        } else {
            return this.requestWrapper.get(`funding_rates?future=${futureName}`);
        }
    }
tiagosiebler added a commit that referenced this issue May 27, 2022
v1.1.10: feat(#79) add funding rate params
@tiagosiebler
Copy link
Owner

tiagosiebler commented May 27, 2022

Thanks for pointing out the missing params! Fixed in v1.1.10, should be available shortly one the build passes.

getFundingRates(params?: {
    future?: string;
    start_time?: number;
    end_time?: number;
  })

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants