API

Public API for accessing Orchid protocol data including markets, rates, user positions, and transactions.

Base URL

https://api.orchid.credit

Supported chains

  • megaeth

Note Addresses must be checksummed. The API is case-sensitive.


Endpoints

Interest Rate History

Query hourly supply and borrow rate history for an asset.

GET

/data/interestRateHistory

Params

  • chain

  • token contract address

Example

/data/interestRateHistory?chain=megaeth&token=0x...

Response

Rates are returned in high-precision fixed units.


User Value Change

Returns a user’s 24h balance change.

GET

Params

  • chain

  • address

Example

Response

Includes token-level and USD-level breakdowns.


User Net Worth History

Query hourly historical net worth.

GET

Params

  • chain

  • address

Example

Response


Markets

Returns the current state of all lending markets.

GET

Params

  • chain

Example

Includes collateral parameters, liquidity, caps, and rate configuration.


Market Rates

Returns current supply and borrow APR / APY for all markets.

GET

Params

  • chain

Example

Response

Isolated markets include underlying and collateral asset addresses.


User Transaction History

Returns protocol events involving a specific user.

GET

Params

  • chain

  • address

Optional

  • limit

  • skip

Example


Protocol Transactions

Query indexed protocol events.

GET

Optional params

  • chain

  • event

  • txHash

  • blockNumber

  • contractId

Example


Indexed Events

Core events indexed by the API include:

  • Supply

  • Withdraw

  • Borrow

  • Repay

  • Liquidation

  • FlashLoan

  • Rate updates

  • Collateral configuration changes

Each event returns full on-chain parameters.

Last updated