yajsapi - JavaScript high-level API
Yagna Contributor Guide

Class: MarketStrategy

yajsapi / Exports / executor/strategy / MarketStrategy

Class: MarketStrategy

executor/strategy.MarketStrategy

Table of contents

Constructors

Methods

Constructors

constructor

new MarketStrategy()

Methods

decorate_demand

decorate_demand(demand): Promise

Parameters

Name

Type

demand

DemandBuilder

Returns

Promise

Defined in

yajsapi/executor/strategy.ts:24

score_offer

score_offer(offer, history?): Promise

Parameters

Name

Type

offer

OfferProposal

history?

ComputationHistory

Returns

Promise

Defined in

yajsapi/executor/strategy.ts:26