Closed c0dehunter closed 3 years ago
Deribit can only return the balance for one currency at a time. By default it's BTC. If you need ETH, please do this:
<?php
$id = "\\ccxt\\deribit";
$exchange = new $id();
$exchange->apiKey = "xxx";
$exchange->secret = "yyy";
$exchange->enableRateLimit = true;
$markets = $exchange->load_markets();
$balance = $exchange->fetch_balance(array('code'=>'ETH'));
print_r($balance);
Hope that helps, let us know if not.
Perfect, thanks @kroitor !
Returns nothing, even though there is a balance on this account:
See the debug output: