A complete trading platform to modify (python)

Added by Otto about 1 year ago

To everyone who is trying to build their own trading platform.

A while ago I created my very own Nordnet platform that I got certified with. However, I've never been able to actually find a perfect trading strategy so I've decided to share my platform. I asked Nordnet support a while ago if this would be okay and they say yes. Even if you don't want to use the entire platform, you might be able to get some hints / trix on some of the more common questions I see in this forum (e.g. how to handle the trade feed, how to login, etc.).

Hope you will find it useful, and good luck to you all with your trading.

You can find the code here:
https://github.com/ottve507/APNn


Replies (3)

RE: A complete trading platform to modify (python) - Added by Emil 3 months ago

Hey, I love the platform that you made. Really easy to follow what you had done and see how things works. I just wonder if you have some basic trading strategy coded on the platform because my program doesnt make any trades

RE: A complete trading platform to modify (python) - Added by Emil 3 months ago

{ 'available_funds': 1000000.0,
'current_orders': False,
'exception': 'none',
'have_positions': False,
'rivh': True,
'rprf': True,
'rpuf': True,
'stop_loss': { 'initial_total_portfolio_value': 1000000.0,
'last_order': datetime.datetime(2000, 1, 1, 1, 1, 1, 1),
'no_big_loss': True,
'total_portfolio_value_morning': 1000000.0}} { '10111': { 'ask1': 0.0,
'ask2': 0.0,
'ask3': 0.0,
'ask4': 0.0,
'ask5': 0.0,
'ask_volume1': 0,
'ask_volume2': 0,
'ask_volume3': 0,
'ask_volume4': 0,
'ask_volume5': 0,
'bid1': 0.0,
'bid2': 0.0,
'bid3': 0.0,
'bid4': 0.0,
'bid5': 0.0,
'bid_volume1': 0,
'bid_volume2': 0,
'bid_volume3': 0,
'bid_volume4': 0,
'bid_volume5': 0,
'current_ask': 0,
'current_ask_volume': 0,
'current_bid': 0,
'current_bid_volume': 0,
'current_last': 0,
'identifier': '101',
'indicator': { 'SMA10': 0.0,
'SMA5': 0.0,
'updated_at': datetime.datetime(2000, 1, 1, 1, 1, 1, 1)},
'isin': 'SE0000108656',
'market_id': 11,
'position_acq_price': 0,
'position_qty': 0}}

this is my output in the console

RE: A complete trading platform to modify (python) - Added by Otto 2 months ago

Hi Emil,

I think I had a moving average strategy first that I implemented. In general it is difficult to try strategies in the developer portal as there is not much activity. You basically just need to try to understand how to execute trades, and then be very thorough with your code when you launch it in production.

When I had it in production I tried various pairing strategies, but they didn't work out as well as I would have hoped.

If you want to chat, I check twitter more often (@ottovelander).

Good luck.

(1-3/3)