Portfolio creation and subscription to traders
Subscriptions contract managers subscription to traders and compiles them into a portfolio. You can see it’s code here
You can take a look at the demo version of the contract performance here
Portfolio creation happens in several stages:
- Investor chooses Assets and Profit/Risk ratio and sends these parameters to the AI&
1.1 AI finds traders according to the set criteria and offers them to Investor.
2. Investor reviews offered traders and subscribes to them sending a transaction
subscriptionsContract.subscribe(uint[] _traderIds)
Link here
3. After that an Investor can find his portfolio in blockchain
subscriptionsContract.getTraders(address _investor)
Link here
Also, Investor can always delete traders that doesn’t perform well enough from his portfolio
subscriptionsContract.unsubscribeunsubscribe(uint[] _traderIdsForUnsubscribe)
Link here
Thus, all the operations performed during portfolio compilation are stored in blockchain and do not involve third parties.