Trader
- class Trader(http: IHttp)
- gainers_losers(*, time_frame: str | None = '1W', sort_by: str | None = 'PnL', sort_type: str | None = 'desc', offset: int | None = 0, limit: int | None = 10) list
The API provides detailed information top gainers/losers
- Parameters:
time_frame – The time frame for the data (e.g., ‘24h’, ‘7d’).
limit – The number of results to return.
- seek_by_time(*, address: str, tx_type: str | None = 'swap', sort_type: str | None = 'desc', offset: int | None = 0, limit: int | None = 100, before_time: int | None = 0, after_time: int | None = 0) dict
Get list of trades of a trader with time bound option.
- Parameters:
address – The address of the trader.
tx_type – The type of transaction.
offset – The offset.
limit – The limit.
before_time – Specify the time seeked before using Unix timestamps in seconds
after_time – Specify the time seeked after using Unix timestamps in seconds