Back to Ccxt

Derive

wiki/exchanges-implicit/derive.md

4.5.739.3 KB
Original Source

Every endpoint in derive's api definition is exposed as an implicit method — a thin, generated wrapper around the raw exchange endpoint. Use these for exchange-specific functionality the CCXT API does not cover.

These methods are available in every CCXT language — TypeScript, JavaScript, Python, PHP, C#, Go and Java. Call them by the camelCase name shown in the tables below (e.g. publicGetGetAllCurrencies); the snake_case alias (public_get_get_all_currencies) also works in JavaScript, Python and PHP, and Go uses the PascalCase form (PublicGetGetAllCurrencies). Switch tabs for the call in each language:

<!-- tabs:start -->

JavaScript

javascript
const derive = new ccxt.derive ();
const response = await derive.publicGetGetAllCurrencies (params);

TypeScript

typescript
import ccxt from 'ccxt';
const derive = new ccxt.derive ();
const response = await derive.publicGetGetAllCurrencies (params);

Python

python
import ccxt
derive = ccxt.derive()
response = derive.public_get_get_all_currencies(params)

PHP

php
$derive = new \ccxt\derive();
$response = $derive->public_get_get_all_currencies($params);

C#

csharp
using ccxt;
var derive = new Derive();
var response = await derive.publicGetGetAllCurrencies(parameters);

Go

go
derive := ccxt.NewDerive(nil)
response := <-derive.PublicGetGetAllCurrencies(params)
<!-- tabs:end -->

Path parameters wrapped in {} (e.g. {pair}) are substituted from params; everything else in params is sent as the query string or request body. Cost is the rate-limiter weight of each call.

📚 Official derive API documentation: docs.derive.xyz

113 implicit endpoints across 2 access groups.

public

Base URL: https://api.lyra.finance/public

MethodHTTPEndpointCost
publicGetGetAllCurrenciesGETget_all_currencies1
publicPostBuildRegisterSessionKeyTxPOSTbuild_register_session_key_tx1
publicPostRegisterSessionKeyPOSTregister_session_key1
publicPostDeregisterSessionKeyPOSTderegister_session_key1
publicPostLoginPOSTlogin1
publicPostStatisticsPOSTstatistics1
publicPostGetAllCurrenciesPOSTget_all_currencies1
publicPostGetCurrencyPOSTget_currency1
publicPostGetInstrumentPOSTget_instrument1
publicPostGetAllInstrumentsPOSTget_all_instruments1
publicPostGetInstrumentsPOSTget_instruments1
publicPostGetTickerPOSTget_ticker1
publicPostGetLatestSignedFeedsPOSTget_latest_signed_feeds1
publicPostGetOptionSettlementPricesPOSTget_option_settlement_prices1
publicPostGetSpotFeedHistoryPOSTget_spot_feed_history1
publicPostGetSpotFeedHistoryCandlesPOSTget_spot_feed_history_candles1
publicPostGetFundingRateHistoryPOSTget_funding_rate_history1
publicPostGetTradeHistoryPOSTget_trade_history1
publicPostGetOptionSettlementHistoryPOSTget_option_settlement_history1
publicPostGetLiquidationHistoryPOSTget_liquidation_history1
publicPostGetInterestRateHistoryPOSTget_interest_rate_history1
publicPostGetTransactionPOSTget_transaction1
publicPostGetMarginPOSTget_margin1
publicPostMarginWatchPOSTmargin_watch1
publicPostValidateInviteCodePOSTvalidate_invite_code1
publicPostGetPointsPOSTget_points1
publicPostGetAllPointsPOSTget_all_points1
publicPostGetPointsLeaderboardPOSTget_points_leaderboard1
publicPostGetDescendantTreePOSTget_descendant_tree1
publicPostGetTreeRootsPOSTget_tree_roots1
publicPostGetSwellPercentPointsPOSTget_swell_percent_points1
publicPostGetVaultAssetsPOSTget_vault_assets1
publicPostGetEtherfiEffectiveBalancesPOSTget_etherfi_effective_balances1
publicPostGetKelpEffectiveBalancesPOSTget_kelp_effective_balances1
publicPostGetBridgeBalancesPOSTget_bridge_balances1
publicPostGetEthenaParticipantsPOSTget_ethena_participants1
publicPostGetVaultSharePOSTget_vault_share1
publicPostGetVaultStatisticsPOSTget_vault_statistics1
publicPostGetVaultBalancesPOSTget_vault_balances1
publicPostEstimateIntegratorPointsPOSTestimate_integrator_points1
publicPostCreateSubaccountDebugPOSTcreate_subaccount_debug1
publicPostDepositDebugPOSTdeposit_debug1
publicPostWithdrawDebugPOSTwithdraw_debug1
publicPostSendQuoteDebugPOSTsend_quote_debug1
publicPostExecuteQuoteDebugPOSTexecute_quote_debug1
publicPostGetInviteCodePOSTget_invite_code1
publicPostRegisterInvitePOSTregister_invite1
publicPostGetTimePOSTget_time1
publicPostGetLiveIncidentsPOSTget_live_incidents1
publicPostGetMakerProgramsPOSTget_maker_programs1
publicPostGetMakerProgramScoresPOSTget_maker_program_scores1

private

Base URL: https://api.lyra.finance/private

MethodHTTPEndpointCost
privatePostGetAccountPOSTget_account1
privatePostCreateSubaccountPOSTcreate_subaccount1
privatePostGetSubaccountPOSTget_subaccount1
privatePostGetSubaccountsPOSTget_subaccounts1
privatePostGetAllPortfoliosPOSTget_all_portfolios1
privatePostChangeSubaccountLabelPOSTchange_subaccount_label1
privatePostGetNotificationsvPOSTget_notificationsv1
privatePostUpdateNotificationsPOSTupdate_notifications1
privatePostDepositPOSTdeposit1
privatePostWithdrawPOSTwithdraw1
privatePostTransferErc20POSTtransfer_erc201
privatePostTransferPositionPOSTtransfer_position1
privatePostTransferPositionsPOSTtransfer_positions1
privatePostOrderPOSTorder1
privatePostReplacePOSTreplace1
privatePostOrderDebugPOSTorder_debug1
privatePostGetOrderPOSTget_order1
privatePostGetOrdersPOSTget_orders1
privatePostGetOpenOrdersPOSTget_open_orders1
privatePostCancelPOSTcancel1
privatePostCancelByLabelPOSTcancel_by_label1
privatePostCancelByNoncePOSTcancel_by_nonce1
privatePostCancelByInstrumentPOSTcancel_by_instrument1
privatePostCancelAllPOSTcancel_all1
privatePostCancelTriggerOrderPOSTcancel_trigger_order1
privatePostGetOrderHistoryPOSTget_order_history1
privatePostGetTradeHistoryPOSTget_trade_history1
privatePostGetDepositHistoryPOSTget_deposit_history1
privatePostGetWithdrawalHistoryPOSTget_withdrawal_history1
privatePostSendRfqPOSTsend_rfq1
privatePostCancelRfqPOSTcancel_rfq1
privatePostCancelBatchRfqsPOSTcancel_batch_rfqs1
privatePostGetRfqsPOSTget_rfqs1
privatePostPollRfqsPOSTpoll_rfqs1
privatePostSendQuotePOSTsend_quote1
privatePostCancelQuotePOSTcancel_quote1
privatePostCancelBatchQuotesPOSTcancel_batch_quotes1
privatePostGetQuotesPOSTget_quotes1
privatePostPollQuotesPOSTpoll_quotes1
privatePostExecuteQuotePOSTexecute_quote1
privatePostRfqGetBestQuotePOSTrfq_get_best_quote1
privatePostGetMarginPOSTget_margin1
privatePostGetCollateralsPOSTget_collaterals1
privatePostGetPositionsPOSTget_positions1
privatePostGetOptionSettlementHistoryPOSTget_option_settlement_history1
privatePostGetSubaccountValueHistoryPOSTget_subaccount_value_history1
privatePostExpiredAndCancelledHistoryPOSTexpired_and_cancelled_history1
privatePostGetFundingHistoryPOSTget_funding_history1
privatePostGetInterestHistoryPOSTget_interest_history1
privatePostGetErc20TransferHistoryPOSTget_erc20_transfer_history1
privatePostGetLiquidationHistoryPOSTget_liquidation_history1
privatePostLiquidatePOSTliquidate1
privatePostGetLiquidatorHistoryPOSTget_liquidator_history1
privatePostSessionKeysPOSTsession_keys1
privatePostEditSessionKeyPOSTedit_session_key1
privatePostRegisterScopedSessionKeyPOSTregister_scoped_session_key1
privatePostGetMmpConfigPOSTget_mmp_config1
privatePostSetMmpConfigPOSTset_mmp_config1
privatePostResetMmpPOSTreset_mmp1
privatePostSetCancelOnDisconnectPOSTset_cancel_on_disconnect1
privatePostGetInviteCodePOSTget_invite_code1
privatePostRegisterInvitePOSTregister_invite1