Query Parameters
-
list: (array)
Example:
[
{
"list": [
"M85014",
"M85016"
]
}
]
HTTP status code
200
Body
Media type: application/json
Type: any
Example:
[
{
"ticker": "M85014",
"nome": "Saldo das operações de crédito do Sistema Financeiro Nacional - Região Sudeste - Pessoas físicas",
"dados": {
"2022-01-01": {
"valor": "1212710.0",
"dessaz": false
},
"2021-12-01": {
"valor": "1202170.0",
"dessaz": false
}
},
"status": true
},
{
"ticker": "M85016",
"nome": "Taxa de inadimplência das operações de crédito do Sistema Financeiro Nacional - Região Sudeste - Pessoas físicas",
"dados": {
"2022-01-01": {
"valor": "3.12",
"dessaz": false
},
"2021-12-01": {
"valor": "2.89",
"dessaz": false
}
}
}
]
HTTP status code
400
Body
Media type: application/json
Type: any
Example:
{"ticker": "The ticker not found."},
{"ticker": "The 'ticker' field cannot be left clear."},
{"ticker": "The 'list' field was not sent."},
{"ticker": "The 'Failed to decode JSON object: Expecting value: line 1 column 1 (char 0)."}
HTTP status code
401
Body
Media type: application/json
Type: any
Example:
{"ticker":"Unauthorized, check your login and password or contact support."}
HTTP status code
500
Body
Media type: application/json
Type: any
Example:
{"ticker":"Internal Server Error"}
Secured by basicAuth
Headers
-
Authorization:
required(string)
Example:
import requests
import json
url = "https://api.machina.tendencias.com.br/query"
username = ""
password = ""
payload = json.dumps({
list: [
"M85014",
"M85016"
]
})
headers = {
'Content-Type': 'application/json'
}
response = requests.request("POST", url, headers=headers, auth=(username, password), data=payload)
print(response.text)