mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-11-02 23:41:27 +00:00
* fix(docs): added margin between sections * feat: removed unused files; updated ga * fix: juan stuff doesnt work * fix: random fix * moon at noon * fix: update docusaurus config * Update controller_doc_classes.py * fix: temp fix * fix: temp fix * Update controller_doc_classes.py * fix: remove old content * fix: taggfix * init * fix: styling and moved file * Update generate_terminal_markdown.py * fix: removed unused images * fix: port new files * Update generate_sdk_markdown.py * Update controller_doc_classes.py Co-authored-by: teh_coderer <me@tehcoderer.com>
2.1 KiB
Vendored
2.1 KiB
Vendored
title, description
| title | description |
|---|---|
| pairs | OpenBB SDK Function |
import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem';
pairs
Get lastly added trade-able pairs on Uniswap with parameters like:
Source Code: [link]
openbb.crypto.defi.pairs(last_days: int = 14, min_volume: int = 100, min_liquidity: int = 0, min_tx: int = 100)
Parameters
| Name | Type | Description | Default | Optional |
|---|---|---|---|---|
| last_days | int | How many days back to look for added pairs. | 14 | True |
| min_volume | int | Minimum volume | 100 | True |
| min_liquidity | int | Minimum liquidity | 0 | True |
| min_tx | int | Minimum number of transactions done in given pool. | 100 | True |
Returns
| Type | Description |
|---|---|
| pd.DataFrame | Lastly added pairs on Uniswap DEX. |
Prints table showing Lastly added pairs on Uniswap DEX.
Source Code: [link]
openbb.crypto.defi.pairs_chart(limit: int = 20, days: int = 7, min_volume: int = 20, min_liquidity: int = 0, min_tx: int = 100, sortby: str = "created", ascend: bool = False, export: str = "")
Parameters
| Name | Type | Description | Default | Optional |
|---|---|---|---|---|
| limit | int | Number of records to display | 20 | True |
| days | int | Number of days the pair has been active, | 7 | True |
| min_volume | int | Minimum trading volume, | 20 | True |
| min_liquidity | int | Minimum liquidity | 0 | True |
| min_tx | int | Minimum number of transactions | 100 | True |
| sortby | str | Key by which to sort data | created | 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