Skip to main content
Show earnings information.

Signature

VastAI.show_earnings(
    quiet: bool = False,
    start_date: Optional[str] = None,
    end_date: Optional[str] = None,
    machine_id: Optional[int] = None
) -> list[dict]

Parameters

quiet
bool
only display numeric ids
start_date
Optional[str]
start date and time for report. Many formats accepted
end_date
Optional[str]
end date and time for report. Many formats accepted
machine_id
Optional[int]
Machine id (optional)

Returns

list[dict]

Example

from vastai import VastAI

client = VastAI(api_key="YOUR_API_KEY")
result = client.show_earnings()
print(result)