jaggedsoft / php-binance-api

PHP Binance API is an asynchronous PHP library for the Binance API designed to be easy to use. https://github.com/binance-exchange/php-binance-api

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fatal error: Uncaught Exception: signedRequest error: {"code":-4046,"msg":"No need to change margin type."}

designpositive opened this issue · comments

Here is my code:

$cm_leverage = $api->futuresLeverage("TRXUSDT", "5");
$cm_margintype = $api->futuresMarginType("TRXUSDT", "CROSSED");

This error stops the other codes from working. How can I solve this?

Hi @designpositive , I do not see any function called futuresLeverage in the current code. But anyway, for any call you make, you should use standard PHP try/catch if a function can result in a fatal error.