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

Rate limit #22

Open
eppenga opened this issue Jan 4, 2024 · 2 comments
Open

Rate limit #22

eppenga opened this issue Jan 4, 2024 · 2 comments

Comments

@eppenga
Copy link

eppenga commented Jan 4, 2024

Your script is great and I use it quite a lot in my PHP applications!

I was wondering if it is possible to return the API Rate limits, which are documented here:
https://bybit-exchange.github.io/docs/copy-trade/rate-limit

Thank you!

@zhouaini528
Copy link
Owner

zhouaini528 commented Jan 5, 2024

Your script is great and I use it quite a lot in my PHP applications!

I was wondering if it is possible to return the API Rate limits, which are documented here: https://bybit-exchange.github.io/docs/copy-trade/rate-limit

Thank you!

you try

try {
    $account=$bybit->account();
    
    print_r($account->postSetMarginMode([
        'setMarginMode'=>'REGULAR_MARGIN',
    ]));

    print_r($account->getResponseHeaders());

}catch (\Exception $e){
    print_r($e->getMessage());
}

this is v5 api

@eppenga
Copy link
Author

eppenga commented Jan 5, 2024

Thank you, tested and working fine!

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