generated from lucien/api-template
Increase sleep duration in share emission and purchase logic to 30 seconds
This commit is contained in:
parent
df6417e3ea
commit
9b0985c33c
2 changed files with 2 additions and 2 deletions
|
@ -47,5 +47,5 @@ if __name__ == "__main__":
|
||||||
for i in range(randint(0, 4)):
|
for i in range(randint(0, 4)):
|
||||||
emitShare(randint(0, len(companies) - 1), price)
|
emitShare(randint(0, len(companies) - 1), price)
|
||||||
|
|
||||||
sleep(4)
|
sleep(30)
|
||||||
|
|
||||||
|
|
|
@ -62,5 +62,5 @@ if __name__ == "__main__":
|
||||||
shareId = randint(0, len(shares) - 1)
|
shareId = randint(0, len(shares) - 1)
|
||||||
buyShare(randint(0, len(shareholders) - 1), shareId, shares[shareId]["price"] + randint(-20, 20))
|
buyShare(randint(0, len(shareholders) - 1), shareId, shares[shareId]["price"] + randint(-20, 20))
|
||||||
|
|
||||||
sleep(4)
|
sleep(30)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue