# ChainLink

### /getprice

Get the Price(in USDT) of a token for the given protocol.

<mark style="color:blue;">`GET`</mark> `https://api.expand.network/oracle/getprice`

#### Query Parameters

| Name                                    | Type   | Description                                                                  |
| --------------------------------------- | ------ | ---------------------------------------------------------------------------- |
| asset<mark style="color:red;">\*</mark> | String | Name of the token, whose price is to be fetched.                             |
| oracleId                                | String | Refer to the [Oracle IDs](/ids/oracle-ids.md) page for details.              |
| oracleName                              | String | Refer to the [Oracle IDs](/ids/oracle-ids.md) page for details.              |
| timestamp                               | String | Specify the particular point in time for which we have to fetch the price.   |
| hours                                   | string | Comma seperated of hours for which the price should be fetched, if required. |
| days                                    | string | Comma seperated of days for which the price should be fetched, if required.  |
| weeks                                   | string | Comma seperated of weeks for which the price should be fetched, if required. |

{% tabs %}
{% tab title="Sample Request" %}

```url
https://api.expand.network/oracle/getprice?asset=usdc&oracleId=1000
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "priceFeedAddress": "0x8fFfFfd4AfB6115b954Bd326cbe7B4BA576818f6",
        "roundId": "36893488147419104865",
        "answer": "1.00002544",
        "startedAt": "1714118435",
        "updatedAt": "1714118435",
        "answeredInRound": "36893488147419104865"
    }
}
```

{% endtab %}
{% endtabs %}

### /getsupportedtokens

Get the list of supported tokens on Expand.network, for ChainLink.

<mark style="color:blue;">`GET`</mark> `https://api.expand.network/oracle/getsupportedtokens`

#### Query Parameters

| Name                                       | Type   | Description                                                     |
| ------------------------------------------ | ------ | --------------------------------------------------------------- |
| oracleId<mark style="color:red;">\*</mark> | String | Refer to the [Oracle IDs](/ids/oracle-ids.md) page for details. |
| oracleName                                 | String | Refer to the [Oracle IDs](/ids/oracle-ids.md) page for details. |

{% tabs %}
{% tab title="Sample Request" %}

```url
https://api.expand.network/oracle/getsupportedtokens?oracleId=1000
```

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "AMPL": "0xe20CA8D7546932360e37E9D72c1a47334af57706",
        "APE": "0xD10aBbC76679a20055E167BB80A24ac851b37056",
        "ARB": "0x31697852a68433DbCc2Ff612c516d69E3D9bd08F",
        "AUD": "0x77F9710E7d0A19669A13c055F62cd80d313dF022",
        "BAL": "0xdF2917806E30300537aEB49A7663062F4d1F2b5F",
        "CAD": "0xa34317DB73e77d453b1B8d04550c44D10e981C8e",
        "CHF": "0x449d117117838fFA61263B61dA6301AA2a88B13A",
        "CNY": "0xeF8A4aF35cd47424672E3C590aBD37FBB7A7759a",
        "CRV": "0xCd627aA160A6fA45Eb793D19Ef54f5062F20f33f",
        "CRVUSD": "0xEEf0C605546958c1f899b6fB336C20671f9cD49F",
        "CVX": "0xd962fC30A72A84cE50161031391756Bf2876Af5D",
        "ENS": "0x5C00128d4d1c2F4f652C267d7bcdD7aC99C16E16",
        "EUR": "0xb49f677943BC038e9857d61E7d053CaA2C1734C1",
        "FDUSD": "0xfAA9147190c2C2cc5B8387B4f49016bDB3380572",
        "FXS": "0x6Ebc52C8C1089be9eB3945C4350B68B8E4C2233f",
        "GBP": "0x5c0Ab2d9b5a7ed9f470386e82BB36A3613cDd4b5",
        "GHO": "0x3f12643D3f6f874d39C2a4c9f2Cd6f2DbAC877FC",
        "GRT": "0x86cF33a451dE9dc61a2862FD94FF4ad4Bd65A5d2",
        "HIGH": "0x5C8D8AaB4ffa4652753Df94f299330Bb4479bF85",
        "IMX": "0xBAEbEFc1D023c0feCcc047Bff42E75F15Ff213E6",
        "JPY": "0xBcE206caE7f0ec07b545EddE332A47C2F75bbeb3",
        "KNC": "0xf8fF43E991A81e6eC886a3D281A2C6cC19aE70Fc",
        "KRW": "0x01435677FB11763550905594A16B645847C1d0F3",
        "LUSD": "0x3D7aE7E594f2f2091Ad8798313450130d0Aba3a0",
        "MIM": "0x7A364e8770418566e3eb2001A96116E6138Eb32F",
        "NZD": "0x3977CFc9e4f29C184D4675f4EB8e0013236e5f3e",
        "PYUSD": "0x8f1dF6D7F2db73eECE86a18b4381F4707b918FB1",
        "RDNT": "0x393CC05baD439c9B36489384F11487d9C8410471",
        "RPL": "0x4E155eD98aFE9034b7A5962f6C84c86d869daA9d",
        "RSR": "0x759bBC1be8F90eE6457C44abc7d443842a976d02",
        "SAND": "0x35E3f7E558C04cE7eEE1629258EcbbA03B36Ec56",
        "SGD": "0xe25277fF4bbF9081C75Ab0EB13B4A13a721f3E13",
        "SNX": "0xDC3EA94CD0AC27d9A86C180091e7f78C683d3699",
        "SPELL": "0x8c110B94C5f1d347fAcF5E1E938AB2db60E3c9a8",
        "STETH": "0xCfE54B5cD566aB89272946F602D76Ea879CAb4a8",
        "STG": "0x7A9f34a0Aa917D438e9b6E630067062B7F8f6f3d",
        "SUSD": "0x8e0b7e6062272B5eF4524250bFFF8e5Bd3497757",
        "SXP": "0xFb0CfD6c19e25DB4a08D8a204a387cEa48Cc138f",
        "TRY": "0xB09fC5fD3f11Cf9eb5E1C5Dba43114e3C9f477b5",
        "XAG": "0x379589227b15F1a12195D3f2d90bBc9F31f95235",
        "XAU": "0x214eD9Da11D2fbe465a6fc601a91E62EbEc1a0D6",
        "XCN": "0xeb988B77b94C186053282BfcD8B7ED55142D3cAB",
        "WBTC": "0xF4030086522a5bEEa4988F8cA5B36dbC97BeE88c",
        "TUSD": "0xec746eCF986E2927Abd291a2A1716c940100f8Ba",
        "MKR": "0xec1D1B3b0443256cc3860e24a46F108e699484Aa",
        "SUSHI": "0xCc70F09A6CC17553b2E31954cD36E4A2d89501f7",
        "USDP": "0x09023c0DA49Aaf8fc3fA3ADF34C6A7016D38D5e3",
        "YFI": "0xA027702dbb89fbd58938e4324ac03B58d812b0E1",
        "ZRX": "0x2885d15b8Af22648b98B122b22FDF4D2a56c6023",
        "ETH": "0x5f4eC3Df9cbd43714FE2740f5E3616155c5b8419",
        "WETH": "0x5f4eC3Df9cbd43714FE2740f5E3616155c5b8419",
        "DAI": "0xAed0c38402a5d19df6E4c03F4E2DceD6e29c1ee9",
        "AAVE": "0x547a514d5e3769680Ce22B2361c10Ea13619e8a9",
        "FRAX": "0xB9E1E3A9feFf48998E45Fa90847ed4D467E8BcfD",
        "COMP": "0xdbd020CAeF83eFd542f4De03e3cF0C28A4428bd5",
        "1INCH": "0xc929ad75B72593967DE83E7F7Cda0493458261D9",
        "BNB": "0x14e613AC84a31f709eadbdF89C6CC390fDc9540A",
        "SOL": "0x4ffC43a60e009B551865A93d232E33Fce9f01507",
        "AVAX": "0xFF3EEb22B5E3dE6e705b44749C2559d704923FD7",
        "MATIC": "0x7bAC85A8a13A4BcD8abb3eB7d6b4d632c5a57676",
        "UNI": "0x553303d460EE0afB37EdFf9bE42922D8FF63220e",
        "USDT": "0x3E7d1eAB13ad0104d2750B8863b489D65364e32D",
        "USDC": "0x8fFfFfd4AfB6115b954Bd326cbe7B4BA576818f6",
        "LINK": "0x2c1d072e956AFFC0D435Cb7AC38EF18d24d9127c",
        "FTM": "0x2DE7E4a9488488e0058B95854CC2f7955B35dC9b",
        "USDE": "0xa569d910839Ae8865Da8F8e70FfFb0cBA869F961"
    }
}
```

{% endtab %}
{% endtabs %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.expand.network/integrations/oracles/chainlink.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
