> ## Documentation Index
> Fetch the complete documentation index at: https://www.diadata.org/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Add a New Liquidity Scraper

Implement `LiquidityScraper` interface at `pkg/dia/scraper/liquidity-scrapers/ScraperInterface.go` file

```js theme={"system"}
type LiquidityScraper interface {
	Pool() chan dia.Pool
	Done() chan bool
}
```

<Steps>
  <Step>
    Add a scraper implementation, `MyLiquidityScraper.go` file to `pkg/dia/scraper/liquidity-scrapers/` folder implement the functions:

    ```js theme={"system"}
    func (scraper *MyLiquidityScraper) Pool() chan dia.Pool {}
    func (scraper *MyLiquidityScraper) Done() chan bool {}
    ```
  </Step>

  <Step>
    Add a constructor for the scraper:

    ```js theme={"system"}
    func NewMyLiquidityScraper(exchange dia.Exchange) *MyLiquidityScraper {}
    ```
  </Step>
</Steps>

## Liquidity Command

```js theme={"system"}
go mod tidy -go=1.16 && go mod tidy -go=1.17 && go install && liquidityScraper -exchange=ExchangeName
```

## Liquidity Test

```js theme={"system"}
go mod tidy -go=1.16 && go mod tidy -go=1.17 && go install && liquidityScraper -exchange=EXCHANGE_NAME
```

* PlatypusFinance: `go mod tidy -go=1.16 && go mod tidy -go=1.17 && go install && liquidityScraper -exchange=PlatypusFinance`

* Orca: `go mod tidy -go=1.16 && go mod tidy -go=1.17 && go install && SOLANA_URI_REST=https://try-rpc.mainnet.solana.blockdaemon.tech/ liquidityScraper -exchange=Orca`
