Files
OpenBB/website/content/terminal/reference/crypto/defi/swaps.md
teh_coderer 79046608b6 Docs Fix (#3543)
* Update generate_terminal_markdown.py

* updates

* update workflows

* Automated Change

* tests

* tests

* Automated Change

* Update test_generate_docs.py

* Automated Change

* updates

* Automated Change

* Update gen-docs.yml

* Update test.yml

* Automated Change

* Update test.yml

* Automated Change

* Update generate_sdk_markdown.py

* Automated Change

* test

* Automated Change

* testtt23

* Automated Change

* Update generate_sdk_markdown.py

* Automated Change

* Automated Change

* added empting reference folders before autogen docs

* updates

* Automated Change

* update tests gitactions

* Automated Change

* up

* Automated Change

* Automated Change

* update pytest

* Automated Change

* tests

* Automated Change

* examples update

* Automated Change

* Update generate_sdk_markdown.py

* Automated Change

* Update test.yml

* Update generate_sdk_markdown.py

* strip

* Automated Change

* Workflow : check test update

* Automated Change

* Automated Change

* Automated Change

* Update test.yml

* Automated Change

* Update test.yml

* Automated Change

* Automated Change

* up

* Automated Change

* Update generate_sdk_markdown.py

* Automated Change

* update workflows

* fix guides

* testing

* Update gh-pages.yml

* Update gh-pages.yml

Co-authored-by: tehcoderer <tehcoderer@users.noreply.github.com>
Co-authored-by: Jeroen Bouma <jer.bouma@gmail.com>
Co-authored-by: Chavithra PARANA <chavithra@gmail.com>
Co-authored-by: Chavithra <Chavithra@users.noreply.github.com>
Co-authored-by: jose-donato <43375532+jose-donato@users.noreply.github.com>
Co-authored-by: jose-donato <jose-donato@users.noreply.github.com>
2022-11-25 17:19:08 -05:00

59 lines
4.6 KiB
Markdown
Vendored

---
title: swaps
description: OpenBB Terminal Function
---
# swaps
Display last swaps done on Uniswap DEX. [Source: https://thegraph.com/en/]
### Usage
```python
pairs [-l LIMIT] [-s {Datetime,USD,From,To}] [-r]
```
---
## Parameters
| Name | Description | Default | Optional | Choices |
| ---- | ----------- | ------- | -------- | ------- |
| limit | Number of records to display | 10 | True | None |
| sortby | Sort by given column. Default: timestamp | Datetime | True | Datetime, USD, From, To |
| reverse | Data is sorted in descending order by default. Reverse flag will sort it in an ascending way. Only works when raw data is displayed. | False | True | None |
---
## Examples
```python
2022 Feb 15, 06:34 (🦋) /crypto/defi/ $ swaps
Last Uniswap Swaps
┌─────────────────────────────────────┬─────────┬────────┬─────────────────────┐
│ timestamp │ token0 │ token1 │ amountUSD │
├─────────────────────────────────────┼─────────┼────────┼─────────────────────┤
│ 989.8036910116636250215132843852658 │ SAITAMA │ WETH │ 2022-02-15 12:34:21 │
├─────────────────────────────────────┼─────────┼────────┼─────────────────────┤
│ 96.90289143394234014296291034812848 │ WETH │ RBIS │ 2022-02-15 12:34:16 │
├─────────────────────────────────────┼─────────┼────────┼─────────────────────┤
│ 96.13166689256472937997500656514648 │ CRO │ WETH │ 2022-02-15 12:34:16 │
├─────────────────────────────────────┼─────────┼────────┼─────────────────────┤
│ 5870.220427980296531839870124291824 │ BASD │ WETH │ 2022-02-15 12:34:16 │
├─────────────────────────────────────┼─────────┼────────┼─────────────────────┤
│ 58.91252385247121053891350741753916 │ WETH │ RIOT │ 2022-02-15 12:34:21 │
├─────────────────────────────────────┼─────────┼────────┼─────────────────────┤
│ 3429.451646829620606429002872853048 │ STRONG │ WETH │ 2022-02-15 12:34:16 │
├─────────────────────────────────────┼─────────┼────────┼─────────────────────┤
│ 197.7374918341423326217509222074952 │ HEX │ WETH │ 2022-02-15 12:34:16 │
├─────────────────────────────────────┼─────────┼────────┼─────────────────────┤
│ 19.09615292253938809540600951822232 │ SAITAMA │ WETH │ 2022-02-15 12:34:21 │
├─────────────────────────────────────┼─────────┼────────┼─────────────────────┤
│ 1550.329575065031856287197563619452 │ WETH │ NFT │ 2022-02-15 12:34:16 │
├─────────────────────────────────────┼─────────┼────────┼─────────────────────┤
│ 13146.79479655147014131543533949295 │ WETH │ MIND │ 2022-02-15 12:34:16 │
└─────────────────────────────────────┴─────────┴────────┴─────────────────────┘
```
---