b27d78a17fe77a9e49cfceec3ae01feeecd2652a,faig.py,,,#,23

Before Change


        spreadbet_acc_id = str(i["accountId"])

//SET SPREAD BET ACCOUNT AS DEFAULT
r = igclient.update_session({"accountId":spreadbet_acc_id,"defaultAccount": "True"})
//ERROR about account ID been the same, Ignore! 

//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////END OF LOGIN CODE////////////////////////////////////////////////////////////////////////////////

After Change


        spreadbet_acc_id = str(i["accountId"])
        igclient.accountId = spreadbet_acc_id

subscription = igstream.Subscription(
    mode="DISTINCT",
    items=["TRADE:"+str(igclient.accountId)],
    fields=["OPU"])

def on_item_update(item_update):
    print(item_update)
igstreamclient.subscribe(subscription=subscription, listener=on_item_update)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: tg12/FAIG
Commit Name: b27d78a17fe77a9e49cfceec3ae01feeecd2652a
Time: 2018-02-20
Author: mjcollier@gmail.com
File Name: faig.py
Class Name:
Method Name:


Project Name: AlexsLemonade/refinebio
Commit Name: ccad96ea03e77dbce00423f339e7bec58159187a
Time: 2019-12-27
Author: arielsvn@gmail.com
File Name: api/data_refinery_api/views.py
Class Name: DatasetView
Method Name: perform_update


Project Name: tg12/FAIG
Commit Name: 0b0bf6e989fdad2d12263ca9cbf80bba9dd4fe30
Time: 2018-02-27
Author: tg12@users.noreply.github.com
File Name: faig.py
Class Name:
Method Name: