Arken Price API

Need a current price API for your project? Arken Finance has it for you.

Arken Price API is part of Arken Insider API.

Please refer to Arken API for getting API tokens

Return a cryptocurrency mid-price($). Mid Price for each token is calculated based on the latest total liquidity of all supported dex in the network and quotation by $USD.

GEThttps://public-api.arken.finance/insider/v1/{chainID}/tokens/price/{address}
Path parameters
chainID*string

Network ID of the blockchain you want to query.

Example: "42161"
address*string

Token address you want to get price.

Example: "0x912ce59144191c1204e64559fe8253a0e49e6548"
Response
Body
price*number

Latest usd mid-price.

Example: 1.409363486
lastUpdatedAtinteger

Unix sec timestamp of the lastest price.

Example: 1680164258
lastUpdatedBlockinteger

Block number of the lastest price.

Example: 75188020
Request
const response = await fetch('https://public-api.arken.finance/insider/v1/{chainID}/tokens/price/{address}', {
    method: 'GET',
    headers: {},
});
const data = await response.json();
Response
{
  "price": 1.409363486,
  "lastUpdatedAt": 1680164258,
  "lastUpdatedBlock": 75188020
}

Returns a map(object) of mid-prices($) for one or more cryptocurrencies in list. Mid Price for each token is calculated based on the latest total liquidity of all supported dex in the network and quotation by $USD.

GEThttps://public-api.arken.finance/insider/v1/{chainID}/tokens/price
Path parameters
chainID*string

Network ID of the blockchain you want to query.

Example: "42161"
Query parameters
Response
Body
$addressTokensGetPriceResponseDto (object)
Request
const response = await fetch('https://public-api.arken.finance/insider/v1/{chainID}/tokens/price?addresses=text', {
    method: 'GET',
    headers: {},
});
const data = await response.json();
Response
{
  "$address": {
    "price": 1.409363486,
    "lastUpdatedAt": 1680164258,
    "lastUpdatedBlock": 75188020
  }
}

Last updated