Set Rate
1 USDT = x fiatCurrencyEndpoint
Name
Type
Example
Description
Field
Type
Required
Description
const axios = require("axios");
const crypto = require("crypto");
const apiKey = "your-api-key";
const apiSecret = "your-api-secret";
const body = {
currencySymbol: "PHP",
usdtToFiatRate: 58
};
const signature = crypto
.createHmac("sha256", apiSecret)
.update(JSON.stringify(body))
.digest("hex");
axios.post(
"https://api.tylt.money/v2/prime-fiat/php/rate",
body,
{
headers: {
"X-TLP-APIKEY": apiKey,
"X-TLP-SIGNATURE": signature
}
}
)
.then((response) => console.log(response.data))
.catch((error) => console.error(error.response?.data || error));Field
Type
Description
Last updated