ZQFClient helper methods
Use the ZQFClient.from helper to create a ZQFClient instance from quoteState and optional pageState for current interval resolution.
Construction
ZQFClient.from(source, options?)
Use ZQFClient.from(source, options?) to create a ZQFClient instance from a quoteState object or getter. You can also provide pageState when your implementation needs current interval resolution.
Signature
static from(
source: object | (() => object),
options?: {
pageState?: object | (() => object)
}
): ZQFClient
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| source | object | (() => object) | Yes | quoteState object or getter returning quoteState. |
| options.pageState | object | (() => object) | No | pageState object or getter. Used for current interval resolution. |
For different helper methods, see:
For return events, see Return events.
For sample code, Sample code for ZQFClient helper methods.