Requesting Farm Data
The Farm List is a list of objects that contain relevant data regarding all farms that exist in the TokensFarm ecosystem
API Calls for all Farms
Get all farms list
GET
https://api.tokensfarm.com/farm/list
Path Parameters
Name | Type | Description |
---|---|---|
active | boolean | get only active/ended farms |
sort | String | sort=apy -order by apy sort=newest - order by date sort=days_left - order by days left |
page | Integer | get data by page number |
farm_type | String | farm_type=LP,STAKING will return all the lp and staking farms |
token | String | the symbol of the specific token for example: token=PORTX |
page_size | Integer | the amount of farm objects in a page |
full | boolean | if "true" will return a larger farm object with more data |
view | String | example: tile |
chain | String | the chain we want to look for farms at. input options: ethereum/binance/polygon |
Get active farms list
GET
https://api.tokensfarm.com/farm/list?active=true
Path Parameters
Name | Type | Description |
---|---|---|
active | boolean | get only active/ended farms |
sort | String | sort=apy -order by apy sort=newest - order by date sort=days_left - order by days left |
page | Integer | get data by page number |
farm_type | String | farm_type=LP,STAKING will return all the lp and staking farms |
token | String | the symbol of the specific token for example: token=PORTX |
page_size | Integer | the amount of farm objects in a page |
full | boolean | if "true" will return a larger farm object with more data |
view | String | example: tile |
chain | String | the chain we want to look for farms at. input options: ethereum/binance/polygon |
Other Useful Examples
Active LP Farms (Only)
GET
https://api.tokensfarm.com/farm/list?active=true&farm_type=LP
Filtered farms by: farm status = active ,farm type = LP
For only staking farms just use: farm_type=STAKING
Path Parameters
Name | Type | Description |
---|---|---|
active | boolean | get only active/ended farms |
sort | String | sort=apy -order by apy sort=newest - order by date sort=days_left - order by days left |
page | Integer | get data by page number |
farm_type | String | farm_type=LP,STAKING will return all the lp and staking farms |
token | String | the symbol of the specific token for example: token=PORTX |
page_size | Integer | the amount of farm objects in a page |
full | boolean | if "true" will return a larger farm object with more data |
view | String | example: tile |
chain | String | the chain we want to look for farms at. input options: ethereum/binance/polygon |
Get active LP and Staking Farms that are deployed on the Binance Chain
GET
https://api.tokensfarm.com/farm/list?active=true&farm_type=LP,STAKING&chain=binance
Filtered farms by: farm status = active, farm type = LP or STAKING, deployed chain = BNB chain
Path Parameters
Name | Type | Description |
---|---|---|
active | boolean | get only active/ended farms |
sort | String | sort=apy -order by apy sort=newest - order by date sort=days_left - order by days left |
page | Integer | get data by page number |
farm_type | String | farm_type=LP,STAKING will return all the lp and staking farms |
token | String | the symbol of the specific token for example: token=PORTX |
page_size | Integer | the amount of farm objects in a page |
full | boolean | if "true" will return a larger farm object with more data |
view | String | example: tile |
chain | String | the chain we want to look for farms at. the chain we want to look for farms at. input options: ethereum/binance/polygon |
Get farms whose reward tokens are DCD
GET
https://api.tokensfarm.com/farm/list?token=DCD
Filtered farms by the reward token address
Path Parameters
Name | Type | Description |
---|---|---|
active | boolean | get only active/ended farms |
sort | String | sort=apy -order by apy sort=newest - order by date sort=days_left - order by days left |
page | Integer | get data by page number |
farm_type | String | farm_type=LP,STAKING will return all the lp and staking farms |
token | String | the symbol of the specific token for example: token=PORTX |
page_size | Integer | the amount of farm objects in a page |
full | boolean | if "true" will return a larger farm object with more data |
view | String | example: tile |
chain | String | the chain we want to look for farms at. input options: ethereum/binance/polygon |
Last updated