Skip to main content

SellerStrategy

@totemsdk/edge


@totemsdk/edge / SellerStrategy

Interface: SellerStrategy

Applications supply seller-side bargaining intelligence.

The input proposal is the current head from the buyer's perspective. The seller may accept it, reject it, or counter with new terms.

Methods

evaluate()

evaluate(context): Promise<{ action: "accept"; } | { action: "reject"; reason?: string; } | { action: "counter"; terms: TradeTerms; }>

Parameters

context
history

TradeProposal[]

negotiationId

string

proposal

TradeProposal

termsHashes

string[]

Returns

Promise<{ action: "accept"; } | { action: "reject"; reason?: string; } | { action: "counter"; terms: TradeTerms; }>