# WinkLink

### /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<mark style="color:red;">\*</mark> | String | Refer to the [oracle-ids](https://docs.expand.network/ids/oracle-ids "mention") page for details. |
| oracleName                                 | String | Refer to the [oracle-ids](https://docs.expand.network/ids/oracle-ids "mention") page for details. |

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

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

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "priceFeedAddress": "TNu3zS55MP4KnBBP6Maw1nHSzRpc3CXAxm",
        "roundId": "18446744073709551956",
        "answer": "0.99975",
        "startedAt": "1714103193",
        "updatedAt": "1714103193",
        "answeredInRound": "18446744073709551956"
    }
}
```

{% endtab %}
{% endtabs %}

### /getsupportedtokens

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

<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](https://docs.expand.network/ids/oracle-ids "mention") page for details. |
| oracleName                                 | String | Refer to the [oracle-ids](https://docs.expand.network/ids/oracle-ids "mention") page for details. |

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

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

{% endtab %}

{% tab title="Sample Response" %}

```json
{
    "status": 200,
    "msg": "success",
    "data": {
        "BTC": "TQoijQ1iZKRgJsAAWNPMu6amgtCJ3WMUV7",
        "ETH": "TR2yWYWovJaSM7TfZq7L7sT7ZRugdJJQmL",
        "TRX": "TR5HtpPK4gX4RFC4DCBUHfFgsGkGFEzSAb",
        "USDT": "TKePc46n5CiUCR8LL788TFeKA4kjvNnuem",
        "WIN": "TSCef3LT3jpLwwXCWhZe3hZoMsYk1ZLif2",
        "BTT": "TBAAW545oJ6iTxqzezGvagrSUzCpz1S8eR",
        "BTTOLD": "TEEnwU47Fgx4Ehii7Xs9bLWK3XKo4fs6sV",
        "JST": "TE5rKoDzKmpVAQp1sn7x6V8biivR3d5r47",
        "LIVE": "TNdLmxVhdj1H1yGjhhSp33cMaAJKjyTAM4",
        "LTC": "TGxGL85kN3W5sGdBiobgWabWFcMEtoqRJJ",
        "NFT": "TEC8b2oL6sAQFMiea73tTgjtTLwyV1GuZU",
        "SUN": "TRMgzSPsuWEcVpd5hv19XtLeCk8Z799sZa",
        "SUNOLD": "TEEuSdqyv2NFREtNoUXMTDSmJVK3KCuLac",
        "TUSD": "TBc3yBP8xcyQ1E3hDTUhRxToMrgekLH2kh",
        "USDC": "TNu3zS55MP4KnBBP6Maw1nHSzRpc3CXAxm",
        "USDD": "TJ7jEgoYVaeymVfYZ3bS57dYArwVDS1mhW",
        "USDJ": "TB1MyT7pDCNg8w7cSW1QvYKs4WPzErzP5k"
    }
}
```

{% endtab %}
{% endtabs %}
