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:
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 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:
Name | Type |
---|---|
port | number |
hostname? | undefined | string |
Returns: Promise‹void›