Skip to main content
Margin methods are synchronous and available under nozle.margin.

Methods

All non-None keyword arguments are forwarded as string query parameters. Use the parameter names expected by your deployed API.

Trend granularity

granularity accepts hour, day, week, or month and defaults to day.

Result typing

Margin responses are typed as Any in v0.4.0. Validate or narrow them before relying on their fields.
The Margin Simulate API is not exposed by the Python SDK in v0.4.0. Call the Margin simulate API directly from your backend.