I'm pretty blue in searching Bloomberg data through programming. Wondering if there is anyway I could use some programming language, like Python, to get a huge amount of data from Bloomberg terminal? Say I want to grab thousands of bond information regarding their rate changing dates during certain periods?
What you want is... to use the API. (Screenscraping is not really an option..., and why would you, when there is a pretty good API.)
Bloomberg makes it very easy to do this in Excel, and it sounds like this might be sufficient for your needs (i.e. they are localised to a specific problem). You need to install the Bloomberg API plugin. If you contact your Bloomberg representative or the helpdesk, they can help you do this.
If you are convinced that you need to do this 'programmatically', there are a number of version of the Bloomberg API written in different languages. To find out more, go to WAPI on your terminal.
However, you should be aware that there are limits to how much data you can get through the API. Bloomberg pretty hush-hush on this, but there is some information.
Related
I'm attempting to work with sales and expense data from a Quickbooks account (in python), in order to build a dashboard for presenting this data that can be updated in real time. I haven't come across a way to obtain this data in one API call while reading the documentation, but am wondering if I overlooked something. Thanks in advance!
There's lots of different kinds of expense and sales data, so you're probably not going to find one API endpoint that gives you all of the data you need. Hard to tell though, since your question is incredibly vague in terms of describing what you actually need.
I would probably look at the reports endpoints, and see if there is a report (or multiple) that give you want you want:
https://developer.intuit.com/app/developer/qbo/docs/api/accounting/report-entities/accountlistdetail
I downloaded rainmeter in order to get some nifty computer stats showing while I work, and I found an audio visualizer that allows for you to see the frequency (I believe) at which noise is coming in around the office. This made me think, hmph, is it possible to get a realtime audio feed to translate to text with some sort of programming language? I figured this could be handy for any interviews I do and I wanted to reflect back on it, and it just seems like a cool concept to me. I do not want to download any third-party software, rather to take the time to learn some new coding concepts in either python, PowerShell, C, or anything. I am not limited to any language and it is up to the answerer's discretion!
Thanks for the help.
I bought some API for VBA Excel/reference. Is is possible to use this API in Python 2.x ? Maybe the question could be is there possible to import VBA reference into Python. This is just the idea. Do not have a any clue if this is even possible ? If it is not possible, is there some nice solution ? Do you have some some experience ? Thanks
I think basically you want to translate the VBA to python.
If you can take a look at how the API was constructed then it is possible but you have to translate the code by yourself.
If you can not, then you could build python scripts for your own, base on the logic you figure out, and you have to know about actuarial software you mentioned, if they have API to extract data, or any other means so you can get the data to process (this is possible since the API in VBA could do that)
I have experienced in finance banking, VBA and python in working with finance data, and I'm somewhat familiar with API for accounting software, so if you want you can contact me to discuss so I can help. I think wrap this up in an answer is impossible.
I know that this is from years ago, but I just stumbled across it and thought I would share my 2 cents.
One possibility is to translate it into VBScript - this is very similiar to VBA, and does not require Excel, etc in order to run. It would, of course, depend on what was in the original function.
Question
I am interested in web scraping and data analysis and I would like to develop my skills by writing a program using Python 2.7 that will monitor changes in stock prices. My goal is to be able to compare two stocks (for the time being) at certain points throughout the day, save that info into a document format easily handled by pandas (which I will learn how to use after I get this front end working). In the end I would like to map relationship trends between chosen stocks (when this one goes up by x what effect does that have on the other one). This is just a hobby project so it doesn't matter if the code is production quality.
My Experience
I am a brand new Python programmer (I have a very basic understanding of python and no real experience with any non-included modules) but I do have a technical background so if the answer to my question requires reading and understanding documentation intended for intermediate level programmers that should be OK.
For the basics I am working my way through Learning Python: Powerful Object-Oriented Programming by Mark Lutz if this helps any.
What I'm Looking For
I recognize this is a very broad subject and I am not asking for anyone to write any actual code examples or anything. I just want some direction as to where to go to get information more specific to my interests and goals.
This is actually my first post on this forum so please forgive me if this doesn't follow best practices for posting. I did search for other questions like mine and read the posting tips docs prior to writing this.
So, you want to web-scrape? If you're using Python 2.7, then you'll want to look into the urllib2, requests and BeautifulSoup libraries. If you're using Python 3.x, then you'll want to peek at urllib, urllib.request, and BeautifulSoup, again. Together, these libraries should accomplish everything you're looking to do in terms of web-scraping.
If you're interested in scraping stock data, might I suggest the yahoo_finance package? This is a Python wrapper for the Yahoo Finance API. Whenever I've done things with stock data in the past, this module was invaluable. There's also googlefinance, too. It's much easier to use these already-developed wrappers to extract stock info, rather than scraping hundreds (if not thousands) of web pages to get the data you want.
I'm attempting to pull physical property information (dimensions and resistance values, in particular) from an architectural (Autodesk - Revit) model and organize that information to be exported as specific variables.
To expand slightly, for an independent study I want to perform energy balances on Revit Models, starting simple and building from there. The goal is to write code that collects information from a Revit Model and then organizes it into variables such as "Total Wall Area", "Insulation Resistance", "Drywall depth", "Total Window Area", etc. that could be then sent to a model (or simply a spreadsheet) and stored as such.
I hope that makes some sense.
Given that I am a novice coder and would prefer to write in Python, does anyone have any advice or resources concerning an efficient (simple) path to go about importing and organizing specific parameters from a Revit model?
Is it necessary (or realistically necessary, given the humble extent of my knowledge) to use the API for this program (Revit) to accomplish this task?
I imagine this task is similar to web scraping yet I have no HTML to call and search through and therefore am happily winging my way along, asking folks far more knowledgeable than I if they have any insight.
A brief background, I have next to no knowledge of Revit or APIs in general, basic knowledge of coding in Python and really want to learn more!
Any help you are able to give is absolutely appreciated! I'm also happy to answer any questions that come up.
Thank you for reading and have a terrific day!
Great question - my +1 is definitely for Revit Python Shell (RPS).
Likewise I had a basic understanding of Python and none of the Revit API, but with RPS Ive coded multiple addins for our office (including rich user interfaces using winforms) and had no limitations so far from coding in Python. Its true that there is some translating C# API samples into Python - but the reward is in seeing a few paragraphs of code becoming a few lines...
The maker of RPS (Daren) is also really helpful, so no questions go unanswered.
Disclaimer is that (like you), Im a novice programmer who has simply wanted to use the API to extend Revit. RPS for the win
Indeed the most used programming language for Revit is C# (.NET), if you decide to go with IronPython, it should work, but there is less material...
Using C#, check the My First Revit Plugin training. For your specific scenario, download the SDK and check the "Fire Rating" sample.