Get Rate History
Name
Type
Example
Description
Parameter
Type
Default
Description
const axios = require("axios");
const crypto = require("crypto");
const apiKey = "your-api-key";
const apiSecret = "your-api-secret";
const query = {
currencySymbol: "PHP",
limit: "50",
offset: "0"
};
const signature = crypto
.createHmac("sha256", apiSecret)
.update(JSON.stringify(query))
.digest("hex");
axios.get(
"https://api.tylt.money/v2/prime-fiat/php/rate/history",
{
params: query,
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