api
¤
CCXTAPI
¤
CCXTAPI(
exchange: int,
key: str,
secret: str,
currency: str = "USDT",
ccxt: CCXTAPIExchange | None = None,
**kwargs
)
Bases: LiveAPI
CCXT API
Parameters:
-
exchange
(int
) –description
-
key
(str
) –description
-
secret
(str
) –description
-
ccxt
(CCXTAPIExchange | None
, default:None
) –description. Defaults to None.
Source code in lettrade/exchange/ccxt/api.py
197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 |
|
account
¤
account() -> dict
Source code in lettrade/exchange/ccxt/api.py
264 265 266 267 268 269 270 271 272 273 274 |
|
execution_get
¤
Source code in lettrade/exchange/ccxt/api.py
323 324 |
|
executions_get
¤
Source code in lettrade/exchange/ccxt/api.py
315 316 317 318 319 320 321 |
|
executions_total
¤
Source code in lettrade/exchange/ccxt/api.py
307 308 309 310 311 312 313 |
|
init
¤
init(**kwargs)
Source code in lettrade/exchange/live/api.py
21 22 |
|
order_close
¤
order_close(order: CCXTOrder)
Source code in lettrade/exchange/ccxt/api.py
297 298 |
|
order_open
¤
order_open(order: CCXTOrder, **kwargs)
Source code in lettrade/exchange/ccxt/api.py
277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 |
|
orders_get
¤
orders_get(**kwargs)
Source code in lettrade/exchange/ccxt/api.py
303 304 |
|
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
¤
orders_total()
Source code in lettrade/exchange/ccxt/api.py
300 301 |
|
position_close
¤
position_close(position: CCXTPosition, **kwargs) -> dict
Source code in lettrade/exchange/ccxt/api.py
347 348 |
|
position_update
¤
position_update(
position: CCXTPosition,
sl: float | None = None,
tp: float | None = None,
**kwargs
) -> dict
Source code in lettrade/exchange/ccxt/api.py
338 339 340 341 342 343 344 345 |
|
positions_get
¤
Source code in lettrade/exchange/ccxt/api.py
335 336 |
|
positions_total
¤
Source code in lettrade/exchange/ccxt/api.py
327 328 329 330 331 332 333 |
|
CCXTAPIExchange
¤
CCXTAPIExchange(
exchange: str,
key: str,
secret: str,
options: dict | None = None,
type: Literal["spot", "margin", "future"] = "spot",
sandbox: bool = True,
verbose: bool = False,
**kwargs
)
Single instance across multiprocessing. Help pickle-able result and send across multiprocessing
Source code in lettrade/exchange/ccxt/api.py
49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 |
|