generated from lucien/api-template
Fixed data access
This commit is contained in:
parent
e7970f953d
commit
05c9f5226e
1 changed files with 1 additions and 1 deletions
|
@ -61,7 +61,7 @@ if __name__ == "__main__":
|
||||||
|
|
||||||
for shareholder in shareholders:
|
for shareholder in shareholders:
|
||||||
shareId = randint(0, len(shares) - 1)
|
shareId = randint(0, len(shares) - 1)
|
||||||
buyShare(shareholder["id"], shareId, shares[shareId][price] + randint(-20, 20))
|
buyShare(shareholder["id"], shareId, shares[shareId]["price"] + randint(-20, 20))
|
||||||
|
|
||||||
sleep(30)
|
sleep(30)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue