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 negotiation/maker/negotiator.ts:175

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 negotiation/maker/negotiator.ts:250

Returns: undefined | string


listen

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

Defined in negotiation/maker/negotiator.ts:190

Parameters:

NameType
portnumber
hostname?undefined | string

Returns: Promise‹void›