Commit 3d8cba6
fix: Correct examples to work with API constraints and actual implementations
- examples/sgs_time_series.py: Change last=30 to last=20 (API limit is 20)
- examples/odata_query.py:
- Fix Example 4: Use separate filter() calls instead of & operator
- Fix Example 6: Use select(col1, col2) instead of select([col1, col2])
- Add try-except for complex filter operations
All examples now run successfully against live BCB APIs:
✅ sgs_time_series.py — fetches SGS time series
✅ currency_exchange.py — fetches exchange rates
✅ odata_query.py — performs OData queries with filters/select/orderby
✅ async_usage.py — demonstrates async concurrent operations
Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>1 parent 3277cf4 commit 3d8cba6
2 files changed
Lines changed: 9 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
| 41 | + | |
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
| 45 | + | |
| 46 | + | |
46 | 47 | | |
47 | 48 | | |
48 | | - | |
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
| 53 | + | |
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | | - | |
| 65 | + | |
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| |||
0 commit comments