> For the complete documentation index, see [llms.txt](https://parsecfinance.gitbook.io/guide/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://parsecfinance.gitbook.io/guide/defi-elements/custom-table.md).

# Custom Table

The Custom Table is one of the most customisable and powerful elements within parsec. It can be used in the following ways:

* trade stream
* contract
* token deltas
* NFT holders
* NFT trade stream

### Trade Stream

<figure><img src="https://3269745214-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fa5iASgIFDKI5iooTNAC0%2Fuploads%2Fcvt13n4CeblTTWHarcxQ%2FScreenshot%202023-08-17%20at%2008.09.16.png?alt=media&amp;token=1df6fb8c-6631-4b16-8ed3-3e1f93eb0d0d" alt=""><figcaption></figcaption></figure>

The Trade Stream view is similar to the Trades Stream element whereby one can see trades from a given pair over time along with some key details such as the taker address, size and side.&#x20;

There are customisation options available such as:&#x20;

<figure><img src="https://3269745214-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fa5iASgIFDKI5iooTNAC0%2Fuploads%2F1YIPzbChbRzyqymHoAEn%2FScreenshot%202023-08-17%20at%2008.13.05.png?alt=media&amp;token=b70aa2a6-ee9f-4cc3-8a22-6bfc97f88c46" alt=""><figcaption><p>Changing the pair</p></figcaption></figure>

<figure><img src="https://3269745214-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fa5iASgIFDKI5iooTNAC0%2Fuploads%2FKXBK3A6P3G99zW3hStcV%2FScreenshot%202023-08-17%20at%2008.13.33.png?alt=media&amp;token=43393bdc-1a9b-44e5-9580-e2464bde9b33" alt=""><figcaption><p>Adding a minimum trade size ($) or filtering by taker address</p></figcaption></figure>

<figure><img src="https://3269745214-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fa5iASgIFDKI5iooTNAC0%2Fuploads%2F6nVxqXUUERgOQRUhs3AU%2FScreenshot%202023-08-17%20at%2008.14.14.png?alt=media&amp;token=11fa2a86-50b0-4f29-ab78-62f3ea9a987b" alt=""><figcaption><p>Adjusting the information shown in each column</p></figcaption></figure>

<figure><img src="https://3269745214-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fa5iASgIFDKI5iooTNAC0%2Fuploads%2FsZawH4zD1t20NLHZ07f4%2FScreenshot%202023-08-17%20at%2008.14.44.png?alt=media&amp;token=5afb0c27-e964-4d1c-a4ee-876b93743d1a" alt=""><figcaption><p>Changing the chart title</p></figcaption></figure>

<figure><img src="https://3269745214-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fa5iASgIFDKI5iooTNAC0%2Fuploads%2FVTwaGGa7MGmChjtyJhNn%2FScreenshot%202023-08-17%20at%2008.12.17.png?alt=media&amp;token=9edf36cf-5bd5-4181-8309-f05ab206c4d0" alt=""><figcaption><p>adding, removing or re-ordering columns</p></figcaption></figure>

### Contract

The Contract view in the Custom Table element is a powerful view which allows for viewing arbitrary event logs from any verified contract.&#x20;

For example, imagine we want to see wstETH liquidations on the crvUSD market:

1. We identify the correct contract, in this case the crvUSD wstETH Controller (0x100daa78fc509db39ef7d04de0c1abd299f4c6ce)
2. We select Contract in the Custom Table element, select the relevant chain and paste the contract address
3. We select the log and lookback period which we are interested in, in our case the Liquidate log  over the past 30 days

<figure><img src="https://3269745214-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fa5iASgIFDKI5iooTNAC0%2Fuploads%2FNSXDT2NMm1cFhtMxI0kr%2FScreenshot%202023-08-17%20at%2008.19.12.png?alt=media&amp;token=d86a9a11-1da4-4d7f-b977-2aad1476c0b7" alt=""><figcaption></figcaption></figure>

Depending on the type of contract, we have various options to filter by:

<figure><img src="https://3269745214-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fa5iASgIFDKI5iooTNAC0%2Fuploads%2FR2ghPs9bX3WmEqDBaNeT%2FScreenshot%202023-08-17%20at%2008.23.07.png?alt=media&amp;token=5978fea1-d0f6-4d3f-9202-c488e6a1fd55" alt=""><figcaption></figcaption></figure>

We are then able to add granularity in terms of what value will be shown in each column and add additional columns:

<figure><img src="https://3269745214-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fa5iASgIFDKI5iooTNAC0%2Fuploads%2FYlBKyQ9buOEZc8iXFqlX%2FScreenshot%202023-08-17%20at%2008.25.38.png?alt=media&amp;token=78f6a253-6d01-46ea-8e8b-198174735ee9" alt=""><figcaption></figcaption></figure>

<figure><img src="https://3269745214-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fa5iASgIFDKI5iooTNAC0%2Fuploads%2FD0ArM9NPrR8Yyj1CJ5s9%2FScreenshot%202023-08-17%20at%2008.26.30.png?alt=media&amp;token=fcfd0faa-00f0-4bee-83ed-0543512ccd77" alt=""><figcaption></figcaption></figure>

We can add decimals, here I enter 18 in order to see the correct amount of wstETH being liquidated:

<figure><img src="https://3269745214-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fa5iASgIFDKI5iooTNAC0%2Fuploads%2FSMTJdz5YMLC0ATQPuZBO%2FScreenshot%202023-08-17%20at%2008.29.35.png?alt=media&amp;token=50c5e0e2-84ea-4f8f-ae55-a6419220d523" alt=""><figcaption></figcaption></figure>

We can add resolved values whereby we map fields to new values to be displayed in the column or used with a transformer, here we can show ERC20 balances, ETH balances, NFT balances and contract calls. For example, in this case we might want to add an additional column with the resolved value showing the number of wstETH in the user's wallet address upon liquidation.&#x20;

<figure><img src="https://3269745214-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fa5iASgIFDKI5iooTNAC0%2Fuploads%2FmthZPJlqAw8cX0Z3WIWN%2FScreenshot%202023-08-17%20at%2008.35.04.png?alt=media&amp;token=f2c7ef6e-e537-4fc6-a56a-8b8b9ea6be35" alt=""><figcaption></figcaption></figure>

Equally, using other columns or resolved values as a source we can perform transformations in order to modify the values shown in a given column:

<figure><img src="https://3269745214-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fa5iASgIFDKI5iooTNAC0%2Fuploads%2FiOUUkejvYPV0pnuZj9Gq%2FScreenshot%202023-08-17%20at%2008.38.44.png?alt=media&amp;token=88f5da5c-cace-4cb6-a74e-cdbafb2018b2" alt=""><figcaption></figcaption></figure>

Finally, as shown above in the Trades Stream view, we can use the view tab in settings to change the chart title and equally we can add, remove or re-order columns.

In this case, the final chart looks something like this:

<figure><img src="https://3269745214-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fa5iASgIFDKI5iooTNAC0%2Fuploads%2Fi0mzWJJaONmYaAO7d6DJ%2FScreenshot%202023-08-17%20at%2008.42.35.png?alt=media&amp;token=7bcfa527-7fbb-4764-8b44-e90236b5250b" alt=""><figcaption></figcaption></figure>

The Contract view certainly has a steeper learning curve but it is a highly extensive and customisable element once mastered!

### Token Deltas

The Token Deltas view shows us the deltas (or differences) in the token balances of a set of holders for a given token over some lookback period:

<figure><img src="https://3269745214-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fa5iASgIFDKI5iooTNAC0%2Fuploads%2Fd0EBw4dzbikCUAyCDypR%2FScreenshot%202023-08-17%20at%2008.48.07.png?alt=media&amp;token=091a15f4-6324-4ea3-95dc-b43af8c3f186" alt=""><figcaption></figcaption></figure>

Similarly to the other views we are able to customise the table to show data for different tokens and over different lookback periods. Equally, we are able to customise which columns are shown and add resolved values and transformers to the values shown. On a final note, as with all Custom Table elements we can add, remove and re-order columns and change the title of the chart!

### NFT Holders

As you might expect, the NFT Holders view shows the holders and deltas in balances for a given NFT collection:

<figure><img src="https://3269745214-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fa5iASgIFDKI5iooTNAC0%2Fuploads%2FmsidphOWc11O6Ef9oPvy%2FScreenshot%202023-08-17%20at%2008.52.52.png?alt=media&amp;token=9d7bf85e-fb5b-4989-8caf-794b0b1bc281" alt=""><figcaption></figcaption></figure>

Similarly to the other views we are able to customise the table to show data for different NFT collections, which columns are shown and add resolved values and transformers to the values shown. As with all Custom Table elements we can add, remove and re-order columns and change the title of the chart!

### NFT Trade Stream

The NFT Trade Stream view is equivalent to the Trade Stream view but for NFTs. In the example below we have added custom columns and resolved them to the buyers ETH in the bidding pool, ETH in their wallet, and the sellers remaining balance of the NFT.

<figure><img src="https://3269745214-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fa5iASgIFDKI5iooTNAC0%2Fuploads%2F0Iue8pSMyaKyv2hpEs0h%2FScreen%20Shot%202023-09-06%20at%206.55.32%20pm.png?alt=media&amp;token=64258878-ff98-4e76-a6e0-05d50e28525f" alt=""><figcaption></figcaption></figure>
