financial

Recreate Excel RATE function using Newton's Method

拥有回忆 提交于 2019-11-30 07:30:37
问题 I'm working on converting a mortgage calculator in PHP, but I don't necessarily need a PHP solution. I'm looking for the logic needed to replicate the Excel RATE function. I've found a solution which uses bisection, and if worse comes to worse, I use that. I know someone out there in the interwebs world has knowledge of such a function, so I'd love to have an easy answer instead of creating a solution from scratch. References: http://office.microsoft.com/en-us/excel-help/rate-HP005209232.aspx

iTunesConnect Autoingest for financial earnings reports [closed]

半城伤御伤魂 提交于 2019-11-30 05:34:43
Apple has for some time had a tool, AutoIngest.class for downloading iTunes Connect sales and trend reports. Is there is a similar tool (or modified use of it) to pull the financial reports (more specifically the Earnings report from the "Payments and Financial Reports" page) without manually downloading them for every month/region? mm2001 Edit Jan 2017 : The Autoingestion tool has been retired and replaced with a new one, per https://help.apple.com/itc/appsreporterguide/#/itc0f2481229 After downloading the Reporter.zip with new .jar and .properties files, and adding your login to the

Calculating annual percentage rate (need some help with inherited code)

筅森魡賤 提交于 2019-11-30 00:09:00
问题 I'm making an application that gives clients and approximate loan offer (they are later calculated by other back-office systems). I have received some code from the financial firm that we are making the calculator for. My problem is that I do not understand the part of the code that calculates the annual percentage rate (including startup and monthly fees). It might be this method they are using, but I can't really tell: http://www.efunda.com/math/num_rootfinding/num_rootfinding.cfm#Newton

Programmatic access to detailed historical financial data [closed]

孤街醉人 提交于 2019-11-29 21:56:52
I know that Yahoo has a great API for accessing detailed financial metrics about a company documented at http://www.gummy-stuff.org/Yahoo-data.htm . Yahoo also provides historical pricing data, documented at http://code.google.com/p/yahoo-finance-managed/wiki/csvHistQuotesDownload . However, I'm trying to find a place where I can programmatically access detailed historical data, like what was a company's earnings 10 years ago, and not just the price of the stock. Does anyone know of such a site? I'm willing to pay, and I think http://www.mergent.com/servius , but they seem very, very expensive

FIX message delimiter

蹲街弑〆低调 提交于 2019-11-29 05:50:28
I am relatively new to FIX-Protocol. The delimiter for a FIX-Protocol message sometimes show ^ and other times |. Wikipedia for FIX-Protocol says [SOH] ( < Start of Header > for hex 0x01 ) being the character. Please explain the meaning of the same. For example a FIX-Protocol message can be visually represented as 8=FIX.4.4^9=122^35=D^34=215^49=CLIENT12^52=20100225-19:41:57.316^56=B^1=Marcel^11=13346^21=1^40=2^44=5^54=1^59=0^60=20100225-19:39:52.020^10=072^ or 8=FIX.4.4|9=122|35=D|34=215|49=CLIENT12|52=20100225-19:41:57.316|56=B|1=Marcel|11=13346|21=1|40=2|44=5|54=1|59=0|60=20100225-19:39:52

How to calculate simple moving average faster in C#?

人盡茶涼 提交于 2019-11-29 01:30:43
What is the fastest library/algorithm for calculating simple moving average? I wrote my own, but it takes too long on 330 000 items decimal dataset. period / time(ms) 20 / 300; 60 / 1500; 120 / 3500. Here is the code of my method: public decimal MA_Simple(int period, int ii) { if (period != 0 && ii > period) { //stp.Start(); decimal summ = 0; for (int i = ii; i > ii - period; i--) { summ = summ + Data.Close[i]; } summ = summ / period; //stp.Stop(); //if (ii == 1500) System.Windows.Forms.MessageBox.Show((stp.ElapsedTicks * 1000.0) / Stopwatch.Frequency + " ms"); return summ; } else return -1; }

How to skip empty dates (weekends) in a financial Matplotlib Python graph?

一曲冷凌霜 提交于 2019-11-29 01:28:08
ax.plot_date((dates, dates), (highs, lows), '-') I'm currently using this command to plot financial highs and lows using Matplotlib . It works great, but how do I remove the blank spaces in the x-axis left by days without market data, such as weekends and holidays? I have lists of dates, highs, lows, closes and opens. I can't find any examples of creating a graph with an x-axis that show dates but doesn't enforce a constant scale. I think you need to "artificially synthesize" the exact form of plot you want by using xticks to set the tick labels to the strings representing the dates (of course

Integrating with Sage Financial Software [closed]

拟墨画扇 提交于 2019-11-28 19:11:40
I have recently been asked to develop an application that will have to integrate with Sage Line 50 financial software. I've done some googling and I am surprised at the lack of info on interfacing with Sage from Java or .Net. Is Sage such a black box that you need to sign up to a Sage Developer program before you get any info? Are there any open source options to allow apps to talk to Sage? Any info appreciated. Cheers Paul Atuitive Theres a new methodology Sage are moving to called SData. I think you can read about this at http://sdata.sage.com/ The long term aspiration is that SData will

How to calculate simple moving average faster in C#?

非 Y 不嫁゛ 提交于 2019-11-27 21:41:04
问题 What is the fastest library/algorithm for calculating simple moving average? I wrote my own, but it takes too long on 330 000 items decimal dataset. period / time(ms) 20 / 300; 60 / 1500; 120 / 3500. Here is the code of my method: public decimal MA_Simple(int period, int ii) { if (period != 0 && ii > period) { //stp.Start(); decimal summ = 0; for (int i = ii; i > ii - period; i--) { summ = summ + Data.Close[i]; } summ = summ / period; //stp.Stop(); //if (ii == 1500) System.Windows.Forms

ArithmeticException thrown during BigDecimal.divide

元气小坏坏 提交于 2019-11-27 04:35:50
I thought java.math.BigDecimal is supposed to be The Answer™ to the need of performing infinite precision arithmetic with decimal numbers. Consider the following snippet: import java.math.BigDecimal; //... final BigDecimal one = BigDecimal.ONE; final BigDecimal three = BigDecimal.valueOf(3); final BigDecimal third = one.divide(three); assert third.multiply(three).equals(one); // this should pass, right? I expect the assert to pass, but in fact the execution doesn't even get there: one.divide(three) causes ArithmeticException to be thrown! Exception in thread "main" java.lang