bpsmith / tia

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

convert BDP formula to tia #48

Open YatesWong opened 5 years ago

YatesWong commented 5 years ago

I am new to python. I have a BDP formula like this =BDP(bond, 'RTG_SP', "SETTLE_DT=20180426") and trying to convert it to tia.

When I use LocalTerminal.get_historical(bond, 'RTG_SP', start='20180426', end='20180426'), I got nothing received. Maybe I should use LocalTerminal.get_reference(), but I didn't see the param SETTLE_DT. Is there a way to get the value from tia?

Thanks!

dpsugasa commented 5 years ago

Using the terminal, make sure that BBG field has historical values. If it doesn't you will only be able to get the latest vale and will need to use the Local terminal.getReferenceData().

Also check that you bond is using the BBG ID as a ticker. Ex: (EAFF000D Corp).

On Thu, 6 Dec 2018, 08:28 YatesWong, notifications@github.com wrote:

I am new to python. I have a BDP formula like this =BDP(bond, 'RTG_SP', "SETTLE_DT=20180426") and trying to convert it to tia.

When I use LocalTerminal.get_historical(bond, 'RTG_SP', start='20180426', end='20180426'), I got nothing received. Maybe I should use LocalTerminal.get_reference(), but I didn't see the param SETTLE_DT. Is there a way to get the value from tia?

Thanks!

— 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/48, or mute the thread https://github.com/notifications/unsubscribe-auth/AZekSPk3UVwh6lP9s3OHCZ_QW0-fhSkTks5u2NU-gaJpZM4ZGB6F .