Slashdot Mirror


Trading the Markets With FOSS Software?

Robert writes "Along with many other techies, I share an interest in the world of finance (bubble-era stock options pulled me in). Unfortunately, as someone with a strong preference for GNU/Linux as my operating system of choice, I have found that software in this area seems quite sparse. For awhile I have made do with Python, R, Gnumeric, Gnucash and a telephone, along with some small utilities I have written myself. What I would like to know is: what FOSS software do you use for financial analysis, trading, system development, and testing in a Un*x environment? Are there programs you would like to see written or ported? Do any brokerages, data providers, or other services provide good support for we the few? And finally, what commercial entities do you know of that are using FOSS software in their operation?"

67 of 417 comments (clear)

  1. The best tool... by Anonymous Coward · · Score: 5, Funny

    is a dartboard.

    It's unfortunately not available on most distros, but building yourself isn't too hard.
    The dependencies are merely a wall, and Newton's three laws of motion.

    1. Re:The best tool... by Firehed · · Score: 2, Funny

      Yeah, but it's part of physics.h so get over it.

      --
      How are sites slashdotted when nobody reads TFAs?
    2. Re:The best tool... by martin-boundary · · Score: 2, Funny
      Another option, for those who cannot afford their own wall, is to take a ordinary pack of playing cards, and write the word SELL! in biro on each and every one.

      Then, each day, just pick a random card and follow the instructions...

  2. The NYSE runs linux by phantomcircuit · · Score: 2, Interesting

    SEE

    1. Re:The NYSE runs linux by onefriedrice · · Score: 4, Insightful

      That's nice, but I think he's more interested in analysis and management tools rather than actually running a stock market...

      --
      This author takes full ownership and responsibility for the unpopular opinions outlined above.
    2. Re:The NYSE runs linux by pravuil · · Score: 5, Informative

      That's nice, but I think he's more interested in analysis and management tools rather than actually running a stock market...

      I think you're right. Here's a list of apps from something I just googled.

    3. Re:The NYSE runs linux by Jah-Wren+Ryel · · Score: 3, Insightful

      That's nice, but I think he's more interested in analysis and management tools rather than actually running a stock market...

      In a gold rush, the ones who sell mining tools are the ones who are guaranteed to make a profit.

      --
      When information is power, privacy is freedom.
    4. Re:The NYSE runs linux by raju1kabir · · Score: 2, Insightful

      It's all about the consulting gigs that follow.

      --
      "Patriotism is your conviction that this country is superior to all other countries because you were born in it." -- GBS
    5. Re:The NYSE runs linux by Jah-Wren+Ryel · · Score: 2, Informative

      That comment really makes me wonder, what happens to the person who loans out tools to the gold miners for free ?

      Lol, are you really so out of it that you think *that* is how it works?
      If so, that would probably explain your lack of success in the business.

      The majority of software development money is spent on non-cots/non-shrinkwrap software.
      Nobody loans software, ESPECIALLY to wall-street.

      Whether you write it on contract as Free or as proprietary, the important part is to write it on contract so that you get paid for the work you put in.

      --
      When information is power, privacy is freedom.
  3. Hmmm by Anonymous Coward · · Score: 4, Interesting

    Lehman, Merrill, AIG, HBOS all used lots of FOSS IIRC.

    Screw automated trading; screw Ben Bernanke, screw McCain-Bush. I'm going to be foreclosed because I lost my job in the operations dept at Merrill and I can't refinance my mortgage. Why should they get a bailout? Quants screwed over my life and I want them to pay.

    1. Re:Hmmm by DigitAl56K · · Score: 5, Funny

      Did you lose billions of dollars in the stock market? Don't have enough cash to cover your debts? Call the Federal Reserve hotline! You could have $85bn in your checking account by tomorrow, no collateral or responsibility required! 1-800-FED Call now and we'll start a commission to get investors off your back for free!*

      *offer applies with enrollment in triple advantage and is subject to a vote for John McCain

    2. Re:Hmmm by onefriedrice · · Score: 4, Insightful

      Why screw McCain-Bush (as if the two were related anyway)? The housing bubble, which is undoubtedly the cause of the economic downturn, came about because democrats on capital hill thought every American should be able to live the "American dream," and buy houses which they couldn't afford. They urged the major lenders to to get into sub-prime lending, which they wouldn't have done otherwise because it's terrible risk management. I believe many republicans were also in on this, so at best it's quite bipartisan.

      You can blame a lot on Bush, including the terrible budgeting since that's an executive job, but the economy, not so much. Not unless you're a tool of Nancy Pelosi and Reid. I know it's popular around here to blame everything on Bush, but get the facts. Be enlightened.

      --
      This author takes full ownership and responsibility for the unpopular opinions outlined above.
    3. Re:Hmmm by ObsessiveMathsFreak · · Score: 3, Funny

      Quants screwed over my life and I want them to pay.

      That's the thing. They can't!

      --
      May the Maths Be with you!
    4. Re:Hmmm by CSMatt · · Score: 2, Funny

      screw McCain-Bush

      No thanks.

    5. Re:Hmmm by Anonymous Coward · · Score: 4, Informative

      no collateral or responsibility required!

      Ummm...please check your facts. AIG's assets are collateral and the loan is 11%+. I pay a lot less than than that on the equity lines and mortgages I have with my real estate investments. Sure, it's a bail out, but AIG's going to spend some big bucks paying it back or lose big time.

      Financial Literacy is most people's problem, thus their finances are a problem.

    6. Re:Hmmm by Anonymous Coward · · Score: 5, Insightful

      Well, you have some facts skewed and some misplaced causality.

      In 1999, Republicans wanted less regulation, causing investment banks to make create financial derivatives to hide risk and gain back their margins and bonuses, where normal banks could now compete.

      Second of all, remember Bush touting the "Ownership Economy" where the sub-primes had artificially elevated the percentage of citizen's who lived in homes they owned?

      Hardly sounds like a left-wing plot of the Democrats altering private banks attitude of lending via mind-control.

      Less regulation, market forces, and human animus(greed, aggression, and fear), which if totally unchecked/balanced by other concerns can spell disaster.

    7. Re:Hmmm by Anonymous Coward · · Score: 2, Insightful

      The housing bubble was caused by the de-regulation of the mortgage markets that allowed mortgages to be divided up into little pieces and sold off in the stock market (mortgage-backed securities). In case you didn't know, McCain and Bush are big proponents of deregulation. You may be right (democrats want everyone to have a house and republicans want deregulation) and that's the formula that got us into this mess. As you said, a bipartisan effort made it happen. But you're not giving the republicans all the credit they deserve.

    8. Re:Hmmm by tedu_again · · Score: 2, Insightful

      Next time buy what you can afford.

    9. Re:Hmmm by snilloc · · Score: 3, Informative

      Not only is the interest rate over 11%, but the Feds took a 79.9% equity stake in AIG. The US Taxpayer now owns 80 percent of AIG.

    10. Re:Hmmm by Oswald · · Score: 4, Interesting

      You need to inform yourself. First of all, the housing bubble was primarily fueled by errors on Wall Street, not Washington. The explosive growth of the mortgage-backed security industry created an environment that gave people lots of incentive to do really stupid things, like loan people money without requiring them to invest significantly in what they were purchasing or demonstrate that they had the money to pay back the loan. Secondly, here is just one of many available articles explaining that the really big hit has come from borrowers with good credit ratings and sufficient cash flow who simply do not wish to continue to pay the mortgage on a house that is no longer worth nearly what they paid for it. It turns out that you can default on your mortgage and all they can take is your house, not your other assets (who knew?).

      Anyway, it's certainly not "authoritative," but here is a funny and true cartoon that does a pretty fair job of explaining how the screwed up incentives turned normal people in financial fuck-up machines.

    11. Re:Hmmm by fishbowl · · Score: 3, Interesting

      >Next time buy what you can afford.

      Many did, and then saw the economy collapse around them, changing the nature of "what they can afford".

      Some of these were unable to liquidate their real estate, because to do so would require them to literally pay a mortgage on the amount of money that the property declined by.

      In my case, it has forced me to decline certain job opportunities because relocation is not an option, because of real estate values. (I would not seek, nor do I believe anyone will offer, a $45,000 relocation bonus to start, and that's what it would cost me to walk away from my home, never mind the fact that I like where I'm living and would prefer a *benefit*, not just a break-even proposition, for relocating.)

      My story is not at all uncommon. I'm not bankrupt, but I'm at the threshold. And I have university degrees, more than a decade of experience, and the real estate in question is a modest property.

      --
      -fb Everything not expressly forbidden is now mandatory.
    12. Re:Hmmm by sonsonete · · Score: 5, Funny

      Not to mention that the United States is now the largest sponsor of Manchester United.

      --
      "Folks bent on reinventing the wheel should understand that if it's not round, it ain't a wheel." - Jonah Goldberg
    13. Re:Hmmm by stoolpigeon · · Score: 5, Insightful

      Read this 2003 NY Times article about Republican efforts to increase regulation of Fannie Mae and Freddie Mac. There is plenty of blame to go around. Here's a little snippet from the article:
        Among the groups denouncing the proposal today were the National Association of Home Builders and Congressional Democrats who fear that tighter regulation of the companies could sharply reduce their commitment to financing low-income and affordable housing.

      ''These two entities -- Fannie Mae and Freddie Mac -- are not facing any kind of financial crisis,'' said Representative Barney Frank of Massachusetts, the ranking Democrat on the Financial Services Committee. ''The more people exaggerate these problems, the more pressure there is on these companies, the less we will see in terms of affordable housing.''

      Representative Melvin L. Watt, Democrat of North Carolina, agreed.

      ''I don't see much other than a shell game going on here, moving something from one agency to another and in the process weakening the bargaining power of poorer families and their ability to get affordable housing,'' Mr. Watt said.
       
      I'm not a proponent of either party - and so I think it makes it easier to see that they are both grossly incompetent for the most part.

      --
      It's hard to believe that's how Micronians are made. Why don't we see it right now by having you both kiss one another?
    14. Re:Hmmm by Hal_Porter · · Score: 5, Funny

      Maybe Man U can get Uncle Sam to assign an Apache gunship to defend their goal during matches. God knows they need it.

      --
      echo -e 'global _start\n _start:\n mov eax, 2\n int 80h\n jmp _start' > a.asm; nasm a.asm -f elf; ld a.o -o a;
    15. Re:Hmmm by mdfst13 · · Score: 3, Insightful

      the housing bubble was primarily fueled by errors on Wall Street, not Washington.

      There were three important Washington errors. Washington allowed banks to loan federally insured deposit money to companies with only securities (e.g. securitized mortgages) as a collateral. This put taxpayers on the hook and led to the Bear Stearns bail out.

      The second Washington error was that even with the housing bubble, Washington left the reserve rate (how much banks have to hold of their deposits) at 15% rather than raising it. If they had raised the reserve rate, there would have been less money for loans and banks would have been more careful to whom they loaned it. As it was, banks were over capitalized and desperate to loan money.

      The third Washington error was to make it more difficult to take bankruptcy. As a result, banks were more willing to loan money for over priced houses (figuring that they could grab other assets instead).

      At the worst of the bubble, house prices were sixty percent over priced (using rental values for a comparison). House prices are still thirty percent over priced. They have more to fall before the market stabilizes. Unfortunately, most of the programs that are being launched are aimed at stabilizing house prices. This won't work until houses stop being over priced.

      What Washington should be doing is helping house prices fall. One way that they could do that would be to amend bankruptcy laws back to their previous difficulty and add the ability for judges to adjust the principal of the loan down to the current value of the house. This would allow people to sell their houses after declaring bankruptcy (rather than taking a foreclosure). Too many people can't sell their houses because they owe more than the house is worth.

    16. Re:Hmmm by windsurfer619 · · Score: 5, Insightful

      The federal reserve isn't owned by the US taxpayers. It's a private company.

    17. Re:Hmmm by mi · · Score: 2, Informative

      How is 80% ownership of a failed company good for US Taxpayers...

      Maybe, you need a little more knowledge of Economics in general and this particular sorry situation in particular, uhm? The failure of this company would've left millions of people uninsured, and hundreds of thousands unemployed. Taking it over, breaking it up, and selling the pieces at normal, rather than bankruptcy (a.k.a. firesale) prices seems like a reasonable thing to do.

      I just wish, they would've done better to Lehman Brothers — instead they completely botched trying to sell it to Barkley's and BoFA. Instead of asking the would-be suitors to come up with bids in secrecy, the Feds allowed reps of both to be present in the room at once. Both balked... As a result, Barkley's is now taking over the juiciest pieces of Lehman's assets at a firesale price without assuming any of the liabilities — because Lehman is bankrupt as of Monday. Had they not known (from sitting at the same meeting, that Fed organized), that BoFA is not interested, they might've bet a fair price last Sunday...

      --
      In Soviet Washington the swamp drains you.
    18. Re:Hmmm by rfunches · · Score: 4, Interesting

      You do know a 3-month T-bill was, at one point earlier this week, yielding less than par value? People were buying US government bonds guaranteed to lose money because of the fear that everything else would lose more value.

    19. Re:Hmmm by penix1 · · Score: 4, Insightful

      That's the rub. Many businesses go out of business, some of them more spectacularly than others, and there was no mention of a government bailout of them now was there. It is the same asshats that scream "Free Market" when they perceive a wrong against the corporation that are now screaming to not allow the market to work as it should. AIG knew the market risks when they offered their IPO. Investors knew the risks when they purchased the stock. The company certainly knew the risks when it lobbied Congress to change the laws and lastly the Congress knew the risks when it deregulated everything at the behest of the company. Why should the public be forced to take on the risk these same asshats assumed solely because the asshats screamed "free markets" to get the regulations that would have protected the public voided and the agencies charged with oversight gutted? You didn't see AIG investors protesting the profits they were getting when times where better so why protest when they go belly up? It is corporate welfare pure and simple.

      --
      This is a sig. This is only a sig. Had this been an actual sig you would have been informed where to tune for more sigs.
  4. Web-based vs Desktop vs Palmtop by FraterNLST · · Score: 3, Interesting

    I've started looking at this too as i've picked up some stock recently, and it is a difficult proposition (given that i'm not really willing to pay for a commercial solution).

    Personally, I absolutely love the interface of Google's stock ticker - the interface is nice, the information is top notch. The problem being of course that there's way in any of the nine layers i'd trust google with my portfolio information. The big advantage of a local program in my mind is that the information you put in, even if it is only "I want to track these stocks" is kept wholly to yourself and not stored on some remote server where you have to trust the hoster not to take a peek.

    In the end i've been using the default stock program that came on the iPhone to watch the stock prices. Thats all it will do, that and a short graph history, and it uses the yahoo info instead of the google, but it's close to realtime and it's stored (I hope) on the iPhone. Course, Yahoo can still see which stocks i'm requesting, so maybe in the end it makes no difference.

    Ideal would be a device-based solution that could draw down the information, either from google/yahoo or direct from the *sx, and hold information regarding you portfolio too - but locally, so theres no worry of the monetary values being shunted across the net to the infovores.

    --
    Doublethink is basically the power of holding two contradictory beliefs in one's mind simultaneously, and accepting both
    1. Re:Web-based vs Desktop vs Palmtop by Adambomb · · Score: 2, Insightful

      have no idea what possible use Google (or anyone) could make out of knowing how much of which shares I own

      Here's a freebie, despite not believing that they'd try it. With enough correlated stock portfolios they can get an advance look at the movement of volume for those people or at least project such movement. If the information is significant enough, they can alter their own trading strategies based on the extra statistics.

      Not exactly something to make people stab eyes out, but its still an unethical possible use of such data. The power isn't in knowing YOUR data, it's in knowing a populations data.

      --
      Ice Cream has no bones.
  5. Let me save you the trouble by Anonymous Coward · · Score: 3, Informative

    There is none. You will get lots of recommendations to "hack it" with a hodgepodge of crap like the one you seem to be using right now, but that gets you nowhere.

    There is no quality trading/management trading software on any OS other than Windows that bears even a passing mention.

    Posting AC because people around here tend to get tender and defensive when someone dares suggest that their techno-religious experience is not absolutely perfect for everyone in the planet. Email and surfing the web? Linux is great. This? Don't waste your time and just stick with Windows.

    (cue twitter to tell me how I "hate freedom")

    1. Re:Let me save you the trouble by Xugumad · · Score: 5, Informative

      Areed. I spent 3 months trying to find a good solution. If you've got buckets of money, NxCore ( http://www.nanex.net/NxCore/NxCore.htm - prices start at $500/month) and any of the brokers that support a FIX API (for which you can expect to pay a hefty fee, too; Interactive Brokers (IB - http://www.interactivebrokers.com/ ) for example charge a one time $500 fee, OANDA ( http://www.oanda.com/ ) charge $600 for the first two months then an ongoing subscription fee if you trade $12mil/month or something).

      For those people not wanting to pour money into it, as good as you can get is Interactive Broker's Trader Workstation (TWS), and JBookTrader (http://code.google.com/p/jbooktrader/) or a custom trading platform that talks to their API. TWS is a pain that lacks automated login (for security reasons) and auto-exits every 24 hours (for... err... security reasons?), but it gets the job done. Data feed can be an issue still, though; IB offer up to 100 symbols at a time, and a basic historical data service, but some people dislike the fact they drop price ticks during busy market times (over 10 prices per second) and the historical data service is paced so you can only do a limited of number of requests (about one every ten seconds I believe).

      In short though, AC is right; use Windows, it may well be less painful. Really.

    2. Re:Let me save you the trouble by rubycodez · · Score: 2, Interesting

      Windows runs the low-end personal chickenshit version of everything. Besides Windows, trading firms run trading and trading management software on AIX, HP/UX, Solaris, OS/400, HP NonStop, Open VMS, MVS.....

    3. Re:Let me save you the trouble by jamesswift · · Score: 2, Informative

      Not really. Orc http://www.orcsoftware.com/ is one of the best known trading platforms. It runs back end services on Linux and client apps on both Mac OSX and Windows. The client apps were even originally written for OSX.

      --
      i wish i could stop
  6. EclipseTrader by TheNarrator · · Score: 5, Informative

    EclipseTrader is probably the most advanced open source trading program. It interfaces with some trading platforms and intra-day data feeds. It has several hundred technical indicators. It also is very expandable and easy to write modules for (in Java). I wrote some technical analysis modules for the back-testing system and was fairly impressed with how well it worked as it is based on the very solid OSGI/Eclipse model. I'd say it actually competes fairly well with some of the proprietary trading platforms I have used, especially if you are a Java coder and want to add modules to it to aid in implementing your particular trading style.

    1. Re:EclipseTrader by Anonymous Coward · · Score: 4, Informative

      Last time I tried EcT it consistently crashed on my Gentoo machine without warning, and it consumes unholy amounts of memory. I never trusted it enough to actually use it as a trading platform. For keeping an eye on your accounts and whatnot it's fine, but unless they've made heroic strides in the past five months, it's probably still unstable. And for that particular purpose I can use the excellent only Google interface.

      The community around it is also rather thin, and (IMO) actually downright hostile to recommendations and bug reports.

      Frankly, I'd rather trust being able to burst a sell order to an application that a company has spent a few millions developing and actively supports than to a "community project". So far I haven't had any problems with the former. Sure, I have to dual boot into Windows (no WINE for the one I use, at least not yet), but this is my livelyhood we're talking about.

    2. Re:EclipseTrader by TheNarrator · · Score: 2, Interesting

      Well if you want to go with a proprietary trading tool that runs well on Linux, the "think or swim" trading platform/brokerage has a Java Client that runs on Linux.

  7. Tons of stuff out there: by teknopurge · · Score: 4, Informative

    I understand that the submitter doesn't know what is out there, but if you ever have a trading account you're likely to have API access to your broker's systems. I recommend Interactive Brokers as their TWS software has a lot of different language bindings.

    In finance you don't look for "FOSS" tools, you go to your broker, get API access, and write them yourself.

  8. Re:buy Nortel buy Nortel by actionbastard · · Score: 3, Funny

    I find your views on investing interesting and would like to subscribe to your newsletter.

    --
    Sig this!
  9. Who allows you to trade by computer? by Bromskloss · · Score: 2, Interesting

    Is there anywhere a small can find a computerised market in the first place? Are there firms who allow specifies a communications protocol and lets you to trade by computer or does one have to do web scraping to automate things?

    --
    Swedish plasma phys. PhD student; MSc EE; knows maths, programming, electronics; finance interest; seeks opportunities
  10. Interactive Brokers's Java trading platform (TWS) by Anonymous Coward · · Score: 5, Informative

    Interactive Brokers has a Java-based
    Trader Workstation ("TWS") and they explicitly support Linux. They offer almost anything you can get anywhere, including mutual funds, stocks, options, futures (commodity & financial), currency, and foreign stocks. Commissions are 10x lower than Charles Schwab if you trade often (if you don't then a minimum monthly commission kicks in).

    TWS is a large, cumbersome Java applet, but it works tolerably well on a fast machine (and there's not much alternative on Linux)

    One annoyance is that they only support jdk 1.5.0_x (not the current 1.6.x), I think because of some concurrency bugs in their code (they claim the newer Java is buggy). However TWS generally does work with the latest jdk, but they won't support it.

    IB's telephone support is sometimes rude, the opposite of "hand holding". I guess they have only a few over-worked support people to keep costs down. Also, they only provide on-line statements and never send physical mail except for annual 1099 tax forms. So, be sure your spouse/executor knows you have an IB account, because if you die there will be no monthly statements to clue them!

    In summary, IB is good, despite their warts. If you trade a few times a month or more, it's worth the hassles.

  11. Don't waste your time by tacokill · · Score: 3, Insightful

    Any trading platform is only as good as the data it gets.

    Not to sound like an ass but anyone who is that serious about trading needs to invest in a Bloomberg terminal. If you are just dinking around - that's one thing. But the summary seems to indicate you are looking for a "serious" trading platform. Don't waste your time with FOSS. FOSS has it's place but a trading platform is not it. Go with a proven solution.

    There are plenty of "active trader" platforms out there from a variety of brokers. Most that I have see are Java apps. I run Schwab's web-based active trading on Linux all the time but even it is a simplified version of the real thing.

    Also, one more thing to consider: I would hate to find out that my FOSS trading platform had a bug. If it's bad enough, it could be devastating and totally wipe you out. Do you really want to take on that kind of risk? This really isn't the place to be "testing" your trading platform when real dollars are at stake.

    Now....analysis is a different beast. FOSS might have a place there. I don't know but I see no reason to reinvent the wheel when there are FAR better solutions already out there. I have yet to see anything from FOSS that is compelling. And no -- MS Money/Quicken imitators are NOT what we are talking about here. Not even close.

    1. Re:Don't waste your time by Rasta_the_far_Ian · · Score: 2, Interesting

      anyone who is that serious about trading needs to invest in a Bloomberg terminal [billpapa.org]

      Only if they are either a professional or very well off. AFAIK, a Bloomberg terminal costs $2,000 a month. Of course, the rate may have come down a bit in the last couple of years, but probably not enough for a person trading his / her individual account, unless he/she is quite well off ...

  12. Re:What?! by LingNoi · · Score: 2, Insightful

    Yes you're the only one. The rest of us don't mistake open source to mean some anti-capitalist campaign but rather a way to make and distribute good software.

  13. TD Ameritrade has API by CyrusOmega · · Score: 2, Informative

    I use TD Ameritrade's API (and really nice Java based real-time market tool) which has everything I need for gathering data. Beyond running some perl scripts on the data to generate some basic statistical plots for gnuplot I don't use many other tools. I found that most success in the markets isn't how well you read the past but rather how well you understand the present and can forecast reasonable risk/reward actions.

    I know I don't actually mention any FOSS solutions but as a mostly FOSS user this is how I trade.

  14. Umm... Firefox. Perhaps with Flash. by jellomizer · · Score: 2, Informative

    Being most of this stuff needs a network connection anyways I am sure you will find particular websites that will do the trick. Why do you want to find and download an app, run an update every time the regulations change. Most of the apps for this stuff are so old and usually try to get people to use the web anyways. Don't look for an app when the Web can do the work just as well if not better.

    --
    If something is so important that you feel the need to post it on the internet... It probably isn't that important.
  15. Well, since I develop trading systems on FOSS by Giant+Electronic+Bra · · Score: 5, Informative

    That is the trading system I've spent several years working on is built entirely using Open Source tools and libraries. The system itself is not currently open, but that is a possibility we here certainly look favorably at.

    As far as actual entire free trading systems, there is JavaTraders@googlegroups.com which is a good place to start. Also check out the quickfixj.org site, you will find some things there. There is also an Eclipse plugin which provides some level of GUI.

    Frankly we didn't any of the code in any of those projects (although we do use ta-lib). But as I say, you can do a lot with ActiveMQ, any good open source RDBMS (PostgreSQL,MySQL) and your Enterprise Java framework bits of choice.

    Basically if I were you I'd pick one of the java based projects that is kicking and does roughly what you want, the way you want to do it. For simple basic trading of one or two instrument classes you can probably put together something pretty workable.

    --
    "Malo periculosam, libertatem quam quietam servitutem." -- Jefferson
    1. Re:Well, since I develop trading systems on FOSS by toli · · Score: 2, Informative

      Full disclosure - I am a founder of a startup that develops an open source automated trading platform targeted at institutional investors.

      As was mentioned in above postings, there are a series of open source tools available to bootstrap your trading system development:

      • QuickFIX and QuickFIX/J (I'm also a developer of QFJ project) - a C++ and Java open source implementations of the FIX protocol, the underlying standard protocol for connectivity between financial institutions. Think of it as the HTTP of finance.
      • QuantLib - an open source risk analytics package
      • Esper - an open source complex event processing engine
      • EclipseTrader - Eclipse-based open source trading GUI that's targeted more at retail investors
      • ActiveMQ and AMQP and Qpid for messaging (AMQP standard was initially contributed by JPMorgan)

      And then of course there's my company Marketcetera - we build on top of a lot of the tools mentioned above and others (ActiveMQ, MySQL, Ruby on Rails, QFJ, etc) to provide the basic underlying platform that institutional traders (think quantitative hedge funds) can use to build their proprietary algorithms and start trading. After implementing a few trading systems in a row ourselves for various trading firms we realized that there was an obvious need for an open source trading platform so that people wouldn't have to reinvent the wheel and write systems from scratch every single time.

      To answer the OP's question about which commercial firms use FOSS: - a lot of proprietary trading software is implemented on top of OSS - JPMorgan famously built their trading GUI [PDF] on top of Eclipse, and Progress Apama is built on top of Eclipse RCP as well.

      Not surprisingly, most trading applications are very Windows-heavy (although quite a few companies have Linux clusters, and some exchanges run on Linux as well). Most of the apps that your broker will provide for you to trade with are Windows-only (such as Bloomberg, Goldman Redi, MicroHedge, etc), and a lot of the APIs available from vendors are .NET or COM components and nothing else. We implement our systems mostly in Java (including the Eclipse RCP), thought have connectors for some of the Windows-specific components.

      We know that flexibility is at the heart of any powerful trading application, and we think the open-source model maximizes the ability of our users to control the application. Some think the open-source model is antithetical to the secretive finance industry, but we see it as the perfect fit.

  16. Bush is still culpable by tacokill · · Score: 5, Insightful

    Say what you want about the origins of the problem but there is no doubt whatsoever that regulation of securities (via the SEC) has been totally and 100% completely absent during all of this.

    That, most definitely, happened on Bush's watch. The "laissez-faire" philosophy of the republicans sounds and looks a lot like Hoover right now. They have, literally, let Wall Street run itself. And you can see the end result on the front pages everyday. Whats the saying? Power corrupts and absolute power corrupts absolutely.

    Look, I am no regulation lover but even the staunchest of conservative economists recognize free markets must have some regulation to insure a fair playing field. Under this administration -- there has been NONE.

    Do you realize that many firms were allowed to leverage up 30 to 1? Let me break down what that means for the /. crowd. Say you have a $10 watch. You go to a pawn shop for a loan and they loan you what? I'd say about $5 or so. Certainly something less than the value of the watch, right? Well, on Wall Street lately, they've been getting $300 loans based on that $10 watch.

    That is totally fucked up and should have never happened. End of story.

    1. Re:Bush is still culpable by onefriedrice · · Score: 3, Interesting

      You say that there was no SEC regulation, and that's true. Unfortunately, you have assumed that absence of regulation has been "laissez-faire" (and that it failed), but that is not true.

      What we have had has not been proper regulation, but it has not been "laissez-faire" either because the politicians have been butting in and urging the big boys on Wall Street to make money available to people who couldn't afford their houses! That was the point which I made. As you can see, that's not laissez-faire; that's government meddling with the markets as usual, but this time in a form that isn't regulation.

      So you see, we both agree with each other that there hasn't been proper regulation, but it's unfair to say that "laissez-faire" has failed when it hasn't even really been applied.

      I mean, think about it. It's no coincidence that all of these huge firms which have lasted decades upon decades and have withstood countless trials, including the Great Depression, are now all failing at the same time right now. Under a "laissez-faire" market, that would be one big coincidence.

      --
      This author takes full ownership and responsibility for the unpopular opinions outlined above.
  17. Re:Tech people interested in finance = backwards by X_Bones · · Score: 2, Insightful

    Just because the people you talk to appear to be inexplicably (and idiotically) uninterested in tracking their 401Ks, or watching the stock and options they got from their employer, or trying to make a buck by picking up cheap stock before we start climbing out of this hole, doesn't mean the rest of us are too. Maybe you should take your own advice and update your own worldview.

  18. Re:Interactive Brokers's Java trading platform (TW by Xugumad · · Score: 2, Interesting

    If you're going the Interactive Brokers approach, JBookTrader and JSystemTrader are both worth a look: http://code.google.com/p/jbooktrader/ and http://groups.google.com/group/jsystemtrader

  19. Resources of Linux/Java trading software... by wintermute42 · · Score: 2, Informative

    I have not seen any open source projects that you can use as a platform for building a trading system.

    I have built an intraday (within one day) trading system in Java. I'm afraid that this system is not open source either. This system runs one or more models that look for intraday trading signals. The Java software submits buy and sell orders. It is multi-threaded and runs one thread per stock. I have been very happy with the software performance. A long running "server" like this seems to benefit from Sun's HotSpot compiler. The system is web services based (e.g., it runs on Tomcat).

    I used Interactive Brokers for my market data and order infrastructure. I was concerned about the quality of the Interactive Brokers tick data (the trade by trade data). Interactive Brokers consolidates their tick data feed so you get a consolidated tick about ever 250 msec. For my system this has been adequate. If you want to run on Linux or use Java there are few inexpensive options for real time data feeds. Information may way to be free, but market data is expensive.

    I have some web pages on the alternatives that I explored as platforms for a Java/Linux based trading system. These notes can be found on my web page Software for Constructing a Market Trading System

  20. Because Congress doesn't appoint them by tacokill · · Score: 2, Insightful

    I never reply to AC's but I am making an exception.

    The executive branch appoints people to run institutions like the SEC, FCC, etc. Those people appointed have totally abdicated their responsibility to the people. The entire purpose of the SEC is to make it a "level playing field" with respect to financial disclosure and equity trading. It is not.

    Why? Because nobody in those posts is enforcing ANYTHING. And they haven't for a very long time. Yes, Congress makes the rules. But if nobody enforces them, are they really rules?

  21. Re:You are agreeing! by bnenning · · Score: 2, Informative

    Because the normal regulations were absent! And why were they absent? They were changed... in Washington!

    Those would be the "normal regulations" that brought us Enron, Worldcom, Global Crossing and friends? The Bush Administration has nothing to be proud of, but the concept of corporate fraud was not invented on their watch.

    --
    How to solve most of our problems: 1.Lots of nuclear plants. 2.Cure aging.
  22. Re:doofus by MadMorf · · Score: 3, Interesting

    Wake up and smell the fascism ??? How about, wake up and smell the socialism?

    Uh, how about, "Wake up and smell the Crony Capitalism"?

  23. Re:doofus by Rich0 · · Score: 5, Interesting

    All the little stockholders at AIG are getting the shaft.

    Uh, I think that was a foregone conclusion when they hired inept management.

    It was essential that every stockholder in AIG lose virtually everything they invested. Otherwise it becomes profitable to mismanage your company and let Uncle Sam buy you out.

    I think that some of these resuces were necessary for the good of the greater economy. Sure, they shouldn't be necessary, but regulators messed up and now for the sake of not collapsing into a depression we need to clean up.

    If I were in charge the only thing I'd do differently when doing bailouts like these would be:

    1. Company is 100% taken over.
    2. Stock is declared void. Stockholders get a 1-time eminent domain payment of (value of company assets)-(cost to taxpayers for bailout)/(# shares outstanding). Frankly the stockholders should be happy they don't end up owing money which is what the math certainly will work out to.
    3. Corporate officers arrested and face heavy criminal penalties. Costing the taxpayers billions of dollars needs to be made a serious crime. It is certainly worse than robbing the corner store.
    4. Government runs company in such a way to preserve the general economy.
    5. Eventually company is either dissolved or IPO'ed - with all proceeds going to taxpayers.

    If this were how bailouts worked you wouldn't see too many executives asking for them.

    Don't get me wrong - the preference is in general to let companies just go bankrupt and not interfere. But, if interference is needed for the greater good than this is how it should be done.

  24. Predicted in 99 by copponex · · Score: 5, Informative

    Interesting speech from Senator Dorgan when the bill, Financial Services Modernization Act, was being discussed '99. Those who don't know history...

    "I remember a couple of circumstances that existed more recently. I was not around during the bank failures of the 1930s. I was not around for the debate that persuaded a Congress to enact Glass-Steagall and a range of other protections. But I was here when, in the early 1980s, it was decided that we should expand the opportunities for savings and loans to do certain things. And they began to broker deposits and they took off. They would take a sleepy little savings and loan in some town, and they would take off like a Roman candle. Pretty soon they would have a multibillion-dollar organization, and they would decide they would use that organization to park junk bonds in. We had a savings and loan out in California that had over 50 percent of its assets in risky junk bonds.

    Let me describe the ultimate perversion, the hood ornament on stupidity. The U.S. Government owned nonperforming junk bonds in the Taj Mahal Casino. Let me say that again. The U.S. Government ended up owning nonperforming junk bonds in the Taj Mahal Casino in Atlantic City. How did that happen? The savings and loans were able to buy junk bonds. The savings and loans went belly up. The junk bonds were not performing. And the U.S. Government ended up with those junk bonds.

    Was that a perversion? Of course it was. But it is an example of what has happened when we decide, under a term called modernization, to forget the lessons of the past, to forget there are certain things that are inherently risky, and they ought not be fused or merged with the enterprise of banking that requires the perception and, of course, the reality--but especially the perception--of safety and soundness.

    Last year, we had a failure of a firm called LTCM, Long-Term Capital Management. It was an organization run by some of the smartest people in the world, I guess, in the area of finance. They had Nobel laureates helping run this place. They had some of the smartest people on Wall Street. They put together a lot of money. They had this hedge fund, unregulated hedge fund. They had invested more than $1 trillion in derivatives in this fund--more than $1 trillion in derivatives value.

    Then, with all of the smartest folks around, and all this money, and an enormous amount of leverage, when it looked as if this firm was going to go belly up, just flat out broke, guess what happened. On a Sunday, Mr. Greenspan and the Federal Reserve Board decided to convene a meeting of corresponding banks and others who had an interest in this, saying: You have to save Long-Term Capital Management. You have to save this hedge firm. If you don't, there will be catastrophic results in the economy. The hit will be too big.

    You have this unregulated risky activity out there in the economy, and you have one firm that has $1 trillion in derivative values and enormous risk, and, with all their brains, it doesn't work. They are going to go belly up. Who bears the burden of that? The Federal Government, the Federal Reserve Board.

    We have the GAO doing an investigation to find out the circumstances of all that. I am very interested in this no-fault capitalism that exists with respect to Long-Term Capital Management. Who decides what kind of capitalism is no-fault capitalism? And when and how and is there a conflict of interest here?

    The reason I raise this point is, this will be replicated again and again and again, as long as we bring bills to the floor that talk about financial services modernization and refuse to deal with the issue of thoughtful and sensible regulation of things such as hedge funds and derivatives and as long as we bring bills to the floor that say we can connect and couple, we can actually hitch up, inherently risky enterprises with the core banking issues in this country.

    I hear about fire walls and affiliates, all these issues. I probably know less about them than some others;

  25. Yes, I do realize it by tacokill · · Score: 5, Informative

    Leverage (aka: debt) is key to our economic model. However, that leverage is carefully managed.

    Management of the leverage is what is missing here. NO FIRM should be allowed to leverage up 30:1. (30x your collateral)

    You are comparing apples and oranges.

    And since you went there with LTCM....allow me to quote you a figure, "At the beginning of 1998, the firm had equity of $4.72 billion and had borrowed over $124.5 billion with assets of around $129 billion. It had off-balance sheet derivative positions with a notional value of approximately $1.25 trillion"

    Management of leverage was obviously missing there. 1.25 trillion? That is absolutely totally fucking insane. But because Merriweather was a "smart guy" --- the investment banks let him do this. And it put the entire system at risk.

    That's not supposed to happen. Ever. Yet it did. Do we learn nothing from history?

  26. Re: Personal Stock Streamer by 2ndRateSoul · · Score: 2, Interesting

    While it's not open source you could give Personal Stock Streamer a try:

    http://www.personalstockstreamer.com/

    It's free to use for non-professionals if you use it with your TD AMERITRADE account. There's a VBscript and C++ API for creating your own indicators, reports and extensions.

  27. What you need, my friend... by PvtVoid · · Score: 2, Insightful

    ... is Firefox and an index fund. Dollar-cost averaging is your friend.

  28. No good FOSS trading platform (yet) by chemise · · Score: 3, Insightful

    what FOSS software do you use for financial analysis, trading, system development, and testing in a Un*x environment?

    I am aware of TA-Lib, QuantLib and libraries implementing the FIX protocol to be used in commercial products and private Un*x trading applications.

    Sadly, most people looking for a solid FOSS trading platform will find that they need to roll up their sleeve to get something decent working.

    I have found that software in this area seems quite sparse.

    Indeed. I closely monitor the FOSS community since 1998 for a trading platform. What I observed was a lot of well intended projects, but even to these days, none did reach satisfying maturity.

    I think it relates to under estimation of the complexity. Most project starts with a lot of energy then goes idle because of unattainable short-term goals.

    A general purpose platform will not emerge until someone put coherently together existing building blocks instead of starting yet another weak trading platform from scratch.

    Example of building block is the FIX protocol. Many FIX libraries have matured. Quantlib is another solid example.

    My contribution to the whole picture is TA-Lib. It is a set of functions for people who care about technical analysis (shameless plug).

    \Mario

  29. The Problem is Data by CodeBuster · · Score: 2, Interesting

    As a software engineer, I too share some interest in financial analysis and have researched it off and on over the years with an eye towards developing some of my own analysis tools as a hobby interest. However, I have continually been discouraged by the lack of decent public market data services of the type that would be suitable for feeding to analysis software. The decent market data services all want thousands of dollars per month for their streams so that basically precludes anyone but the trading professionals working for financial services companies or high net worth individuals (HNWI), who have enough at stake to justify the $20,000 per month Bloomberg Terminal, from doing anything more than dabbling. The free services are delayed 20 minutes or more and/or have limits on queries per unit time (usually both and always the query limit) etc that make them unsuited for automated analysis (probably what the companies want, since they are trying to sell you up to their professional streaming services). I stopped after some basic analysis and test programs because I knew that without access to relatively comprehensive streaming data services, much of the value of a more complex automated analysis system would be unrealized. The professional industry is already well served by Bloomberg, Reuters, and other terminal / market data businesses so it really isn't worth trying to compete against them professionally by starting a company (the existing services have a massive head start and are already firmly entrenched and unlikely to be unseated and the company would need millions to get off the ground in any case since exchanges are not going to give a new firm any breaks on prices they charge Bloomberg and other firms for access to the live streams). In the end I learned enough about finance to do my own research and analysis manually with the assistance of some basic tools that I cobbled together for myself and that is basically all there is to be done about it unless you want to get serious and plunk down the big bucks for access to the professional data services (you have $20,000 per month to burn?).

  30. not really by Trepidity · · Score: 4, Informative

    It's a complicated public/private structure, and basically anything less than a book-length explanation of it oversimplifies in one way or another. It's the de facto U.S. central bank, and the main federal agency regulating banking, but also has significant private components. Its funding sources are technically ownership and fees by various private banks, but restricted in such ways that it's de facto more like government regulation and bank taxes than ownership and fees between private entities. Its board of governors are appointed by the President, and confirmed by the Senate. It's also effectively an operational arm of the U.S. Treasury for everything from tax collection to paper-money supply to treasury-bond issuance and interest payments.

    More to the point, its solvency is implicitly guaranteed by the U.S. government, much like that of Fannie Mae and Freddie Mac were (and those two quasi-private entities were actually de facto considerably more private than the Fed is).

  31. The Fundamental Problem with FOSS for Finance by Ben+Fitzgerald · · Score: 2, Interesting
    I did a review of FOSS software with a specific view towards use in trading environments etc. a while back as one of the features in Hedge Fund Technology magazine. Whilst there were a few projects out there, our fundamental conclusion (which in hindsight makes great sense) was this:

    Fundamentally FOSS and financial trading software are incompatible concepts. IE if you develop any software product of tangible use and value then it does not make sense for the author to leave it as a free product - when you can be making money out of it (and generally substantial amounts).

    This was the pattern we saw. Many developers had started projects with good intentions, and as training exercises for themselves etc. but then after that they usually branched off to create a commercial product, or were hired by a financial institution which usually includes confidentiality in the contract.

    Projects like EclipseTrader are a progression, but are quite a way behind the edge in terms of functionality - they are recreating tools which were commercial products some ten years ago - which is not to say it is not a useful tool, which it is.

    It is the same reason that market data (share prices etc) is generally quite expensive in real time, but often free after 15 minutes. It is a bit like knowing who is the winner of a horse race - 5 minutes makes a big difference to the value of the information! For academic purposes, exchanges like Euronext (LIFFE) will provide tic level data all the way back if you ask nicely.

    If you invented a trading system which could be shown to help generate a good income & profits - would you give it away for free?

    - if you do please send me a copy!

    Ben

  32. Re: Personal Stock Streamer by rla3rd · · Score: 2, Interesting

    Ummm, this looks like a windows app. The poster is looking for linux ones.