Indeed
. As with other topics like startups, self-driving cars, biological immortality and mars colonization, in Switzerland I always get stuck at the why, and hardly ever get to discuss the how. Which - as a side note - is the reason I tend to bet on the US economy.
Yes, I have been using the Alpaca API for 3 years now. At the very beginning I sent an inquiry to SIX, asking if an individual could get access to their FIX API (I see they now have a new web API). Someone even called me back at the time, but it became quickly apparent that SIX was not a good fit
.
I then looked at IBKR’s API offerings: 3 years ago they didn’t have a web API either. You could either implement their own format or use their Trader Workstation (TWS) for automation.
Then I looked at Meta Trader: Many non-US brokers offer a MetaTrader account, as did FlowBank. FlowBank also had their own REST API, where I made my first real attempts, but it was buggy and not very well documented.
Then I found metaAPI, which allowed programmatic access to any broker offering a MetaTrader account. I did a proof of concept with Admirals. They offered 200:1 leverage to Swiss clients and were regulated neither in the EU nor the US.
The first broker I found with a modern and well documented web (REST) API was IG. All my previous attempts took me weeks just to get anything working at all. With IG I was up and running within 1-2 days.
At about that time I became more aware of the fundamental conflict of interest that CFD brokers have, and that you are not actually owning the stocks you buy there. I did one more experiment with Capital.com, which has an even more modern REST API. But I knew I wanted a US-broker eventually.
Then I found Alpaca, and not only were they US-regulated and accepted Swiss customers, they also offered real time market data for 99$/month, by far the best offer I’m aware of. Actually the only other company with prices on their website I found was DataBento.
While saving up for 25k to qualify for daytrading, I used the market data API to build my own data visualization tools. Afterwards I built my own UI for manual trading, because I was frustrated with all the other broker platforms and TradingView. Everything seemed to take way too many clicks, and visualization of trading volume was only rudimentary. And the support for 24/5 trading is not where I would like it to be.
I’m still looking for a provider to offer access to level 2 data for NYSE and NASDAQ (order books). Haven’t found that so far.
My discretionary trading has not been going well so far (from a financial perspective). So the current plan is to come up with a more conservative mechanical strategy that could run fully automated. Something like my own top 100 ETF, maybe combined with option selling for entry points when the market dips, or some dynamic margin usage.