account
¤
LiveAccount
¤
LiveAccount(api: LiveAPI, **kwargs)
Bases: Account
Parameters:
-
api
(LiveAPI
) –description
-
**kwargs
(dict
, default:{}
) –Mirror of lettrade.account.Account().
Source code in lettrade/exchange/live/account.py
18 19 20 21 22 23 24 25 26 27 28 29 |
|
account_refresh
¤
account_refresh()
Refresh account balance
Source code in lettrade/exchange/live/account.py
53 54 55 56 57 58 59 60 61 |
|
next
¤
next()
Next account
Source code in lettrade/account/account.py
73 74 |
|
next_next
¤
next_next()
Call after strategy.next()
Source code in lettrade/account/account.py
76 77 78 |
|
risk
¤
Risk calculation
Source code in lettrade/account/account.py
87 88 89 90 91 |
|
start
¤
start()
Start live account by load account info from API
Source code in lettrade/exchange/live/account.py
34 35 36 37 38 |
|
stop
¤
stop()
Stop account
Source code in lettrade/account/account.py
80 81 82 83 84 85 |
|