Automatic trading by web-crawling.

Discussion in 'Automated Trading' started by jk90029, Apr 15, 2016.

  1. Dear-

    Even though I am a beginner in IB, there was some progress in automatic trading.

    Instead of API, we used selenium with C# to

    1) connect and login in IB paper account.
    2) get current positions
    3) deliver order matrix (prepared by other program in local PC) to IB server.

    ***************************************

    1) and 2) are successful, but 3) is almost done.

    Without use of API (such as in Python), web-crawling is second choice.
    But the speed of delivery was much slower than API like IBPy, so that future/option traders may not be recommended to use. But equity traders (such as myself) is OK.

    However, in addition to IB, we can easily apply the above web-crawling to Japan market, Europe market and China market, since all brokers in any country provide web-connection and some broker does NOT provide their API.
    Please note that 100 brokers have 100 different APIs but 100 brokers provide standard HTML5 (common http protocol) with recent technology.

    As a beginner, what is difference between position and portfolio in IB screen?
     
    Last edited: Apr 15, 2016
  2. In China main market, it is NOT allowed for foreigner to open brokerage account and trade, unlike most countries (US, Europe, Japan). But in few years later, we guess that China will open the market to foreigner, as before like Japan, Taiwan and Korea.

    Does anyone know how and where to open and use PAPER ACCOUNT in China main broker, to try trading by the above web-crawling?

    Do I have to fly to China myself to open PAPER ACCOUNT?
     
    Last edited: Apr 15, 2016
  3. As a private person you cannot open a local brokerage account in China unless you at least have a residence permit, which requires you to have a local employer there. And for a professional account you need a company and valid asset management license. So the road is quite far to travel if you want to trade directly in the local market.
     
  4. Yours might be true this year. Please note that someone with valid US Diver License and SSN can open IB account thru internet-connection, even though he has NO US residence pemit or NO US employer, and even he does NOT stay in US. Also US citizen who stay in Japan can open Japan brokerage account.

    Of course China still keeps NO open-capitalism like most countries. However, since Japan/Singapore/Taiwan/Korea starts open-capitalism roughly at the time of $7000 average income, China may start open-capitalism soon at the time of $7000 soon.

    At this time, I hope to have experience to try web-trading, with use of China PAPER ACCOUNT only.