---
title: derivatives
description: This page provides instructions on how to extract crypto derivatives
data from CoinGecko API using Python. It provides detailed information on the parameters
used in the extraction code for both 'Model' and 'Chart' categories, along with
the return data format.
keywords:
- CoinGecko API
- crypto derivatives
- data extraction
- cryptocurrency
- data sorting
---
import HeadTitle from '@site/src/components/General/HeadTitle.tsx';
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
Get list of crypto derivatives from CoinGecko API [Source: CoinGecko]
Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/overview/pycoingecko_model.py#L375)]
```python
openbb.crypto.ov.derivatives(sortby: str = "Rank", ascend: bool = False)
```
---
## Parameters
| Name | Type | Description | Default | Optional |
| ---- | ---- | ----------- | ------- | -------- |
| sortby | str | Key by which to sort data | Rank | True |
| ascend | bool | Flag to sort data descending | False | True |
---
## Returns
| Type | Description |
| ---- | ----------- |
| pd.DataFrame | Rank, Market, Symbol, Price, Pct_Change_24h, Contract_Type, Basis, Spread,
Funding_Rate, Volume_24h, |
---
Shows list of crypto derivatives. [Source: CoinGecko]
Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/cryptocurrency/overview/pycoingecko_view.py#L645)]
```python
openbb.crypto.ov.derivatives_chart(sortby: str = "Rank", ascend: bool = False, limit: int = 15, export: str = "")
```
---
## Parameters
| Name | Type | Description | Default | Optional |
| ---- | ---- | ----------- | ------- | -------- |
| limit | int | Number of records to display | 15 | True |
| sortby | str | Key by which to sort data | Rank | True |
| ascend | bool | Flag to sort data descending | False | True |
| export | str | Export dataframe data to csv,json,xlsx file | | True |
---
## Returns
This function does not return anything
---