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:
| Name | Type |
|---|---|
orderId | string |
▪ getExecutionParams: function
▸ (): ExecutionParams
▪ takeOrder: function
▸ (swapId: string, order: Order): void
Parameters:
| Name | Type |
|---|---|
swapId | string |
order | Order |
▪ getOrderByTradingPair: function
▸ (tradingPair: string): Order | undefined
Parameters:
| Name | Type |
|---|---|
tradingPair | string |
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:
| Name | Type |
|---|---|
port | number |
hostname? | undefined | string |
Returns: Promise‹void›