api
¤
LiveAPI
¤
LiveAPI(**kwargs)
Bases: ABC
Source code in lettrade/exchange/live/api.py
18 19 |
|
account
abstractmethod
¤
account() -> dict
Source code in lettrade/exchange/live/api.py
65 66 67 |
|
bars
abstractmethod
¤
bars(
symbol,
timeframe,
since: int | datetime | None = 0,
to: int | datetime | None = 1000,
) -> list[list]
Source code in lettrade/exchange/live/api.py
48 49 50 51 52 53 54 55 56 |
|
execution_get
abstractmethod
¤
Source code in lettrade/exchange/live/api.py
128 129 130 |
|
executions_get
abstractmethod
¤
Source code in lettrade/exchange/live/api.py
119 120 121 122 123 124 125 126 |
|
executions_total
abstractmethod
¤
Source code in lettrade/exchange/live/api.py
110 111 112 113 114 115 116 117 |
|
heartbeat
¤
heartbeat() -> bool
Source code in lettrade/exchange/live/api.py
34 35 36 |
|
init
¤
init(**kwargs)
Source code in lettrade/exchange/live/api.py
21 22 |
|
market
abstractmethod
¤
Source code in lettrade/exchange/live/api.py
39 40 41 |
|
markets
abstractmethod
¤
Source code in lettrade/exchange/live/api.py
43 44 45 |
|
multiprocess
classmethod
¤
multiprocess(kwargs: dict, **other_kwargs)
Source code in lettrade/exchange/live/api.py
14 15 16 |
|
order_close
abstractmethod
¤
Source code in lettrade/exchange/live/api.py
96 97 98 |
|
order_open
abstractmethod
¤
order_open(**kwargs) -> dict
Source code in lettrade/exchange/live/api.py
88 89 90 |
|
order_update
abstractmethod
¤
Source code in lettrade/exchange/live/api.py
92 93 94 |
|
orders_get
abstractmethod
¤
Source code in lettrade/exchange/live/api.py
79 80 81 82 83 84 85 86 |
|
orders_history_get
¤
orders_history_get(
id: str | None = None,
since: datetime | None = None,
to: datetime | None = None,
**kwargs
) -> list[dict]
Source code in lettrade/exchange/live/api.py
100 101 102 103 104 105 106 107 |
|
orders_total
abstractmethod
¤
Source code in lettrade/exchange/live/api.py
70 71 72 73 74 75 76 77 |
|
position_close
abstractmethod
¤
position_close(position: LivePosition, **kwargs) -> dict
Source code in lettrade/exchange/live/api.py
156 157 158 |
|
position_update
abstractmethod
¤
position_update(
position: LivePosition,
sl: float | None = None,
tp: float | None = None,
**kwargs
) -> dict
Source code in lettrade/exchange/live/api.py
146 147 148 149 150 151 152 153 154 |
|
positions_get
abstractmethod
¤
Source code in lettrade/exchange/live/api.py
142 143 144 |
|
positions_total
abstractmethod
¤
Source code in lettrade/exchange/live/api.py
133 134 135 136 137 138 139 140 |
|
start
¤
start(exchange: LiveExchange)
Source code in lettrade/exchange/live/api.py
24 25 |
|