Version: next

HttpService

A simple express HTTP service to allow takers to access the maker's orders.

Hierarchy

  • HttpService

Index

Constructors

Methods

Constructors

constructor

+ new HttpService(getOrderById: function, getExecutionParams: function, takeOrder: function, getOrderByTradingPair: function): HttpService

Defined in src/negotiation/maker/maker_negotiator.ts:173

Parameters:

getOrderById: function

▸ (orderId: string): Order | undefined

Parameters:

NameType
orderIdstring

getExecutionParams: function

▸ (): ExecutionParams

takeOrder: function

▸ (swapId: string, order: Order): void

Parameters:

NameType
swapIdstring
orderOrder

getOrderByTradingPair: function

▸ (tradingPair: string): Order | undefined

Parameters:

NameType
tradingPairstring

Returns: HttpService

Methods

getUrl

getUrl(): undefined | string

Defined in src/negotiation/maker/maker_negotiator.ts:248

Returns: undefined | string


listen

listen(port: number, hostname?: undefined | string): Promise‹void›

Defined in src/negotiation/maker/maker_negotiator.ts:188

Parameters:

NameType
portnumber
hostname?undefined | string

Returns: Promise‹void›