Submit currency conversion records (async)
curl --request PUT \
--url https://api.tangoanalytics.com/v1/common/exchangerates \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--header 'x-client: <api-key>' \
--data '
{
"records": [
{
"source_currency": "USD",
"converted_currency": "GBP",
"spot_exchange_rate": "5.1111",
"avg_exchange_rate": "4.111",
"exchange_rate_date": "09/14/2020",
"effective_from": "01/01/2020",
"effective_to": "01/31/2020"
}
]
}
'const options = {
method: 'PUT',
headers: {
'x-client': '<api-key>',
'x-api-key': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
records: [
{
source_currency: 'USD',
converted_currency: 'GBP',
spot_exchange_rate: '5.1111',
avg_exchange_rate: '4.111',
exchange_rate_date: '09/14/2020',
effective_from: '01/01/2020',
effective_to: '01/31/2020'
}
]
})
};
fetch('https://api.tangoanalytics.com/v1/common/exchangerates', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.tangoanalytics.com/v1/common/exchangerates"
payload = { "records": [
{
"source_currency": "USD",
"converted_currency": "GBP",
"spot_exchange_rate": "5.1111",
"avg_exchange_rate": "4.111",
"exchange_rate_date": "09/14/2020",
"effective_from": "01/01/2020",
"effective_to": "01/31/2020"
}
] }
headers = {
"x-client": "<api-key>",
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text){
"status": "OK",
"gu_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status_message": "<string>"
}Exchange Rates
Submit currency conversion records (async)
PUT
/
v1
/
common
/
exchangerates
Submit currency conversion records (async)
curl --request PUT \
--url https://api.tangoanalytics.com/v1/common/exchangerates \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--header 'x-client: <api-key>' \
--data '
{
"records": [
{
"source_currency": "USD",
"converted_currency": "GBP",
"spot_exchange_rate": "5.1111",
"avg_exchange_rate": "4.111",
"exchange_rate_date": "09/14/2020",
"effective_from": "01/01/2020",
"effective_to": "01/31/2020"
}
]
}
'const options = {
method: 'PUT',
headers: {
'x-client': '<api-key>',
'x-api-key': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
records: [
{
source_currency: 'USD',
converted_currency: 'GBP',
spot_exchange_rate: '5.1111',
avg_exchange_rate: '4.111',
exchange_rate_date: '09/14/2020',
effective_from: '01/01/2020',
effective_to: '01/31/2020'
}
]
})
};
fetch('https://api.tangoanalytics.com/v1/common/exchangerates', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.tangoanalytics.com/v1/common/exchangerates"
payload = { "records": [
{
"source_currency": "USD",
"converted_currency": "GBP",
"spot_exchange_rate": "5.1111",
"avg_exchange_rate": "4.111",
"exchange_rate_date": "09/14/2020",
"effective_from": "01/01/2020",
"effective_to": "01/31/2020"
}
] }
headers = {
"x-client": "<api-key>",
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text){
"status": "OK",
"gu_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status_message": "<string>"
}Body
application/json
Show child attributes
Show child attributes

