Ụbọchị 0
Gosi njikọ
Kpụta key ahụ, mezuo otu arịrịọ a kwadoro, hụkwa azịza mbụ na metadata ya.
Mepee nzọ →ndu ụzọ workflow API
Họrọ nsonaazụ kacha nso na ọrụ gị. Ụzọ ọ bụla na-enye gị otu arịrịọ na-arụ ọrụ, ihe nzaghachi kwesịrị ịnwe, otu esi nleba anya ma ọ rụrụ ọrụ, na nzọ ụzọ na-akpalite.
Ụzọ ise dị umele
Selected: Troubleshoot a request
Ntụle API gị nke ụbọchị 14
Ebumnobi abụghị ịga n'ụzọ peji ngwaahịa ọ bụla. Ọ bụ ịmele ọrụ API authenticated dị anụrị, lọghachi n'ụbọchị ọzọ, wee pụọ na dataset ma ọ bụ usoro ọrụ a ga-ebili ebili.
Ụbọchị 0
Kpụta key ahụ, mezuo otu arịrịọ a kwadoro, hụkwa azịza mbụ na metadata ya.
Mepee nzọ →Ụbọchị 1-2
Dozie nsogbu authentication ma ọ bụ filter, mepee script mbụ ka ọ bụrụ ọrụ a ga-ebili ebili nwere aha.
Mepee nzọ →Ụbọchị 3-4
Jiri calendar ahụ dịka ezinne endpoint nke abụọ ma tụọ aro maka ọsọ API nke na-akpalite ọkàka.
Mepee nzọ →Ụbọchị 5-7
Gbakwunye ntụnyanya ma ọ bụ obere otu nke macro series, mebie otu ntụpọta ntụpọta, tebụl, ma ọ bụ scorecard achebara.
Mepee nzọ →Ụbọchị 8-10
Họrọ REST, SSE, ma ọ bụ webhooks a rụziri, wee mechaa ọzọ API rụrụ ọrụ n'ụbọchị ọzọ.
Mepee nzọ →Ụbọchị 11-13
Gbakwunye timeouts, nnyocha nnyocha, nlele nzaghachi, logging nke nchekwa credential, na nyocha data ochie.
Mepee nzọ →Ụbọchị 14
Gbaa ntị na API na-enye ọrụ a ga-ebili n'ụzọ a ga-eme nke otu gị ga-edebe, meziea họrọ dataset na-abịa ma ọ bụ application workflow.
Mepee nzọ →Request help
Inspect the status and a short error body, then follow the matching fix. Never paste an API key or a full authenticated URL into a support message.
Ọmụmaatụ na-arụ ọrụ
Dee key gị na FXMD_API_KEY; atụla ya n'ime source control.
import os
import requests
key = os.getenv("FXMD_API_KEY", "").strip()
if not key:
raise RuntimeError("FXMD_API_KEY is not set")
response = requests.get(
"https://api.fxmacrodata.com/v1/announcements/eur/inflation",
params={"api_key": key, "limit": 1},
timeout=20,
)
print(response.status_code, response.text[:300])
Nsonaazụ a tụrụ anya ya: A 200 confirms the key and path work. A 401 or 403 points to authentication or access, a 404 to the path, and a 429 to request pacing.
Mgbe script mbụ ghọrọ usoro nke eziokwu
Jiri nduide ndị a mgbe azịza ahụ hapụrụ, wepụta data ọ dịghị, ma ọ bụ chọọ njikwa mmepụta dịka caching, timeouts, retries, na nnyefe event.
| Nduzi | Jiri ya mgbe | Malite |
|---|---|---|
| Chọpụta ihe kpatara azịza na-arụghị ọrụ ma ọ bụ efu | Kekaa nsogbu authentication, njikọ, ụzọ, oke ọnụọ, na availability data n'enweghị ịgosi key gị. | Mepee ntuziaka → |
| Mee ka API client dị njikere maka mmepụta | Tinye timeouts, bounded retries, caching, conditional requests, na ụdị nnyefe zịrị own. | Mepee ntuziaka → |