Skip to content

Commit

Permalink
Merge pull request #179 from paraswap/feat/prices_excludeRFQ
Browse files Browse the repository at this point in the history
Feat/ excludeRFQ /prices option
  • Loading branch information
Velenir authored Oct 24, 2024
2 parents 34ffdfb + a341332 commit ad58285
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@paraswap/sdk",
"version": "6.11.0",
"version": "6.12.0",
"main": "dist/index.js",
"module": "dist/sdk.esm.js",
"typings": "dist/index.d.ts",
Expand Down
6 changes: 6 additions & 0 deletions src/methods/swap/rates.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,10 @@ type RateQueryParams = {
* @description If tokens USD prices are not available, `Bad USD Price` error will be thrown. Use this param to skip this check. Default: `false`.
*/
ignoreBadUsdPrice?: boolean;
/**
* @description Exclude all RFQs from pricing, e.g.: AugustusRFQ, Hashflow. Default: false
*/
excludeRFQ?: boolean;
};

// more details in the docs https://developers.paraswap.network/api/get-rate-for-a-token-pair#query-parameters
Expand All @@ -154,6 +158,8 @@ export type RateOptions = {
otherExchangePrices?: boolean;
/** @description proceed with priceRoute building even when tokens don't have USD price. Default: false */
ignoreBadUsdPrice?: boolean;
/** @description Exclude all RFQs from pricing, e.g.: AugustusRFQ, Hashflow. Default: false */
excludeRFQ?: boolean;
/** @description Specify that methods without fee support should be excluded from the price route. Default: false */
excludeContractMethodsWithoutFeeModel?: boolean;
/** @description If the source token is a tax token, you should specify the tax amount in BPS. */
Expand Down

0 comments on commit ad58285

Please sign in to comment.