bpsmith / tia

Toolkit for integration and analysis
BSD 3-Clause "New" or "Revised" License
404 stars 165 forks source link

Downloading Non-Price Data #34

Open gs2440 opened 6 years ago

gs2440 commented 6 years ago

I am still new to Python (after years of Matlab) and learning an easy interface to download Bloomberg data. Came across this module and seem to be working great for Price Data.

Does anyone know, how can i use this module to get Non Price data. eg lets say Sector allocations of a fund e.g.

'HB_INDUSTRY_SECTOR_ALLOCATION' of EFA US EQUITY.

If it can not be done through TIA, whats my best bet? Thank you so much.

summerside182 commented 6 years ago

take a look at the https://github.com/bpsmith/tia/blob/master/examples/v3api.ipynb where you can see LocalTerminal.get_reference_data('EFA US EQUITY', 'HB_INDUSTRY_SECTOR_ALLOCATION', ignore_field_error=1)

this is not an issue, question like this should be ask on different website such has stackoverflow

dpsugasa commented 6 years ago

Also worth looking a BLPInterface. A slightly clunkier wrapper than tia but also has some additional Bloomberg API features like get.bulkdata which, depending on the security, is how to get index weights.

On Tue, 3 Oct 2017, 22:36 summerside182, notifications@github.com wrote:

take a look at the https://github.com/bpsmith/tia/blob/master/examples/v3api.ipynb where you can see LocalTerminal.get_reference_data('EFA US EQUITY', 'HB_INDUSTRY_SECTOR_ALLOCATION', ignore_field_error=1)

this is not an issue, question like this should be ask on different website such has stackoverflow

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/bpsmith/tia/issues/34#issuecomment-333985951, or mute the thread https://github.com/notifications/unsubscribe-auth/AZekSEwk7WRuKwL6OG3mo3R5qs2Q7Wd4ks5soqjIgaJpZM4Psy8q .