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
) -> str

Parameters

quiet
bool
default:"False"
quiet
start_date
Optional[str]
start_date
end_date
Optional[str]
end_date
machine_id
Optional[int]
machine_id

Returns

str — Result from the API call.

Example

from vastai import VastAI

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