Api¤
hl.Api
¤
Api(
*,
info: Info,
exchange: Exchange,
ws: Ws,
universe: Universe,
account: Account | None = None,
)
The Api class provides access to the info, exchange, and ws endpoints.
Warning: Do not instantiate Api directly. Use Api.create instead.
Attributes:
Name | Type | Description |
---|---|---|
info |
Info
|
The info endpoint. |
exchange |
Exchange
|
The exchange endpoint. |
ws |
Ws
|
The websocket endpoint. |
universe |
Universe
|
The universe of assets available on the exchange. |
account |
Account | None
|
The account to use for authentication. |
Methods:
Name | Description |
---|---|
create |
Create an Api instance. |