nozle.margin and call GET /api/v1/margin/*.
Methods
Date filters
All methods accept optionalfrom and to strings. Additional string query parameters are forwarded as provided.
Trend granularity
granularity accepts hour, day, week, or month and defaults to day.
Result typing
Version0.4.0 returns margin payloads as unknown; narrow them in your application or validate them with your schema library before use.
The Margin Simulate API is not exposed by the Node SDK in version
0.4.0. Call the Margin simulate API directly from your backend when needed.