You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## Q: What's the difference between SGS and PTAX currency data?
113
+
**A:** SGS contains mostly economic indicators. For currency exchange rates, use `bcb.currency` (PTAX data) for daily rates or `bcb.odata` PTAX service for detailed institutional data. The currency module is simpler for common use cases.
114
+
115
+
## Q: How far back does historical data go?
116
+
**A:** It varies by series:
117
+
- SGS: Most series go back to 1980s or 1990s (check specific code documentation)
118
+
- Currency: Daily rates available from approximately 1980
119
+
- OData services: Varies; check BCB documentation for specific endpoints
120
+
121
+
## Q: Can I fetch data asynchronously?
122
+
**A:** Yes! All modules have `async_get()` or similar async methods. Use them for concurrent requests:
123
+
```python
124
+
import asyncio
125
+
from bcb import sgs
126
+
127
+
asyncdefmain():
128
+
results =await asyncio.gather(
129
+
sgs.async_get(1), # SELIC
130
+
sgs.async_get(433), # IPCA
131
+
)
132
+
133
+
asyncio.run(main())
134
+
```
135
+
136
+
## Q: How do I handle errors/missing data?
137
+
**A:** The library raises specific exceptions:
138
+
-`CurrencyNotFoundError`: Currency symbol not found
0 commit comments