Skip to content

Commit

Permalink
chore: add rate history endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
jackwaller committed Feb 11, 2025
1 parent 7f9da1c commit 327fc48
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions source/includes/_data_api.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,4 +124,15 @@ Returns the tokenomics information about the Drift token.

Example: [https://data.api.drift.trade/DRIFT?q=circulating-supply](https://data.api.drift.trade/DRIFT?q=circulating-supply)

## `GET /rateHistory`

Returns the tokenomics information about the Drift token.

| Parameter | Description | Optional | Values |
| ---------------- | ------------------------------------------------ | -------- | --------------------------------------------------- |
| marketIndex | The market index of the market to get | NO | |
| type | The metric returned. Default: `deposit` | YES | `deposit`,`borrow`,`deposit_balance`,`borrow_balance` |

Example: [https://data.api.drift.trade/rateHistory?marketIndex=0](https://data.api.drift.trade/rateHistory?marketIndex=0)


0 comments on commit 327fc48

Please sign in to comment.