G
G
Golem SDK
Search…
yapapi - Python high-level API
yajsapi - JavaScript high-level API
Yagna Contributor Guide
Powered By GitBook
Class: LeastExpensiveLinearPayuMS
yajsapi / Exports / executor/strategy / LeastExpensiveLinearPayuMS

Class: LeastExpensiveLinearPayuMS

executor/strategy.LeastExpensiveLinearPayuMS

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new LeastExpensiveLinearPayuMS(expected_time_secs?, max_fixed_price?, max_price_for?)
Parameters
Name
Type
Default value
expected_time_secs
number
60
max_fixed_price?
number
undefined
max_price_for?
Map<Counter, number>
undefined
Defined in

Properties

_expected_time_secs

Private _expected_time_secs: number
Defined in

_max_fixed_price

Private Optional _max_fixed_price: number
Defined in

_max_price_for

Private Optional _max_price_for: Map<Counter, number>
Defined in

Methods

decorate_demand

decorate_demand(demand): Promise
Parameters
Name
Type
demand
Returns
Promise
Defined in

score_offer

score_offer(offer, history?): Promise
Parameters
Name
Type
offer
history?
Returns
Promise
Defined in
Last modified 6d ago