btgsolutions-dataservices-python-client 3.2.12__tar.gz → 4.0.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {btgsolutions_dataservices_python_client-3.2.12/btgsolutions_dataservices_python_client.egg-info → btgsolutions_dataservices_python_client-4.0.0}/PKG-INFO +133 -4
- {btgsolutions_dataservices_python_client-3.2.12 → btgsolutions_dataservices_python_client-4.0.0}/README.md +123 -2
- {btgsolutions_dataservices_python_client-3.2.12 → btgsolutions_dataservices_python_client-4.0.0}/btgsolutions_dataservices/__init__.py +1 -1
- {btgsolutions_dataservices_python_client-3.2.12 → btgsolutions_dataservices_python_client-4.0.0}/btgsolutions_dataservices/config.py +2 -0
- {btgsolutions_dataservices_python_client-3.2.12 → btgsolutions_dataservices_python_client-4.0.0}/btgsolutions_dataservices/rest/__init__.py +6 -0
- btgsolutions_dataservices_python_client-4.0.0/btgsolutions_dataservices/rest/alternative_data_companies.py +577 -0
- btgsolutions_dataservices_python_client-4.0.0/btgsolutions_dataservices/rest/alternative_data_funds.py +208 -0
- btgsolutions_dataservices_python_client-4.0.0/btgsolutions_dataservices/rest/alternative_data_macro_markets.py +278 -0
- btgsolutions_dataservices_python_client-4.0.0/btgsolutions_dataservices/rest/alternative_data_metadata.py +221 -0
- btgsolutions_dataservices_python_client-4.0.0/btgsolutions_dataservices/rest/alternative_data_ownership.py +340 -0
- btgsolutions_dataservices_python_client-4.0.0/btgsolutions_dataservices/rest/alternative_data_people.py +94 -0
- btgsolutions_dataservices_python_client-4.0.0/btgsolutions_dataservices/rest/hfn.py +340 -0
- btgsolutions_dataservices_python_client-4.0.0/btgsolutions_dataservices/websocket/hfn_websocket_client.py +321 -0
- {btgsolutions_dataservices_python_client-3.2.12 → btgsolutions_dataservices_python_client-4.0.0/btgsolutions_dataservices_python_client.egg-info}/PKG-INFO +133 -4
- {btgsolutions_dataservices_python_client-3.2.12 → btgsolutions_dataservices_python_client-4.0.0}/btgsolutions_dataservices_python_client.egg-info/SOURCES.txt +6 -0
- btgsolutions_dataservices_python_client-3.2.12/btgsolutions_dataservices/rest/hfn.py +0 -323
- btgsolutions_dataservices_python_client-3.2.12/btgsolutions_dataservices/websocket/hfn_websocket_client.py +0 -191
- {btgsolutions_dataservices_python_client-3.2.12 → btgsolutions_dataservices_python_client-4.0.0}/LICENSE +0 -0
- {btgsolutions_dataservices_python_client-3.2.12 → btgsolutions_dataservices_python_client-4.0.0}/MANIFEST.in +0 -0
- {btgsolutions_dataservices_python_client-3.2.12 → btgsolutions_dataservices_python_client-4.0.0}/btgsolutions_dataservices/exceptions.py +0 -0
- {btgsolutions_dataservices_python_client-3.2.12 → btgsolutions_dataservices_python_client-4.0.0}/btgsolutions_dataservices/rest/authenticator.py +0 -0
- {btgsolutions_dataservices_python_client-3.2.12 → btgsolutions_dataservices_python_client-4.0.0}/btgsolutions_dataservices/rest/book_scope.py +0 -0
- {btgsolutions_dataservices_python_client-3.2.12 → btgsolutions_dataservices_python_client-4.0.0}/btgsolutions_dataservices/rest/broker_analytics.py +0 -0
- {btgsolutions_dataservices_python_client-3.2.12 → btgsolutions_dataservices_python_client-4.0.0}/btgsolutions_dataservices/rest/broker_reference.py +0 -0
- {btgsolutions_dataservices_python_client-3.2.12 → btgsolutions_dataservices_python_client-4.0.0}/btgsolutions_dataservices/rest/bulk_data.py +0 -0
- {btgsolutions_dataservices_python_client-3.2.12 → btgsolutions_dataservices_python_client-4.0.0}/btgsolutions_dataservices/rest/company_data.py +0 -0
- {btgsolutions_dataservices_python_client-3.2.12 → btgsolutions_dataservices_python_client-4.0.0}/btgsolutions_dataservices/rest/corporate_events.py +0 -0
- {btgsolutions_dataservices_python_client-3.2.12 → btgsolutions_dataservices_python_client-4.0.0}/btgsolutions_dataservices/rest/historical_candles.py +0 -0
- {btgsolutions_dataservices_python_client-3.2.12 → btgsolutions_dataservices_python_client-4.0.0}/btgsolutions_dataservices/rest/historical_candles_crypto.py +0 -0
- {btgsolutions_dataservices_python_client-3.2.12 → btgsolutions_dataservices_python_client-4.0.0}/btgsolutions_dataservices/rest/intraday_candles.py +0 -0
- {btgsolutions_dataservices_python_client-3.2.12 → btgsolutions_dataservices_python_client-4.0.0}/btgsolutions_dataservices/rest/intraday_tick_data.py +0 -0
- {btgsolutions_dataservices_python_client-3.2.12 → btgsolutions_dataservices_python_client-4.0.0}/btgsolutions_dataservices/rest/public_sources.py +0 -0
- {btgsolutions_dataservices_python_client-3.2.12 → btgsolutions_dataservices_python_client-4.0.0}/btgsolutions_dataservices/rest/quotes.py +0 -0
- {btgsolutions_dataservices_python_client-3.2.12 → btgsolutions_dataservices_python_client-4.0.0}/btgsolutions_dataservices/rest/reference_data.py +0 -0
- {btgsolutions_dataservices_python_client-3.2.12 → btgsolutions_dataservices_python_client-4.0.0}/btgsolutions_dataservices/rest/stock_loan.py +0 -0
- {btgsolutions_dataservices_python_client-3.2.12 → btgsolutions_dataservices_python_client-4.0.0}/btgsolutions_dataservices/rest/ticker_last_event.py +0 -0
- {btgsolutions_dataservices_python_client-3.2.12 → btgsolutions_dataservices_python_client-4.0.0}/btgsolutions_dataservices/rest/ticker_last_event_polling.py +0 -0
- {btgsolutions_dataservices_python_client-3.2.12 → btgsolutions_dataservices_python_client-4.0.0}/btgsolutions_dataservices/websocket/__init__.py +0 -0
- {btgsolutions_dataservices_python_client-3.2.12 → btgsolutions_dataservices_python_client-4.0.0}/btgsolutions_dataservices/websocket/broker_analytics.py +0 -0
- {btgsolutions_dataservices_python_client-3.2.12 → btgsolutions_dataservices_python_client-4.0.0}/btgsolutions_dataservices/websocket/market_data_feed.py +0 -0
- {btgsolutions_dataservices_python_client-3.2.12 → btgsolutions_dataservices_python_client-4.0.0}/btgsolutions_dataservices/websocket/market_data_websocket_client.py +0 -0
- {btgsolutions_dataservices_python_client-3.2.12 → btgsolutions_dataservices_python_client-4.0.0}/btgsolutions_dataservices/websocket/websocket_default_functions.py +0 -0
- {btgsolutions_dataservices_python_client-3.2.12 → btgsolutions_dataservices_python_client-4.0.0}/btgsolutions_dataservices_python_client.egg-info/dependency_links.txt +0 -0
- {btgsolutions_dataservices_python_client-3.2.12 → btgsolutions_dataservices_python_client-4.0.0}/btgsolutions_dataservices_python_client.egg-info/requires.txt +0 -0
- {btgsolutions_dataservices_python_client-3.2.12 → btgsolutions_dataservices_python_client-4.0.0}/btgsolutions_dataservices_python_client.egg-info/top_level.txt +0 -0
- {btgsolutions_dataservices_python_client-3.2.12 → btgsolutions_dataservices_python_client-4.0.0}/pyproject.toml +0 -0
- {btgsolutions_dataservices_python_client-3.2.12 → btgsolutions_dataservices_python_client-4.0.0}/requirements.txt +0 -0
- {btgsolutions_dataservices_python_client-3.2.12 → btgsolutions_dataservices_python_client-4.0.0}/setup.cfg +0 -0
- {btgsolutions_dataservices_python_client-3.2.12 → btgsolutions_dataservices_python_client-4.0.0}/setup.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: btgsolutions_dataservices_python_client
|
|
3
|
-
Version:
|
|
3
|
+
Version: 4.0.0
|
|
4
4
|
Summary: Python package containing several classes and data for extracting and manipulating market and trading data.
|
|
5
5
|
Home-page: https://github.com/BTG-Pactual-Solutions/btgsolutions-dataservices-python-client
|
|
6
6
|
Author: BTG Solutions Data Services powered by BTG Pactual Solutions
|
|
@@ -12,6 +12,14 @@ Requires-Dist: websocket-client>=1.8.0
|
|
|
12
12
|
Requires-Dist: PyJWT>=2.8.0
|
|
13
13
|
Requires-Dist: requests>=2.32.3
|
|
14
14
|
Requires-Dist: pyarrow>=17.0.0
|
|
15
|
+
Dynamic: author
|
|
16
|
+
Dynamic: description
|
|
17
|
+
Dynamic: description-content-type
|
|
18
|
+
Dynamic: home-page
|
|
19
|
+
Dynamic: license-file
|
|
20
|
+
Dynamic: requires-dist
|
|
21
|
+
Dynamic: requires-python
|
|
22
|
+
Dynamic: summary
|
|
15
23
|
|
|
16
24
|
# BTG Solutions - Data Services
|
|
17
25
|
|
|
@@ -375,9 +383,23 @@ bulk_data.get_compressed_data(channel='98', date='2026-01-30', data_type='instru
|
|
|
375
383
|
|
|
376
384
|
```python
|
|
377
385
|
import btgsolutions_dataservices as btg
|
|
378
|
-
ws = btg.HFNWebSocketClient(api_key='YOUR_API_KEY'
|
|
386
|
+
ws = btg.HFNWebSocketClient(api_key='YOUR_API_KEY')
|
|
379
387
|
ws.run(on_message=lambda message: print(message))
|
|
380
388
|
|
|
389
|
+
# Subscribe to live economy news in Portuguese
|
|
390
|
+
ws.subscribe(settings={'feed': 'economy', 'text_language': 'portuguese'})
|
|
391
|
+
|
|
392
|
+
# Request latest news on demand (without subscribing to the live stream)
|
|
393
|
+
ws.latest_news(settings={'feed': 'crypto', 'limit': '10'})
|
|
394
|
+
|
|
395
|
+
# Get available filter values
|
|
396
|
+
ws.available_filters(settings={})
|
|
397
|
+
|
|
398
|
+
# Stop receiving broadcasts (keeps connection open)
|
|
399
|
+
ws.unsubscribe()
|
|
400
|
+
|
|
401
|
+
ws.close()
|
|
402
|
+
|
|
381
403
|
## The following is optional to keep the program running in a .py file:
|
|
382
404
|
# from time import sleep
|
|
383
405
|
# while True:
|
|
@@ -389,7 +411,22 @@ ws.run(on_message=lambda message: print(message))
|
|
|
389
411
|
```python
|
|
390
412
|
import btgsolutions_dataservices as btg
|
|
391
413
|
hfn = btg.HighFrequencyNews(api_key='YOUR_API_KEY')
|
|
392
|
-
|
|
414
|
+
|
|
415
|
+
# Latest news with filters
|
|
416
|
+
hfn.get_latest_news(feed='economy', text_language='portuguese', limit=10)
|
|
417
|
+
|
|
418
|
+
# Latest news by ticker tags
|
|
419
|
+
hfn.get_latest_news(tags=['PETR4', 'VALE3'])
|
|
420
|
+
|
|
421
|
+
# Historical news for a date range
|
|
422
|
+
hfn.get_historical_news(
|
|
423
|
+
start_date='2026-05-01T00:00:00.000Z',
|
|
424
|
+
end_date='2026-05-08T23:59:59.999Z',
|
|
425
|
+
feed='economy',
|
|
426
|
+
)
|
|
427
|
+
|
|
428
|
+
# Available filter values
|
|
429
|
+
hfn.get_available_filters()
|
|
393
430
|
```
|
|
394
431
|
|
|
395
432
|
#### OPA
|
|
@@ -484,6 +521,98 @@ company_data = btg.CompanyData(api_key='YOUR_API_KEY')
|
|
|
484
521
|
company_data.all_financial_tables(ticker='PETR4')
|
|
485
522
|
```
|
|
486
523
|
|
|
524
|
+
#### Alternative Data - Metadata
|
|
525
|
+
|
|
526
|
+
```python
|
|
527
|
+
import btgsolutions_dataservices as btg
|
|
528
|
+
meta = btg.AlternativeDataMetadata(api_key='YOUR_API_KEY')
|
|
529
|
+
meta.get_company_directory(query='PETROBRAS', jurisdiction='BR')
|
|
530
|
+
meta.get_company_sector(identifier='PETR4')
|
|
531
|
+
meta.get_taxonomy(system='b3')
|
|
532
|
+
meta.get_cnae(code='6422100')
|
|
533
|
+
meta.get_sector_companies(sector='Petróleo, Gás e Biocombustíveis')
|
|
534
|
+
meta.get_sectors_summary()
|
|
535
|
+
meta.get_financial_statement_types()
|
|
536
|
+
meta.get_datasets()
|
|
537
|
+
meta.get_available_assets(dataset='maximum_theoretical_margin', prefix='PETR')
|
|
538
|
+
meta.get_available_indicators()
|
|
539
|
+
```
|
|
540
|
+
|
|
541
|
+
#### Alternative Data - Companies
|
|
542
|
+
|
|
543
|
+
```python
|
|
544
|
+
import btgsolutions_dataservices as btg
|
|
545
|
+
companies = btg.AlternativeDataCompanies(api_key='YOUR_API_KEY')
|
|
546
|
+
companies.get_board(company_id='VALE3', body='board')
|
|
547
|
+
companies.get_governance_summary(company_id='ITUB4')
|
|
548
|
+
companies.get_governance_history(company_id='PETR4', start_date='2023-01-01', end_date='2024-12-31')
|
|
549
|
+
companies.get_governance_documents(company_id='PETR4', start_date='2024-01-01', end_date='2024-12-31')
|
|
550
|
+
companies.get_governance_compensation(company_id='VALE3', fiscal_year='2024')
|
|
551
|
+
companies.get_governance_related_party(company_id='ITUB4')
|
|
552
|
+
companies.get_governance_beneficial_ownership(company_id='VALE3')
|
|
553
|
+
companies.get_corporate_registry(company_id='PETR4', direction='partners')
|
|
554
|
+
companies.get_corporate_registry(company_id='PETR4', direction='investees')
|
|
555
|
+
companies.get_insider_trades(company_id='AAPL', start_date='2024-01-01', end_date='2024-12-31')
|
|
556
|
+
companies.get_board_changes(company_id='VALE3', event='appointed')
|
|
557
|
+
companies.get_financial_statements(company_id='PETR4', statement='income_statement', quarter='Q42024')
|
|
558
|
+
companies.get_financial_notes(company_id='VALE3', quarter='Q42024')
|
|
559
|
+
companies.get_disclosures(company_id='PETR4', document_type='repurchase')
|
|
560
|
+
companies.get_disclosures(company_id='PETR4', document_type='insider')
|
|
561
|
+
```
|
|
562
|
+
|
|
563
|
+
#### Alternative Data - People
|
|
564
|
+
|
|
565
|
+
```python
|
|
566
|
+
import btgsolutions_dataservices as btg
|
|
567
|
+
people = btg.AlternativeDataPeople(api_key='YOUR_API_KEY')
|
|
568
|
+
people.get_appointments(person_id='slug:Jean Paul Lemann', active_only=True)
|
|
569
|
+
people.get_appointments(person_id='slug:Jean Paul Lemann', group_by='company')
|
|
570
|
+
```
|
|
571
|
+
|
|
572
|
+
#### Alternative Data - Funds
|
|
573
|
+
|
|
574
|
+
```python
|
|
575
|
+
import btgsolutions_dataservices as btg
|
|
576
|
+
funds = btg.AlternativeDataFunds(api_key='YOUR_API_KEY')
|
|
577
|
+
funds.get_holdings(fund_id='73.232.530/0001-46', reference_date='2024-12-31')
|
|
578
|
+
funds.get_exposures(fund_id='73.232.530/0001-46', exposure_type='asset_class')
|
|
579
|
+
funds.get_history(fund_id='73.232.530/0001-46', start_date='2024-01-01', end_date='2024-12-31')
|
|
580
|
+
funds.get_lookthrough(fund_id='73.232.530/0001-46')
|
|
581
|
+
funds.get_manager_aggregate_holdings(manager_id='ITAÚ ASSET MANAGEMENT')
|
|
582
|
+
```
|
|
583
|
+
|
|
584
|
+
#### Alternative Data - Ownership
|
|
585
|
+
|
|
586
|
+
```python
|
|
587
|
+
import btgsolutions_dataservices as btg
|
|
588
|
+
ownership = btg.AlternativeDataOwnership(api_key='YOUR_API_KEY')
|
|
589
|
+
ownership.get_top_shareholders(company_id='VALE3', limit=10)
|
|
590
|
+
ownership.get_ownership_current(company_id='ITUB4')
|
|
591
|
+
ownership.get_ownership_history(company_id='PETR4', start_date='2023-01-01', end_date='2024-12-31')
|
|
592
|
+
ownership.get_ownership_change_events(company_id='VALE3', start_date='2024-01-01', end_date='2024-12-31')
|
|
593
|
+
ownership.get_ownership_official_notices(company_id='PETR4')
|
|
594
|
+
ownership.get_ownership_control_group(company_id='VALE3')
|
|
595
|
+
ownership.get_ownership_free_float(company_id='PETR4')
|
|
596
|
+
ownership.get_shareholder_holdings(shareholder_id='00.000.000/0001-91')
|
|
597
|
+
ownership.get_institutional_holders(identifier='VALE3')
|
|
598
|
+
ownership.get_fund_holders(identifier='PETR4', identifier_type='b3_ticker')
|
|
599
|
+
```
|
|
600
|
+
|
|
601
|
+
#### Alternative Data - Macro & Markets
|
|
602
|
+
|
|
603
|
+
```python
|
|
604
|
+
import btgsolutions_dataservices as btg
|
|
605
|
+
macro = btg.AlternativeDataMacroMarkets(api_key='YOUR_API_KEY')
|
|
606
|
+
macro.get_macro_indicators(indicator='selic')
|
|
607
|
+
macro.get_macro_indicators(indicator='ipca_contributions', start_date='2024-01', end_date='2024-12')
|
|
608
|
+
macro.get_macro_indicators(indicator='gdp', type='yoy')
|
|
609
|
+
macro.get_macro_indicators(indicator='comexstat', year='2024', state='SP')
|
|
610
|
+
macro.get_macro_indicators(indicator='rreo', year='2024', period='6')
|
|
611
|
+
macro.get_maximum_theoretical_margin(asset='PETR4', report_date='2024-12-31')
|
|
612
|
+
macro.get_dpmfi(start_date='2024-01', end_date='2024-12', status='dados_oficiais')
|
|
613
|
+
macro.get_dpmfi_composition(bond_type='IPCA')
|
|
614
|
+
```
|
|
615
|
+
|
|
487
616
|
### Reference Data
|
|
488
617
|
|
|
489
618
|
#### Corporate Events
|
|
@@ -360,9 +360,23 @@ bulk_data.get_compressed_data(channel='98', date='2026-01-30', data_type='instru
|
|
|
360
360
|
|
|
361
361
|
```python
|
|
362
362
|
import btgsolutions_dataservices as btg
|
|
363
|
-
ws = btg.HFNWebSocketClient(api_key='YOUR_API_KEY'
|
|
363
|
+
ws = btg.HFNWebSocketClient(api_key='YOUR_API_KEY')
|
|
364
364
|
ws.run(on_message=lambda message: print(message))
|
|
365
365
|
|
|
366
|
+
# Subscribe to live economy news in Portuguese
|
|
367
|
+
ws.subscribe(settings={'feed': 'economy', 'text_language': 'portuguese'})
|
|
368
|
+
|
|
369
|
+
# Request latest news on demand (without subscribing to the live stream)
|
|
370
|
+
ws.latest_news(settings={'feed': 'crypto', 'limit': '10'})
|
|
371
|
+
|
|
372
|
+
# Get available filter values
|
|
373
|
+
ws.available_filters(settings={})
|
|
374
|
+
|
|
375
|
+
# Stop receiving broadcasts (keeps connection open)
|
|
376
|
+
ws.unsubscribe()
|
|
377
|
+
|
|
378
|
+
ws.close()
|
|
379
|
+
|
|
366
380
|
## The following is optional to keep the program running in a .py file:
|
|
367
381
|
# from time import sleep
|
|
368
382
|
# while True:
|
|
@@ -374,7 +388,22 @@ ws.run(on_message=lambda message: print(message))
|
|
|
374
388
|
```python
|
|
375
389
|
import btgsolutions_dataservices as btg
|
|
376
390
|
hfn = btg.HighFrequencyNews(api_key='YOUR_API_KEY')
|
|
377
|
-
|
|
391
|
+
|
|
392
|
+
# Latest news with filters
|
|
393
|
+
hfn.get_latest_news(feed='economy', text_language='portuguese', limit=10)
|
|
394
|
+
|
|
395
|
+
# Latest news by ticker tags
|
|
396
|
+
hfn.get_latest_news(tags=['PETR4', 'VALE3'])
|
|
397
|
+
|
|
398
|
+
# Historical news for a date range
|
|
399
|
+
hfn.get_historical_news(
|
|
400
|
+
start_date='2026-05-01T00:00:00.000Z',
|
|
401
|
+
end_date='2026-05-08T23:59:59.999Z',
|
|
402
|
+
feed='economy',
|
|
403
|
+
)
|
|
404
|
+
|
|
405
|
+
# Available filter values
|
|
406
|
+
hfn.get_available_filters()
|
|
378
407
|
```
|
|
379
408
|
|
|
380
409
|
#### OPA
|
|
@@ -469,6 +498,98 @@ company_data = btg.CompanyData(api_key='YOUR_API_KEY')
|
|
|
469
498
|
company_data.all_financial_tables(ticker='PETR4')
|
|
470
499
|
```
|
|
471
500
|
|
|
501
|
+
#### Alternative Data - Metadata
|
|
502
|
+
|
|
503
|
+
```python
|
|
504
|
+
import btgsolutions_dataservices as btg
|
|
505
|
+
meta = btg.AlternativeDataMetadata(api_key='YOUR_API_KEY')
|
|
506
|
+
meta.get_company_directory(query='PETROBRAS', jurisdiction='BR')
|
|
507
|
+
meta.get_company_sector(identifier='PETR4')
|
|
508
|
+
meta.get_taxonomy(system='b3')
|
|
509
|
+
meta.get_cnae(code='6422100')
|
|
510
|
+
meta.get_sector_companies(sector='Petróleo, Gás e Biocombustíveis')
|
|
511
|
+
meta.get_sectors_summary()
|
|
512
|
+
meta.get_financial_statement_types()
|
|
513
|
+
meta.get_datasets()
|
|
514
|
+
meta.get_available_assets(dataset='maximum_theoretical_margin', prefix='PETR')
|
|
515
|
+
meta.get_available_indicators()
|
|
516
|
+
```
|
|
517
|
+
|
|
518
|
+
#### Alternative Data - Companies
|
|
519
|
+
|
|
520
|
+
```python
|
|
521
|
+
import btgsolutions_dataservices as btg
|
|
522
|
+
companies = btg.AlternativeDataCompanies(api_key='YOUR_API_KEY')
|
|
523
|
+
companies.get_board(company_id='VALE3', body='board')
|
|
524
|
+
companies.get_governance_summary(company_id='ITUB4')
|
|
525
|
+
companies.get_governance_history(company_id='PETR4', start_date='2023-01-01', end_date='2024-12-31')
|
|
526
|
+
companies.get_governance_documents(company_id='PETR4', start_date='2024-01-01', end_date='2024-12-31')
|
|
527
|
+
companies.get_governance_compensation(company_id='VALE3', fiscal_year='2024')
|
|
528
|
+
companies.get_governance_related_party(company_id='ITUB4')
|
|
529
|
+
companies.get_governance_beneficial_ownership(company_id='VALE3')
|
|
530
|
+
companies.get_corporate_registry(company_id='PETR4', direction='partners')
|
|
531
|
+
companies.get_corporate_registry(company_id='PETR4', direction='investees')
|
|
532
|
+
companies.get_insider_trades(company_id='AAPL', start_date='2024-01-01', end_date='2024-12-31')
|
|
533
|
+
companies.get_board_changes(company_id='VALE3', event='appointed')
|
|
534
|
+
companies.get_financial_statements(company_id='PETR4', statement='income_statement', quarter='Q42024')
|
|
535
|
+
companies.get_financial_notes(company_id='VALE3', quarter='Q42024')
|
|
536
|
+
companies.get_disclosures(company_id='PETR4', document_type='repurchase')
|
|
537
|
+
companies.get_disclosures(company_id='PETR4', document_type='insider')
|
|
538
|
+
```
|
|
539
|
+
|
|
540
|
+
#### Alternative Data - People
|
|
541
|
+
|
|
542
|
+
```python
|
|
543
|
+
import btgsolutions_dataservices as btg
|
|
544
|
+
people = btg.AlternativeDataPeople(api_key='YOUR_API_KEY')
|
|
545
|
+
people.get_appointments(person_id='slug:Jean Paul Lemann', active_only=True)
|
|
546
|
+
people.get_appointments(person_id='slug:Jean Paul Lemann', group_by='company')
|
|
547
|
+
```
|
|
548
|
+
|
|
549
|
+
#### Alternative Data - Funds
|
|
550
|
+
|
|
551
|
+
```python
|
|
552
|
+
import btgsolutions_dataservices as btg
|
|
553
|
+
funds = btg.AlternativeDataFunds(api_key='YOUR_API_KEY')
|
|
554
|
+
funds.get_holdings(fund_id='73.232.530/0001-46', reference_date='2024-12-31')
|
|
555
|
+
funds.get_exposures(fund_id='73.232.530/0001-46', exposure_type='asset_class')
|
|
556
|
+
funds.get_history(fund_id='73.232.530/0001-46', start_date='2024-01-01', end_date='2024-12-31')
|
|
557
|
+
funds.get_lookthrough(fund_id='73.232.530/0001-46')
|
|
558
|
+
funds.get_manager_aggregate_holdings(manager_id='ITAÚ ASSET MANAGEMENT')
|
|
559
|
+
```
|
|
560
|
+
|
|
561
|
+
#### Alternative Data - Ownership
|
|
562
|
+
|
|
563
|
+
```python
|
|
564
|
+
import btgsolutions_dataservices as btg
|
|
565
|
+
ownership = btg.AlternativeDataOwnership(api_key='YOUR_API_KEY')
|
|
566
|
+
ownership.get_top_shareholders(company_id='VALE3', limit=10)
|
|
567
|
+
ownership.get_ownership_current(company_id='ITUB4')
|
|
568
|
+
ownership.get_ownership_history(company_id='PETR4', start_date='2023-01-01', end_date='2024-12-31')
|
|
569
|
+
ownership.get_ownership_change_events(company_id='VALE3', start_date='2024-01-01', end_date='2024-12-31')
|
|
570
|
+
ownership.get_ownership_official_notices(company_id='PETR4')
|
|
571
|
+
ownership.get_ownership_control_group(company_id='VALE3')
|
|
572
|
+
ownership.get_ownership_free_float(company_id='PETR4')
|
|
573
|
+
ownership.get_shareholder_holdings(shareholder_id='00.000.000/0001-91')
|
|
574
|
+
ownership.get_institutional_holders(identifier='VALE3')
|
|
575
|
+
ownership.get_fund_holders(identifier='PETR4', identifier_type='b3_ticker')
|
|
576
|
+
```
|
|
577
|
+
|
|
578
|
+
#### Alternative Data - Macro & Markets
|
|
579
|
+
|
|
580
|
+
```python
|
|
581
|
+
import btgsolutions_dataservices as btg
|
|
582
|
+
macro = btg.AlternativeDataMacroMarkets(api_key='YOUR_API_KEY')
|
|
583
|
+
macro.get_macro_indicators(indicator='selic')
|
|
584
|
+
macro.get_macro_indicators(indicator='ipca_contributions', start_date='2024-01', end_date='2024-12')
|
|
585
|
+
macro.get_macro_indicators(indicator='gdp', type='yoy')
|
|
586
|
+
macro.get_macro_indicators(indicator='comexstat', year='2024', state='SP')
|
|
587
|
+
macro.get_macro_indicators(indicator='rreo', year='2024', period='6')
|
|
588
|
+
macro.get_maximum_theoretical_margin(asset='PETR4', report_date='2024-12-31')
|
|
589
|
+
macro.get_dpmfi(start_date='2024-01', end_date='2024-12', status='dados_oficiais')
|
|
590
|
+
macro.get_dpmfi_composition(bond_type='IPCA')
|
|
591
|
+
```
|
|
592
|
+
|
|
472
593
|
### Reference Data
|
|
473
594
|
|
|
474
595
|
#### Corporate Events
|
|
@@ -16,3 +16,9 @@ from .ticker_last_event_polling import TickerLastEventPolling
|
|
|
16
16
|
from .broker_reference import BrokerReference
|
|
17
17
|
from .book_scope import BookScope
|
|
18
18
|
from .broker_analytics import BrokerAnalytics
|
|
19
|
+
from .alternative_data_metadata import AlternativeDataMetadata
|
|
20
|
+
from .alternative_data_companies import AlternativeDataCompanies
|
|
21
|
+
from .alternative_data_people import AlternativeDataPeople
|
|
22
|
+
from .alternative_data_funds import AlternativeDataFunds
|
|
23
|
+
from .alternative_data_ownership import AlternativeDataOwnership
|
|
24
|
+
from .alternative_data_macro_markets import AlternativeDataMacroMarkets
|