ccxt / ccxt

A JavaScript / TypeScript / Python / C# / PHP cryptocurrency trading API with support for more than 100 bitcoin/altcoin exchanges
https://docs.ccxt.com
MIT License
33.1k stars 7.55k forks source link

Deribit fetchBalance() returns nothing #9359

Closed c0dehunter closed 3 years ago

c0dehunter commented 3 years ago
<?php
$id = "\\ccxt\\deribit";
$exchange = new $id();
$exchange->apiKey = "xxx"; 
$exchange->secret = "yyy";
$exchange->enableRateLimit = true;

foreach($exchange->fetchBalance() as $balance)
    print_r($balance);
?>

Returns nothing, even though there is a balance on this account:

image

See the debug output:

<pre>ccxt\deribit Object
(
    [defined_rest_api] => Array
        (
            [publicGetAuth] => Array
                (
                    [0] => auth
                    [1] => public
                    [2] => GET
                    [3] => request
                )

            [public_get_auth] => Array
                (
                    [0] => auth
                    [1] => public
                    [2] => GET
                    [3] => request
                )

            [publicGetExchangeToken] => Array
                (
                    [0] => exchange_token
                    [1] => public
                    [2] => GET
                    [3] => request
                )

            [public_get_exchange_token] => Array
                (
                    [0] => exchange_token
                    [1] => public
                    [2] => GET
                    [3] => request
                )

            [publicGetForkToken] => Array
                (
                    [0] => fork_token
                    [1] => public
                    [2] => GET
                    [3] => request
                )

            [public_get_fork_token] => Array
                (
                    [0] => fork_token
                    [1] => public
                    [2] => GET
                    [3] => request
                )

            [publicGetSetHeartbeat] => Array
                (
                    [0] => set_heartbeat
                    [1] => public
                    [2] => GET
                    [3] => request
                )

            [public_get_set_heartbeat] => Array
                (
                    [0] => set_heartbeat
                    [1] => public
                    [2] => GET
                    [3] => request
                )

            [publicGetDisableHeartbeat] => Array
                (
                    [0] => disable_heartbeat
                    [1] => public
                    [2] => GET
                    [3] => request
                )

            [public_get_disable_heartbeat] => Array
                (
                    [0] => disable_heartbeat
                    [1] => public
                    [2] => GET
                    [3] => request
                )

            [publicGetGetTime] => Array
                (
                    [0] => get_time
                    [1] => public
                    [2] => GET
                    [3] => request
                )

            [public_get_get_time] => Array
                (
                    [0] => get_time
                    [1] => public
                    [2] => GET
                    [3] => request
                )

            [publicGetHello] => Array
                (
                    [0] => hello
                    [1] => public
                    [2] => GET
                    [3] => request
                )

            [public_get_hello] => Array
                (
                    [0] => hello
                    [1] => public
                    [2] => GET
                    [3] => request
                )

            [publicGetTest] => Array
                (
                    [0] => test
                    [1] => public
                    [2] => GET
                    [3] => request
                )

            [public_get_test] => Array
                (
                    [0] => test
                    [1] => public
                    [2] => GET
                    [3] => request
                )

            [publicGetSubscribe] => Array
                (
                    [0] => subscribe
                    [1] => public
                    [2] => GET
                    [3] => request
                )

            [public_get_subscribe] => Array
                (
                    [0] => subscribe
                    [1] => public
                    [2] => GET
                    [3] => request
                )

            [publicGetUnsubscribe] => Array
                (
                    [0] => unsubscribe
                    [1] => public
                    [2] => GET
                    [3] => request
                )

            [public_get_unsubscribe] => Array
                (
                    [0] => unsubscribe
                    [1] => public
                    [2] => GET
                    [3] => request
                )

            [publicGetGetAnnouncements] => Array
                (
                    [0] => get_announcements
                    [1] => public
                    [2] => GET
                    [3] => request
                )

            [public_get_get_announcements] => Array
                (
                    [0] => get_announcements
                    [1] => public
                    [2] => GET
                    [3] => request
                )

            [publicGetGetBookSummaryByCurrency] => Array
                (
                    [0] => get_book_summary_by_currency
                    [1] => public
                    [2] => GET
                    [3] => request
                )

            [public_get_get_book_summary_by_currency] => Array
                (
                    [0] => get_book_summary_by_currency
                    [1] => public
                    [2] => GET
                    [3] => request
                )

            [publicGetGetBookSummaryByInstrument] => Array
                (
                    [0] => get_book_summary_by_instrument
                    [1] => public
                    [2] => GET
                    [3] => request
                )

            [public_get_get_book_summary_by_instrument] => Array
                (
                    [0] => get_book_summary_by_instrument
                    [1] => public
                    [2] => GET
                    [3] => request
                )

            [publicGetGetContractSize] => Array
                (
                    [0] => get_contract_size
                    [1] => public
                    [2] => GET
                    [3] => request
                )

            [public_get_get_contract_size] => Array
                (
                    [0] => get_contract_size
                    [1] => public
                    [2] => GET
                    [3] => request
                )

            [publicGetGetCurrencies] => Array
                (
                    [0] => get_currencies
                    [1] => public
                    [2] => GET
                    [3] => request
                )

            [public_get_get_currencies] => Array
                (
                    [0] => get_currencies
                    [1] => public
                    [2] => GET
                    [3] => request
                )

            [publicGetGetFundingChartData] => Array
                (
                    [0] => get_funding_chart_data
                    [1] => public
                    [2] => GET
                    [3] => request
                )

            [public_get_get_funding_chart_data] => Array
                (
                    [0] => get_funding_chart_data
                    [1] => public
                    [2] => GET
                    [3] => request
                )

            [publicGetGetFundingRateHistory] => Array
                (
                    [0] => get_funding_rate_history
                    [1] => public
                    [2] => GET
                    [3] => request
                )

            [public_get_get_funding_rate_history] => Array
                (
                    [0] => get_funding_rate_history
                    [1] => public
                    [2] => GET
                    [3] => request
                )

            [publicGetGetFundingRateValue] => Array
                (
                    [0] => get_funding_rate_value
                    [1] => public
                    [2] => GET
                    [3] => request
                )

            [public_get_get_funding_rate_value] => Array
                (
                    [0] => get_funding_rate_value
                    [1] => public
                    [2] => GET
                    [3] => request
                )

            [publicGetGetHistoricalVolatility] => Array
                (
                    [0] => get_historical_volatility
                    [1] => public
                    [2] => GET
                    [3] => request
                )

            [public_get_get_historical_volatility] => Array
                (
                    [0] => get_historical_volatility
                    [1] => public
                    [2] => GET
                    [3] => request
                )

            [publicGetGetIndex] => Array
                (
                    [0] => get_index
                    [1] => public
                    [2] => GET
                    [3] => request
                )

            [public_get_get_index] => Array
                (
                    [0] => get_index
                    [1] => public
                    [2] => GET
                    [3] => request
                )

            [publicGetGetInstruments] => Array
                (
                    [0] => get_instruments
                    [1] => public
                    [2] => GET
                    [3] => request
                )

            [public_get_get_instruments] => Array
                (
                    [0] => get_instruments
                    [1] => public
                    [2] => GET
                    [3] => request
                )

            [publicGetGetLastSettlementsByCurrency] => Array
                (
                    [0] => get_last_settlements_by_currency
                    [1] => public
                    [2] => GET
                    [3] => request
                )

            [public_get_get_last_settlements_by_currency] => Array
                (
                    [0] => get_last_settlements_by_currency
                    [1] => public
                    [2] => GET
                    [3] => request
                )

            [publicGetGetLastSettlementsByInstrument] => Array
                (
                    [0] => get_last_settlements_by_instrument
                    [1] => public
                    [2] => GET
                    [3] => request
                )

            [public_get_get_last_settlements_by_instrument] => Array
                (
                    [0] => get_last_settlements_by_instrument
                    [1] => public
                    [2] => GET
                    [3] => request
                )

            [publicGetGetLastTradesByCurrency] => Array
                (
                    [0] => get_last_trades_by_currency
                    [1] => public
                    [2] => GET
                    [3] => request
                )

            [public_get_get_last_trades_by_currency] => Array
                (
                    [0] => get_last_trades_by_currency
                    [1] => public
                    [2] => GET
                    [3] => request
                )

            [publicGetGetLastTradesByCurrencyAndTime] => Array
                (
                    [0] => get_last_trades_by_currency_and_time
                    [1] => public
                    [2] => GET
                    [3] => request
                )

            [public_get_get_last_trades_by_currency_and_time] => Array
                (
                    [0] => get_last_trades_by_currency_and_time
                    [1] => public
                    [2] => GET
                    [3] => request
                )

            [publicGetGetLastTradesByInstrument] => Array
                (
                    [0] => get_last_trades_by_instrument
                    [1] => public
                    [2] => GET
                    [3] => request
                )

            [public_get_get_last_trades_by_instrument] => Array
                (
                    [0] => get_last_trades_by_instrument
                    [1] => public
                    [2] => GET
                    [3] => request
                )

            [publicGetGetLastTradesByInstrumentAndTime] => Array
                (
                    [0] => get_last_trades_by_instrument_and_time
                    [1] => public
                    [2] => GET
                    [3] => request
                )

            [public_get_get_last_trades_by_instrument_and_time] => Array
                (
                    [0] => get_last_trades_by_instrument_and_time
                    [1] => public
                    [2] => GET
                    [3] => request
                )

            [publicGetGetOrderBook] => Array
                (
                    [0] => get_order_book
                    [1] => public
                    [2] => GET
                    [3] => request
                )

            [public_get_get_order_book] => Array
                (
                    [0] => get_order_book
                    [1] => public
                    [2] => GET
                    [3] => request
                )

            [publicGetGetTradeVolumes] => Array
                (
                    [0] => get_trade_volumes
                    [1] => public
                    [2] => GET
                    [3] => request
                )

            [public_get_get_trade_volumes] => Array
                (
                    [0] => get_trade_volumes
                    [1] => public
                    [2] => GET
                    [3] => request
                )

            [publicGetGetTradingviewChartData] => Array
                (
                    [0] => get_tradingview_chart_data
                    [1] => public
                    [2] => GET
                    [3] => request
                )

            [public_get_get_tradingview_chart_data] => Array
                (
                    [0] => get_tradingview_chart_data
                    [1] => public
                    [2] => GET
                    [3] => request
                )

            [publicGetTicker] => Array
                (
                    [0] => ticker
                    [1] => public
                    [2] => GET
                    [3] => request
                )

            [public_get_ticker] => Array
                (
                    [0] => ticker
                    [1] => public
                    [2] => GET
                    [3] => request
                )

            [privateGetLogout] => Array
                (
                    [0] => logout
                    [1] => private
                    [2] => GET
                    [3] => request
                )

            [private_get_logout] => Array
                (
                    [0] => logout
                    [1] => private
                    [2] => GET
                    [3] => request
                )

            [privateGetEnableCancelOnDisconnect] => Array
                (
                    [0] => enable_cancel_on_disconnect
                    [1] => private
                    [2] => GET
                    [3] => request
                )

            [private_get_enable_cancel_on_disconnect] => Array
                (
                    [0] => enable_cancel_on_disconnect
                    [1] => private
                    [2] => GET
                    [3] => request
                )

            [privateGetDisableCancelOnDisconnect] => Array
                (
                    [0] => disable_cancel_on_disconnect
                    [1] => private
                    [2] => GET
                    [3] => request
                )

            [private_get_disable_cancel_on_disconnect] => Array
                (
                    [0] => disable_cancel_on_disconnect
                    [1] => private
                    [2] => GET
                    [3] => request
                )

            [privateGetGetCancelOnDisconnect] => Array
                (
                    [0] => get_cancel_on_disconnect
                    [1] => private
                    [2] => GET
                    [3] => request
                )

            [private_get_get_cancel_on_disconnect] => Array
                (
                    [0] => get_cancel_on_disconnect
                    [1] => private
                    [2] => GET
                    [3] => request
                )

            [privateGetSubscribe] => Array
                (
                    [0] => subscribe
                    [1] => private
                    [2] => GET
                    [3] => request
                )

            [private_get_subscribe] => Array
                (
                    [0] => subscribe
                    [1] => private
                    [2] => GET
                    [3] => request
                )

            [privateGetUnsubscribe] => Array
                (
                    [0] => unsubscribe
                    [1] => private
                    [2] => GET
                    [3] => request
                )

            [private_get_unsubscribe] => Array
                (
                    [0] => unsubscribe
                    [1] => private
                    [2] => GET
                    [3] => request
                )

            [privateGetChangeApiKeyName] => Array
                (
                    [0] => change_api_key_name
                    [1] => private
                    [2] => GET
                    [3] => request
                )

            [private_get_change_api_key_name] => Array
                (
                    [0] => change_api_key_name
                    [1] => private
                    [2] => GET
                    [3] => request
                )

            [privateGetChangeScopeInApiKey] => Array
                (
                    [0] => change_scope_in_api_key
                    [1] => private
                    [2] => GET
                    [3] => request
                )

            [private_get_change_scope_in_api_key] => Array
                (
                    [0] => change_scope_in_api_key
                    [1] => private
                    [2] => GET
                    [3] => request
                )

            [privateGetChangeSubaccountName] => Array
                (
                    [0] => change_subaccount_name
                    [1] => private
                    [2] => GET
                    [3] => request
                )

            [private_get_change_subaccount_name] => Array
                (
                    [0] => change_subaccount_name
                    [1] => private
                    [2] => GET
                    [3] => request
                )

            [privateGetCreateApiKey] => Array
                (
                    [0] => create_api_key
                    [1] => private
                    [2] => GET
                    [3] => request
                )

            [private_get_create_api_key] => Array
                (
                    [0] => create_api_key
                    [1] => private
                    [2] => GET
                    [3] => request
                )

            [privateGetCreateSubaccount] => Array
                (
                    [0] => create_subaccount
                    [1] => private
                    [2] => GET
                    [3] => request
                )

            [private_get_create_subaccount] => Array
                (
                    [0] => create_subaccount
                    [1] => private
                    [2] => GET
                    [3] => request
                )

            [privateGetDisableApiKey] => Array
                (
                    [0] => disable_api_key
                    [1] => private
                    [2] => GET
                    [3] => request
                )

            [private_get_disable_api_key] => Array
                (
                    [0] => disable_api_key
                    [1] => private
                    [2] => GET
                    [3] => request
                )

            [privateGetDisableTfaForSubaccount] => Array
                (
                    [0] => disable_tfa_for_subaccount
                    [1] => private
                    [2] => GET
                    [3] => request
                )

            [private_get_disable_tfa_for_subaccount] => Array
                (
                    [0] => disable_tfa_for_subaccount
                    [1] => private
                    [2] => GET
                    [3] => request
                )

            [privateGetEnableApiKey] => Array
                (
                    [0] => enable_api_key
                    [1] => private
                    [2] => GET
                    [3] => request
                )

            [private_get_enable_api_key] => Array
                (
                    [0] => enable_api_key
                    [1] => private
                    [2] => GET
                    [3] => request
                )

            [privateGetGetAccountSummary] => Array
                (
                    [0] => get_account_summary
                    [1] => private
                    [2] => GET
                    [3] => request
                )

            [private_get_get_account_summary] => Array
                (
                    [0] => get_account_summary
                    [1] => private
                    [2] => GET
                    [3] => request
                )

            [privateGetGetEmailLanguage] => Array
                (
                    [0] => get_email_language
                    [1] => private
                    [2] => GET
                    [3] => request
                )

            [private_get_get_email_language] => Array
                (
                    [0] => get_email_language
                    [1] => private
                    [2] => GET
                    [3] => request
                )

            [privateGetGetNewAnnouncements] => Array
                (
                    [0] => get_new_announcements
                    [1] => private
                    [2] => GET
                    [3] => request
                )

            [private_get_get_new_announcements] => Array
                (
                    [0] => get_new_announcements
                    [1] => private
                    [2] => GET
                    [3] => request
                )

            [privateGetGetPosition] => Array
                (
                    [0] => get_position
                    [1] => private
                    [2] => GET
                    [3] => request
                )

            [private_get_get_position] => Array
                (
                    [0] => get_position
                    [1] => private
                    [2] => GET
                    [3] => request
                )

            [privateGetGetPositions] => Array
                (
                    [0] => get_positions
                    [1] => private
                    [2] => GET
                    [3] => request
                )

            [private_get_get_positions] => Array
                (
                    [0] => get_positions
                    [1] => private
                    [2] => GET
                    [3] => request
                )

            [privateGetGetSubaccounts] => Array
                (
                    [0] => get_subaccounts
                    [1] => private
                    [2] => GET
                    [3] => request
                )

            [private_get_get_subaccounts] => Array
                (
                    [0] => get_subaccounts
                    [1] => private
                    [2] => GET
                    [3] => request
                )

            [privateGetListApiKeys] => Array
                (
                    [0] => list_api_keys
                    [1] => private
                    [2] => GET
                    [3] => request
                )

            [private_get_list_api_keys] => Array
                (
                    [0] => list_api_keys
                    [1] => private
                    [2] => GET
                    [3] => request
                )

            [privateGetRemoveApiKey] => Array
                (
                    [0] => remove_api_key
                    [1] => private
                    [2] => GET
                    [3] => request
                )

            [private_get_remove_api_key] => Array
                (
                    [0] => remove_api_key
                    [1] => private
                    [2] => GET
                    [3] => request
                )

            [privateGetResetApiKey] => Array
                (
                    [0] => reset_api_key
                    [1] => private
                    [2] => GET
                    [3] => request
                )

            [private_get_reset_api_key] => Array
                (
                    [0] => reset_api_key
                    [1] => private
                    [2] => GET
                    [3] => request
                )

            [privateGetSetAnnouncementAsRead] => Array
                (
                    [0] => set_announcement_as_read
                    [1] => private
                    [2] => GET
                    [3] => request
                )

            [private_get_set_announcement_as_read] => Array
                (
                    [0] => set_announcement_as_read
                    [1] => private
                    [2] => GET
                    [3] => request
                )

            [privateGetSetApiKeyAsDefault] => Array
                (
                    [0] => set_api_key_as_default
                    [1] => private
                    [2] => GET
                    [3] => request
                )

            [private_get_set_api_key_as_default] => Array
                (
                    [0] => set_api_key_as_default
                    [1] => private
                    [2] => GET
                    [3] => request
                )

            [privateGetSetEmailForSubaccount] => Array
                (
                    [0] => set_email_for_subaccount
                    [1] => private
                    [2] => GET
                    [3] => request
                )

            [private_get_set_email_for_subaccount] => Array
                (
                    [0] => set_email_for_subaccount
                    [1] => private
                    [2] => GET
                    [3] => request
                )

            [privateGetSetEmailLanguage] => Array
                (
                    [0] => set_email_language
                    [1] => private
                    [2] => GET
                    [3] => request
                )

            [private_get_set_email_language] => Array
                (
                    [0] => set_email_language
                    [1] => private
                    [2] => GET
                    [3] => request
                )

            [privateGetSetPasswordForSubaccount] => Array
                (
                    [0] => set_password_for_subaccount
                    [1] => private
                    [2] => GET
                    [3] => request
                )

            [private_get_set_password_for_subaccount] => Array
                (
                    [0] => set_password_for_subaccount
                    [1] => private
                    [2] => GET
                    [3] => request
                )

            [privateGetToggleNotificationsFromSubaccount] => Array
                (
                    [0] => toggle_notifications_from_subaccount
                    [1] => private
                    [2] => GET
                    [3] => request
                )

            [private_get_toggle_notifications_from_subaccount] => Array
                (
                    [0] => toggle_notifications_from_subaccount
                    [1] => private
                    [2] => GET
                    [3] => request
                )

            [privateGetToggleSubaccountLogin] => Array
                (
                    [0] => toggle_subaccount_login
                    [1] => private
                    [2] => GET
                    [3] => request
                )

            [private_get_toggle_subaccount_login] => Array
                (
                    [0] => toggle_subaccount_login
                    [1] => private
                    [2] => GET
                    [3] => request
                )

            [privateGetExecuteBlockTrade] => Array
                (
                    [0] => execute_block_trade
                    [1] => private
                    [2] => GET
                    [3] => request
                )

            [private_get_execute_block_trade] => Array
                (
                    [0] => execute_block_trade
                    [1] => private
                    [2] => GET
                    [3] => request
                )

            [privateGetGetBlockTrade] => Array
                (
                    [0] => get_block_trade
                    [1] => private
                    [2] => GET
                    [3] => request
                )

            [private_get_get_block_trade] => Array
                (
                    [0] => get_block_trade
                    [1] => private
                    [2] => GET
                    [3] => request
                )

            [privateGetGetLastBlockTradesByCurrency] => Array
                (
                    [0] => get_last_block_trades_by_currency
                    [1] => private
                    [2] => GET
                    [3] => request
                )

            [private_get_get_last_block_trades_by_currency] => Array
                (
                    [0] => get_last_block_trades_by_currency
                    [1] => private
                    [2] => GET
                    [3] => request
                )

            [privateGetInvalidateBlockTradeSignature] => Array
                (
                    [0] => invalidate_block_trade_signature
                    [1] => private
                    [2] => GET
                    [3] => request
                )

            [private_get_invalidate_block_trade_signature] => Array
                (
                    [0] => invalidate_block_trade_signature
                    [1] => private
                    [2] => GET
                    [3] => request
                )

            [privateGetVerifyBlockTrade] => Array
                (
                    [0] => verify_block_trade
                    [1] => private
                    [2] => GET
                    [3] => request
                )

            [private_get_verify_block_trade] => Array
                (
                    [0] => verify_block_trade
                    [1] => private
                    [2] => GET
                    [3] => request
                )

            [privateGetBuy] => Array
                (
                    [0] => buy
                    [1] => private
                    [2] => GET
                    [3] => request
                )

            [private_get_buy] => Array
                (
                    [0] => buy
                    [1] => private
                    [2] => GET
                    [3] => request
                )

            [privateGetSell] => Array
                (
                    [0] => sell
                    [1] => private
                    [2] => GET
                    [3] => request
                )

            [private_get_sell] => Array
                (
                    [0] => sell
                    [1] => private
                    [2] => GET
                    [3] => request
                )

            [privateGetEdit] => Array
                (
                    [0] => edit
                    [1] => private
                    [2] => GET
                    [3] => request
                )

            [private_get_edit] => Array
                (
                    [0] => edit
                    [1] => private
                    [2] => GET
                    [3] => request
                )

            [privateGetCancel] => Array
                (
                    [0] => cancel
                    [1] => private
                    [2] => GET
                    [3] => request
                )

            [private_get_cancel] => Array
                (
                    [0] => cancel
                    [1] => private
                    [2] => GET
                    [3] => request
                )

            [privateGetCancelAll] => Array
                (
                    [0] => cancel_all
                    [1] => private
                    [2] => GET
                    [3] => request
                )

            [private_get_cancel_all] => Array
                (
                    [0] => cancel_all
                    [1] => private
                    [2] => GET
                    [3] => request
                )

            [privateGetCancelAllByCurrency] => Array
                (
                    [0] => cancel_all_by_currency
                    [1] => private
                    [2] => GET
                    [3] => request
                )

            [private_get_cancel_all_by_currency] => Array
                (
                    [0] => cancel_all_by_currency
                    [1] => private
                    [2] => GET
                    [3] => request
                )

            [privateGetCancelAllByInstrument] => Array
                (
                    [0] => cancel_all_by_instrument
                    [1] => private
                    [2] => GET
                    [3] => request
                )

            [private_get_cancel_all_by_instrument] => Array
                (
                    [0] => cancel_all_by_instrument
                    [1] => private
                    [2] => GET
                    [3] => request
                )

            [privateGetCancelByLabel] => Array
                (
                    [0] => cancel_by_label
                    [1] => private
                    [2] => GET
                    [3] => request
                )

            [private_get_cancel_by_label] => Array
                (
                    [0] => cancel_by_label
                    [1] => private
                    [2] => GET
                    [3] => request
                )

            [privateGetClosePosition] => Array
                (
                    [0] => close_position
                    [1] => private
                    [2] => GET
                    [3] => request
                )

            [private_get_close_position] => Array
                (
                    [0] => close_position
                    [1] => private
                    [2] => GET
                    [3] => request
                )

            [privateGetGetMargins] => Array
                (
                    [0] => get_margins
                    [1] => private
                    [2] => GET
                    [3] => request
                )

            [private_get_get_margins] => Array
                (
                    [0] => get_margins
                    [1] => private
                    [2] => GET
                    [3] => request
                )

            [privateGetGetOpenOrdersByCurrency] => Array
                (
                    [0] => get_open_orders_by_currency
                    [1] => private
                    [2] => GET
                    [3] => request
                )

            [private_get_get_open_orders_by_currency] => Array
                (
                    [0] => get_open_orders_by_currency
                    [1] => private
                    [2] => GET
                    [3] => request
                )

            [privateGetGetOpenOrdersByInstrument] => Array
                (
                    [0] => get_open_orders_by_instrument
                    [1] => private
                    [2] => GET
                    [3] => request
                )

            [private_get_get_open_orders_by_instrument] => Array
                (
                    [0] => get_open_orders_by_instrument
                    [1] => private
                    [2] => GET
                    [3] => request
                )

            [privateGetGetOrderHistoryByCurrency] => Array
                (
                    [0] => get_order_history_by_currency
                    [1] => private
                    [2] => GET
                    [3] => request
                )

            [private_get_get_order_history_by_currency] => Array
                (
                    [0] => get_order_history_by_currency
                    [1] => private
                    [2] => GET
                    [3] => request
                )

            [privateGetGetOrderHistoryByInstrument] => Array
                (
                    [0] => get_order_history_by_instrument
                    [1] => private
                    [2] => GET
                    [3] => request
                )

            [private_get_get_order_history_by_instrument] => Array
                (
                    [0] => get_order_history_by_instrument
                    [1] => private
                    [2] => GET
                    [3] => request
                )

            [privateGetGetOrderMarginByIds] => Array
                (
                    [0] => get_order_margin_by_ids
                    [1] => private
                    [2] => GET
                    [3] => request
                )

            [private_get_get_order_margin_by_ids] => Array
                (
                    [0] => get_order_margin_by_ids
                    [1] => private
                    [2] => GET
                    [3] => request
                )

            [privateGetGetOrderState] => Array
                (
                    [0] => get_order_state
                    [1] => private
                    [2] => GET
                    [3] => request
                )

            [private_get_get_order_state] => Array
                (
                    [0] => get_order_state
                    [1] => private
                    [2] => GET
                    [3] => request
                )

            [privateGetGetStopOrderHistory] => Array
                (
                    [0] => get_stop_order_history
                    [1] => private
                    [2] => GET
                    [3] => request
                )

            [private_get_get_stop_order_history] => Array
                (
                    [0] => get_stop_order_history
                    [1] => private
                    [2] => GET
                    [3] => request
                )

            [privateGetGetUserTradesByCurrency] => Array
                (
                    [0] => get_user_trades_by_currency
                    [1] => private
                    [2] => GET
                    [3] => request
                )

            [private_get_get_user_trades_by_currency] => Array
                (
                    [0] => get_user_trades_by_currency
                    [1] => private
                    [2] => GET
                    [3] => request
                )

            [privateGetGetUserTradesByCurrencyAndTime] => Array
                (
                    [0] => get_user_trades_by_currency_and_time
                    [1] => private
                    [2] => GET
                    [3] => request
                )

            [private_get_get_user_trades_by_currency_and_time] => Array
                (
                    [0] => get_user_trades_by_currency_and_time
                    [1] => private
                    [2] => GET
                    [3] => request
                )

            [privateGetGetUserTradesByInstrument] => Array
                (
                    [0] => get_user_trades_by_instrument
                    [1] => private
                    [2] => GET
                    [3] => request
                )

            [private_get_get_user_trades_by_instrument] => Array
                (
                    [0] => get_user_trades_by_instrument
                    [1] => private
                    [2] => GET
                    [3] => request
                )

            [privateGetGetUserTradesByInstrumentAndTime] => Array
                (
                    [0] => get_user_trades_by_instrument_and_time
                    [1] => private
                    [2] => GET
                    [3] => request
                )

            [private_get_get_user_trades_by_instrument_and_time] => Array
                (
                    [0] => get_user_trades_by_instrument_and_time
                    [1] => private
                    [2] => GET
                    [3] => request
                )

            [privateGetGetUserTradesByOrder] => Array
                (
                    [0] => get_user_trades_by_order
                    [1] => private
                    [2] => GET
                    [3] => request
                )

            [private_get_get_user_trades_by_order] => Array
                (
                    [0] => get_user_trades_by_order
                    [1] => private
                    [2] => GET
                    [3] => request
                )

            [privateGetGetSettlementHistoryByInstrument] => Array
                (
                    [0] => get_settlement_history_by_instrument
                    [1] => private
                    [2] => GET
                    [3] => request
                )

            [private_get_get_settlement_history_by_instrument] => Array
                (
                    [0] => get_settlement_history_by_instrument
                    [1] => private
                    [2] => GET
                    [3] => request
                )

            [privateGetGetSettlementHistoryByCurrency] => Array
                (
                    [0] => get_settlement_history_by_currency
                    [1] => private
                    [2] => GET
                    [3] => request
                )

            [private_get_get_settlement_history_by_currency] => Array
                (
                    [0] => get_settlement_history_by_currency
                    [1] => private
                    [2] => GET
                    [3] => request
                )

            [privateGetCancelTransferById] => Array
                (
                    [0] => cancel_transfer_by_id
                    [1] => private
                    [2] => GET
                    [3] => request
                )

            [private_get_cancel_transfer_by_id] => Array
                (
                    [0] => cancel_transfer_by_id
                    [1] => private
                    [2] => GET
                    [3] => request
                )

            [privateGetCancelWithdrawal] => Array
                (
                    [0] => cancel_withdrawal
                    [1] => private
                    [2] => GET
                    [3] => request
                )

            [private_get_cancel_withdrawal] => Array
                (
                    [0] => cancel_withdrawal
                    [1] => private
                    [2] => GET
                    [3] => request
                )

            [privateGetCreateDepositAddress] => Array
                (
                    [0] => create_deposit_address
                    [1] => private
                    [2] => GET
                    [3] => request
                )

            [private_get_create_deposit_address] => Array
                (
                    [0] => create_deposit_address
                    [1] => private
                    [2] => GET
                    [3] => request
                )

            [privateGetGetCurrentDepositAddress] => Array
                (
                    [0] => get_current_deposit_address
                    [1] => private
                    [2] => GET
                    [3] => request
                )

            [private_get_get_current_deposit_address] => Array
                (
                    [0] => get_current_deposit_address
                    [1] => private
                    [2] => GET
                    [3] => request
                )

            [privateGetGetDeposits] => Array
                (
                    [0] => get_deposits
                    [1] => private
                    [2] => GET
                    [3] => request
                )

            [private_get_get_deposits] => Array
                (
                    [0] => get_deposits
                    [1] => private
                    [2] => GET
                    [3] => request
                )

            [privateGetGetTransfers] => Array
                (
                    [0] => get_transfers
                    [1] => private
                    [2] => GET
                    [3] => request
                )

            [private_get_get_transfers] => Array
                (
                    [0] => get_transfers
                    [1] => private
                    [2] => GET
                    [3] => request
                )

            [privateGetGetWithdrawals] => Array
                (
                    [0] => get_withdrawals
                    [1] => private
                    [2] => GET
                    [3] => request
                )

            [private_get_get_withdrawals] => Array
                (
                    [0] => get_withdrawals
                    [1] => private
                    [2] => GET
                    [3] => request
                )

            [privateGetSubmitTransferToSubaccount] => Array
                (
                    [0] => submit_transfer_to_subaccount
                    [1] => private
                    [2] => GET
                    [3] => request
                )

            [private_get_submit_transfer_to_subaccount] => Array
                (
                    [0] => submit_transfer_to_subaccount
                    [1] => private
                    [2] => GET
                    [3] => request
                )

            [privateGetSubmitTransferToUser] => Array
                (
                    [0] => submit_transfer_to_user
                    [1] => private
                    [2] => GET
                    [3] => request
                )

            [private_get_submit_transfer_to_user] => Array
                (
                    [0] => submit_transfer_to_user
                    [1] => private
                    [2] => GET
                    [3] => request
                )

            [privateGetWithdraw] => Array
                (
                    [0] => withdraw
                    [1] => private
                    [2] => GET
                    [3] => request
                )

            [private_get_withdraw] => Array
                (
                    [0] => withdraw
                    [1] => private
                    [2] => GET
                    [3] => request
                )

        )

    [curl] => 
    [curl_options] => Array
        (
        )

    [curl_reset] => 1
    [curl_close] => 
    [id] => deribit
    [rateLimit] => 500
    [tokenBucket] => Array
        (
            [delay] => 1
            [capacity] => 1
            [defaultCost] => 1
            [maxCapacity] => 1000
        )

    [curlopt_interface] => 
    [timeout] => 10000
    [proxy] => 
    [origin] => *
    [headers] => Array
        (
        )

    [hostname] => 
    [options] => Array
        (
            [code] => BTC
            [fetchBalance] => Array
                (
                    [code] => BTC
                )

        )

    [skipJsonOnStatusCodes] => 
    [quoteJsonNumbers] => 1
    [name] => Deribit
    [countries] => Array
        (
            [0] => NL
        )

    [version] => v2
    [certified] => 
    [pro] => 
    [urls] => Array
        (
            [test] => https://test.deribit.com
            [logo] => https://user-images.githubusercontent.com/1294454/41933112-9e2dd65a-798b-11e8-8440-5bab2959fcb8.jpg
            [api] => https://www.deribit.com
            [www] => https://www.deribit.com
            [doc] => Array
                (
                    [0] => https://docs.deribit.com/v2
                    [1] => https://github.com/deribit
                )

            [fees] => https://www.deribit.com/pages/information/fees
            [referral] => https://www.deribit.com/reg-1189.4038
        )

    [api] => Array
        (
            [public] => Array
                (
                    [get] => Array
                        (
                            [0] => auth
                            [1] => exchange_token
                            [2] => fork_token
                            [3] => set_heartbeat
                            [4] => disable_heartbeat
                            [5] => get_time
                            [6] => hello
                            [7] => test
                            [8] => subscribe
                            [9] => unsubscribe
                            [10] => get_announcements
                            [11] => get_book_summary_by_currency
                            [12] => get_book_summary_by_instrument
                            [13] => get_contract_size
                            [14] => get_currencies
                            [15] => get_funding_chart_data
                            [16] => get_funding_rate_history
                            [17] => get_funding_rate_value
                            [18] => get_historical_volatility
                            [19] => get_index
                            [20] => get_instruments
                            [21] => get_last_settlements_by_currency
                            [22] => get_last_settlements_by_instrument
                            [23] => get_last_trades_by_currency
                            [24] => get_last_trades_by_currency_and_time
                            [25] => get_last_trades_by_instrument
                            [26] => get_last_trades_by_instrument_and_time
                            [27] => get_order_book
                            [28] => get_trade_volumes
                            [29] => get_tradingview_chart_data
                            [30] => ticker
                        )

                )

            [private] => Array
                (
                    [get] => Array
                        (
                            [0] => logout
                            [1] => enable_cancel_on_disconnect
                            [2] => disable_cancel_on_disconnect
                            [3] => get_cancel_on_disconnect
                            [4] => subscribe
                            [5] => unsubscribe
                            [6] => change_api_key_name
                            [7] => change_scope_in_api_key
                            [8] => change_subaccount_name
                            [9] => create_api_key
                            [10] => create_subaccount
                            [11] => disable_api_key
                            [12] => disable_tfa_for_subaccount
                            [13] => enable_api_key
                            [14] => get_account_summary
                            [15] => get_email_language
                            [16] => get_new_announcements
                            [17] => get_position
                            [18] => get_positions
                            [19] => get_subaccounts
                            [20] => list_api_keys
                            [21] => remove_api_key
                            [22] => reset_api_key
                            [23] => set_announcement_as_read
                            [24] => set_api_key_as_default
                            [25] => set_email_for_subaccount
                            [26] => set_email_language
                            [27] => set_password_for_subaccount
                            [28] => toggle_notifications_from_subaccount
                            [29] => toggle_subaccount_login
                            [30] => execute_block_trade
                            [31] => get_block_trade
                            [32] => get_last_block_trades_by_currency
                            [33] => invalidate_block_trade_signature
                            [34] => verify_block_trade
                            [35] => buy
                            [36] => sell
                            [37] => edit
                            [38] => cancel
                            [39] => cancel_all
                            [40] => cancel_all_by_currency
                            [41] => cancel_all_by_instrument
                            [42] => cancel_by_label
                            [43] => close_position
                            [44] => get_margins
                            [45] => get_open_orders_by_currency
                            [46] => get_open_orders_by_instrument
                            [47] => get_order_history_by_currency
                            [48] => get_order_history_by_instrument
                            [49] => get_order_margin_by_ids
                            [50] => get_order_state
                            [51] => get_stop_order_history
                            [52] => get_user_trades_by_currency
                            [53] => get_user_trades_by_currency_and_time
                            [54] => get_user_trades_by_instrument
                            [55] => get_user_trades_by_instrument_and_time
                            [56] => get_user_trades_by_order
                            [57] => get_settlement_history_by_instrument
                            [58] => get_settlement_history_by_currency
                            [59] => cancel_transfer_by_id
                            [60] => cancel_withdrawal
                            [61] => create_deposit_address
                            [62] => get_current_deposit_address
                            [63] => get_deposits
                            [64] => get_transfers
                            [65] => get_withdrawals
                            [66] => submit_transfer_to_subaccount
                            [67] => submit_transfer_to_user
                            [68] => withdraw
                        )

                )

        )

    [comment] => 
    [markets] => 
    [symbols] => 
    [ids] => 
    [currencies] => Array
        (
        )

    [base_currencies] => 
    [quote_currencies] => 
    [balance] => Array
        (
        )

    [orderbooks] => Array
        (
        )

    [tickers] => Array
        (
        )

    [fees] => Array
        (
            [trading] => Array
                (
                )

            [funding] => Array
                (
                )

        )

    [precision] => Array
        (
        )

    [orders] => 
    [myTrades] => 
    [trades] => Array
        (
        )

    [transactions] => Array
        (
        )

    [ohlcvs] => Array
        (
        )

    [exceptions] => Array
        (
            [9999] => \ccxt\PermissionDenied
            [10000] => \ccxt\AuthenticationError
            [10001] => \ccxt\ExchangeError
            [10002] => \ccxt\InvalidOrder
            [10003] => \ccxt\InvalidOrder
            [10004] => \ccxt\OrderNotFound
            [10005] => \ccxt\InvalidOrder
            [10006] => \ccxt\InvalidOrder
            [10007] => \ccxt\InvalidOrder
            [10008] => \ccxt\InvalidOrder
            [10009] => \ccxt\InsufficientFunds
            [10010] => \ccxt\OrderNotFound
            [10011] => \ccxt\InvalidOrder
            [10012] => \ccxt\InvalidOrder
            [10013] => \ccxt\PermissionDenied
            [10014] => \ccxt\PermissionDenied
            [10015] => \ccxt\PermissionDenied
            [10016] => \ccxt\PermissionDenied
            [10017] => \ccxt\PermissionDenied
            [10018] => \ccxt\PermissionDenied
            [10019] => \ccxt\PermissionDenied
            [10020] => \ccxt\ExchangeError
            [10021] => \ccxt\InvalidOrder
            [10022] => \ccxt\InvalidOrder
            [10023] => \ccxt\InvalidOrder
            [10024] => \ccxt\InvalidOrder
            [10025] => \ccxt\InvalidOrder
            [10026] => \ccxt\InvalidOrder
            [10027] => \ccxt\InvalidOrder
            [10028] => \ccxt\DDoSProtection
            [10029] => \ccxt\OrderNotFound
            [10030] => \ccxt\ExchangeError
            [10031] => \ccxt\ExchangeError
            [10032] => \ccxt\InvalidOrder
            [10033] => \ccxt\NotSupported
            [10034] => \ccxt\InvalidOrder
            [10035] => \ccxt\InvalidOrder
            [10036] => \ccxt\InvalidOrder
            [10040] => \ccxt\ExchangeNotAvailable
            [10041] => \ccxt\OnMaintenance
            [10043] => \ccxt\InvalidOrder
            [10044] => \ccxt\InvalidOrder
            [10045] => \ccxt\InvalidOrder
            [10046] => \ccxt\InvalidOrder
            [10047] => \ccxt\DDoSProtection
            [10048] => \ccxt\ExchangeError
            [11008] => \ccxt\InvalidOrder
            [11029] => \ccxt\BadRequest
            [11030] => \ccxt\ExchangeError
            [11031] => \ccxt\ExchangeError
            [11035] => \ccxt\DDoSProtection
            [11036] => \ccxt\InvalidOrder
            [11037] => \ccxt\BadRequest
            [11038] => \ccxt\InvalidOrder
            [11039] => \ccxt\InvalidOrder
            [11041] => \ccxt\InvalidOrder
            [11042] => \ccxt\PermissionDenied
            [11043] => \ccxt\BadRequest
            [11044] => \ccxt\InvalidOrder
            [11045] => \ccxt\BadRequest
            [11046] => \ccxt\BadRequest
            [11047] => \ccxt\BadRequest
            [11048] => \ccxt\ExchangeError
            [11049] => \ccxt\BadRequest
            [11050] => \ccxt\BadRequest
            [11051] => \ccxt\OnMaintenance
            [11052] => \ccxt\ExchangeError
            [11053] => \ccxt\ExchangeError
            [11090] => \ccxt\InvalidAddress
            [11091] => \ccxt\InvalidAddress
            [11092] => \ccxt\InvalidAddress
            [11093] => \ccxt\DDoSProtection
            [11094] => \ccxt\ExchangeError
            [11095] => \ccxt\ExchangeError
            [11096] => \ccxt\ExchangeError
            [12000] => \ccxt\AuthenticationError
            [12001] => \ccxt\DDoSProtection
            [12002] => \ccxt\ExchangeError
            [12998] => \ccxt\AuthenticationError
            [12003] => \ccxt\AuthenticationError
            [12004] => \ccxt\AuthenticationError
            [12005] => \ccxt\AuthenticationError
            [12100] => \ccxt\ExchangeError
            [12999] => \ccxt\AuthenticationError
            [13000] => \ccxt\AuthenticationError
            [13001] => \ccxt\AuthenticationError
            [13002] => \ccxt\PermissionDenied
            [13003] => \ccxt\AuthenticationError
            [13004] => \ccxt\AuthenticationError
            [13005] => \ccxt\AuthenticationError
            [13006] => \ccxt\AuthenticationError
            [13007] => \ccxt\AuthenticationError
            [13008] => \ccxt\ExchangeError
            [13009] => \ccxt\AuthenticationError
            [13010] => \ccxt\BadRequest
            [13011] => \ccxt\BadRequest
            [13012] => \ccxt\PermissionDenied
            [13013] => \ccxt\BadRequest
            [13014] => \ccxt\BadRequest
            [13015] => \ccxt\BadRequest
            [13016] => \ccxt\BadRequest
            [13017] => \ccxt\ExchangeError
            [13018] => \ccxt\ExchangeError
            [13019] => \ccxt\ExchangeError
            [13020] => \ccxt\ExchangeError
            [13021] => \ccxt\PermissionDenied
            [13025] => \ccxt\ExchangeError
            [-32602] => \ccxt\BadRequest
            [-32601] => \ccxt\BadRequest
            [-32700] => \ccxt\BadRequest
            [-32000] => \ccxt\BadRequest
        )

    [accounts] => Array
        (
        )

    [status] => Array
        (
            [status] => ok
            [updated] => 
            [eta] => 
            [url] => 
        )

    [limits] => Array
        (
            [cost] => Array
                (
                    [min] => 
                    [max] => 
                )

            [price] => Array
                (
                    [min] => 
                    [max] => 
                )

            [amount] => Array
                (
                    [min] => 
                    [max] => 
                )

        )

    [httpExceptions] => Array
        (
            [422] => ExchangeError
            [418] => DDoSProtection
            [429] => RateLimitExceeded
            [404] => ExchangeNotAvailable
            [409] => ExchangeNotAvailable
            [410] => ExchangeNotAvailable
            [500] => ExchangeNotAvailable
            [501] => ExchangeNotAvailable
            [502] => ExchangeNotAvailable
            [520] => ExchangeNotAvailable
            [521] => ExchangeNotAvailable
            [522] => ExchangeNotAvailable
            [525] => ExchangeNotAvailable
            [526] => ExchangeNotAvailable
            [400] => ExchangeNotAvailable
            [403] => ExchangeNotAvailable
            [405] => ExchangeNotAvailable
            [503] => ExchangeNotAvailable
            [530] => ExchangeNotAvailable
            [408] => RequestTimeout
            [504] => RequestTimeout
            [401] => AuthenticationError
            [511] => AuthenticationError
        )

    [verbose] => 1
    [apiKey] => xxx
    [secret] => yyy
    [password] => 
    [uid] => 
    [privateKey] => 
    [walletAddress] => 
    [token] => 
    [twofa] => 
    [marketsById] => 
    [markets_by_id] => 
    [currencies_by_id] => 
    [userAgent] => 
    [userAgents] => Array
        (
            [chrome] => Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Safari/537.36
            [chrome39] => Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.71 Safari/537.36
        )

    [minFundingAddressLength] => 1
    [substituteCommonCurrencyCodes] => 1
    [reduceFees] => 1
    [timeframes] => Array
        (
            [1m] => 1
            [3m] => 3
            [5m] => 5
            [10m] => 10
            [15m] => 15
            [30m] => 30
            [1h] => 60
            [2h] => 120
            [3h] => 180
            [6h] => 360
            [12h] => 720
            [1d] => 1D
        )

    [requiredCredentials] => Array
        (
            [apiKey] => 1
            [secret] => 1
            [uid] => 
            [login] => 
            [password] => 
            [twofa] => 
            [privateKey] => 
            [walletAddress] => 
            [token] => 
        )

    [has] => Array
        (
            [loadMarkets] => 1
            [cancelAllOrders] => 1
            [cancelOrder] => 1
            [cancelOrders] => 
            [CORS] => 1
            [createDepositAddress] => 1
            [createLimitOrder] => 1
            [createMarketOrder] => 1
            [createOrder] => 1
            [deposit] => 
            [fetchBalance] => 1
            [fetchClosedOrders] => 1
            [fetchCurrencies] => 
            [fetchDepositAddress] => 1
            [fetchDeposits] => 1
            [fetchFundingFees] => 
            [fetchL2OrderBook] => 1
            [fetchLedger] => 
            [fetchMarkets] => 1
            [fetchMyTrades] => 1
            [fetchOHLCV] => 1
            [fetchOpenOrders] => 1
            [fetchOrder] => 1
            [fetchOrderTrades] => 1
            [fetchOrderBook] => 1
            [fetchOrderBooks] => 
            [fetchOrders] => 
            [fetchStatus] => 1
            [fetchTicker] => 1
            [fetchTickers] => 1
            [fetchTime] => 1
            [fetchTrades] => 1
            [fetchTradingFee] => 
            [fetchTradingFees] => 
            [fetchTradingLimits] => 
            [fetchTransactions] => 
            [fetchWithdrawals] => 1
            [privateAPI] => 1
            [publicAPI] => 1
            [signIn] => 
            [withdraw] => 1
            [editOrder] => 1
        )

    [precisionMode] => 2
    [paddingMode] => 0
    [number] => floatval
    [lastRestRequestTimestamp] => 0
    [lastRestPollTimestamp] => 0
    [restRequestQueue] => 
    [restPollerLoopIsRunning] => 
    [enableRateLimit] => 1
    [enableLastJsonResponse] => 1
    [enableLastHttpResponse] => 1
    [enableLastResponseHeaders] => 1
    [last_http_response] => 
    [last_json_response] => 
    [last_response_headers] => 
    [requiresWeb3] => 
    [requiresEddsa] => 
    [commonCurrencies] => Array
        (
            [XBT] => BTC
            [BCC] => BCH
            [DRK] => DASH
            [BCHABC] => BCH
            [BCHSV] => BSV
        )

    [urlencode_glue] => &
    [urlencode_glue_warning] => 1
)
1</pre>Array
(
[0] => Request:
[1] => GET
[2] => https://www.deribit.com/api/v2/private/get_account_summary?currency=BTC
[3] => Array
(
[Authorization] => deri-hmac-sha256
id=Qyzc3zya,ts=1623417851838,sig=851031de2d60f7fd72d565663658d410517f85403ee5b0c121b190602814dfa1,nonce=1623417851838
)

[4] =>
)
Array
(
[0] => Response:
[1] => GET
[2] => https://www.deribit.com/api/v2/private/get_account_summary?currency=BTC
[3] => 200
[4] =>
[5] => Array
(
[Server] => nginx
[Date] => Fri, 11 Jun 2021 13:24:11 GMT
[Content-Type] => application/json
[Content-Length] => 405
[Connection] => keep-alive
[content-encoding] => gzip
[Access-Control-Allow-Origin] => *
[Access-Control-Allow-Methods] => GET, POST, OPTIONS
[Access-Control-Allow-Headers] => Authorization,User-Agent,Range,X-Requested-With,Content-Type,Partner
[Cache-Control] => no-store
[Vary] => Origin,Authorization,Partner
[Strict-Transport-Security] => max-age=15768000
[X-Frame-Options] => SAMEORIGIN
)

[6] =>
{"jsonrpc":"2.0","result":{"total_pl":0.0,"session_upl":0.0,"session_rpl":0.0,"projected_maintenance_margin":0.0,"projected_initial_margin":0.0,"projected_delta_total":0.0,"portfolio_margining_enabled":false,"options_vega":0.0,"options_value":0.0,"options_theta":0.0,"options_session_upl":0.0,"options_session_rpl":0.0,"options_pl":0.0,"options_gamma":0.0,"options_delta":0.0,"margin_balance":0.0,"maintenance_margin":0.0,"limits":{"non_matching_engine":{"rate":20,"burst":100},"matching_engine":{"rate":5,"burst":20}},"initial_margin":0.0,"futures_session_upl":0.0,"futures_session_rpl":0.0,"futures_pl":0.0,"estimated_liquidation_ratio":0.0,"equity":0.0,"deposit_address":"3DSV2bBJ7rewMoAfHPosAauxUkdGS9Kego","delta_total":0.0,"currency":"BTC","balance":0.0,"available_withdrawal_funds":0.0,"available_funds":0.0},"usIn":1623417851882603,"usOut":1623417851883400,"usDiff":797,"testnet":false}
)
kroitor commented 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.

c0dehunter commented 3 years ago

Perfect, thanks @kroitor !