zhouaini528 / bybit-php

Bybit API Like the official document interface, Support for arbitrary extension.
MIT License
24 stars 12 forks source link

Rate limit #22

Open eppenga opened 8 months ago

eppenga commented 8 months ago

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 commented 8 months ago

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 commented 8 months ago

Thank you, tested and working fine!