Unofficial Trading212 API
Project description
Trading212 API
Unofficial API for Trading212 broker.
###Usage
trading212 = Trading212('your_email', 'password', mode=Mode.DEMO, save_cookies=True)
market_order = trading212.execute_order(MarketOrder(instrument_code="AMZN_US_EQ", quantity=2))
limit_order = trading212.execute_order(
LimitOrder(instrument_code="AMZN_US_EQ", quantity=2, limit_price=3000, time_validity=TimeValidity.DAY))
stop_order = trading212.execute_order(
StopOrder(instrument_code="AMZN_US_EQ", quantity=2, stop_price=4000, time_validity=TimeValidity.GOOD_TILL_CANCEL))
stop_limit = trading212.execute_order(
StopLimitOrder(instrument_code="AMZN_US_EQ", quantity=2, limit_price=3000, stop_price=4000,
time_validity=TimeValidity.GOOD_TILL_CANCEL))
trading212.get_funds()
trading212.get_orders()
trading212.cancel_order(14238041)
v0.0.1
* Initial release
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pytrading212-0.0.1.tar.gz
(1.6 kB
view hashes)