Signature
Parameters
Optional[str]
start date and time for report. Many formats accepted
Optional[str]
end date and time for report. Many formats accepted
Optional[int]
Machine id (optional)
Returns
list[dict]
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
VastAI.show_earnings(
start_date: Optional[str] = None,
end_date: Optional[str] = None,
machine_id: Optional[int] = None
) -> list[dict]
list[dict]
from vastai import VastAI
client = VastAI(api_key="YOUR_API_KEY")
result = client.show_earnings()
print(result)