negotiation/taker/order
Index
References
Classes
Interfaces
Functions
References
TakerOrder
• TakerOrder:
Functions
assetMatches
▸ assetMatches(criteriaAsset
: MatchingCriteriaAsset, orderAsset
: OrderAsset): boolean
Defined in src/negotiation/taker/order.ts:108
Parameters:
Name | Type |
---|---|
criteriaAsset | MatchingCriteriaAsset |
orderAsset | OrderAsset |
Returns: boolean
assetOrderToSwap
▸ assetOrderToSwap(orderAsset
: OrderAsset): Asset | undefined
Defined in src/negotiation/taker/order.ts:132
Parameters:
Name | Type |
---|---|
orderAsset | OrderAsset |
Returns: Asset | undefined
matchingCriteriaToTradingPair
▸ matchingCriteriaToTradingPair(matchingCriteria
: MatchingCriteria): string
Defined in src/negotiation/taker/order.ts:163
Parameters:
Name | Type |
---|---|
matchingCriteria | MatchingCriteria |
Returns: string
orderRate
▸ orderRate(rawOrder
: RawOrder): BigNumber
Defined in src/negotiation/taker/order.ts:101
Parameters:
Name | Type |
---|---|
rawOrder | RawOrder |
Returns: BigNumber
rateMatches
▸ rateMatches(criteria
: MatchingCriteria, rawOrder
: RawOrder): boolean
Defined in src/negotiation/taker/order.ts:89
This is only exported for test purposes
Parameters:
Name | Type | Description |
---|---|---|
criteria | MatchingCriteria | - |
rawOrder | RawOrder |
Returns: boolean