Class: GeometricKandelLib
Title
Management of a single Kandel instance.
Constructorsβ
constructorβ
β’ new GeometricKandelLib(params
): GeometricKandelLib
Creates a KandelLib object to perform static calls toward a KandelLib.
Parametersβ
Name | Type | Description |
---|---|---|
params | Object | The parameters used to create an instance. |
params.address | string | The address of the KandelLib instance. |
params.signer | Signer | The signer used to interact with the KandelLib instance. |
params.market | KeyResolvedForCalculation | The key data about the market. |
params.kandelLibInstance? | GeometricKandel | A KandelLib instance to inject. If not provided, a new one will be created. |
Returnsβ
A new KandelLib.
Defined inβ
@mangrovedao/mangrove.js/src/kandel/geometricKandel/geometricKandelLib.ts:22
Propertiesβ
kandelLibβ
β’ kandelLib: GeometricKandel
Defined inβ
@mangrovedao/mangrove.js/src/kandel/geometricKandel/geometricKandelLib.ts:11
marketβ
β’ market: KeyResolvedForCalculation
Defined inβ
@mangrovedao/mangrove.js/src/kandel/geometricKandel/geometricKandelLib.ts:12
Methodsβ
createPartialGeometricDistributionβ
βΈ createPartialGeometricDistribution(params
): Promise
<OfferDistribution
>
Parametersβ
Name | Type |
---|---|
params | Object |
params.from | number |
params.to | number |
params.baseQuoteTickIndex0 | number |
params.baseQuoteTickOffset | number |
params.firstAskIndex | number |
params.bidGives | undefined | BigSource |
params.askGives | undefined | BigSource |
params.pricePoints | number |
params.stepSize | number |
Returnsβ
Promise
<OfferDistribution
>
Defined inβ
@mangrovedao/mangrove.js/src/kandel/geometricKandel/geometricKandelLib.ts:35
createFullGeometricDistributionβ
βΈ createFullGeometricDistribution(params
): Promise
<GeometricKandelDistribution
>
Parametersβ
Name | Type |
---|---|
params | Object |
params.baseQuoteTickIndex0 | number |
params.baseQuoteTickOffset | number |
params.firstAskIndex | number |
params.bidGives | undefined | BigSource |
params.askGives | undefined | BigSource |
params.pricePoints | number |
params.stepSize | number |
Returnsβ
Promise
<GeometricKandelDistribution
>
Defined inβ
@mangrovedao/mangrove.js/src/kandel/geometricKandel/geometricKandelLib.ts:84