Skip to content

Commit

Permalink
Add options.correctInvalidTicks to `PortfolioGateway.createTransact…
Browse files Browse the repository at this point in the history
…ion` function
  • Loading branch information
bryaningl3 committed Sep 7, 2023
1 parent b45188c commit 4a4de8e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/content/releases/5.5.0.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
**New Features**

* Added support for `options.suppressCorporateActions` to `PortfolioGateway.createTransaction` function.
* Added support for `options.relaxInstrumentResolution` to `PortfolioGateway.createTransaction` function.
* Added support for `options.strictInstrumentResolution` to `PortfolioGateway.createTransaction` function.
7 changes: 7 additions & 0 deletions docs/content/releases/5.7.0.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
**New Features**

* Added support for `options.correctInvalidTicks` to `PortfolioGateway.createTransaction` function.

**Technical Enhancements**

* Updated the minimum version of the [`@barchart/portfolio-api-common`](https://github.com/barchart/portfolio-api-common) library.
3 changes: 2 additions & 1 deletion lib/gateway/PortfolioGateway.js
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,8 @@ module.exports = (() => {
.withQueryBuilder((qb) => {
qb.withVariableParameter('type', 'type', 'transaction.type', false, x => x.code)
.withVariableParameter('suppressCorporateActions', 'suppressCorporateActions', 'options.suppressCorporateActions', true, x => is.boolean(x) && x ? 'true' : x)
.withVariableParameter('strictInstrumentResolution', 'strictInstrumentResolution', 'options.strictInstrumentResolution', true, x => is.boolean(x) && x ? 'true' : x);
.withVariableParameter('strictInstrumentResolution', 'strictInstrumentResolution', 'options.strictInstrumentResolution', true, x => is.boolean(x) && x ? 'true' : x)
.withVariableParameter('correctInvalidPrice', 'correctInvalidTicks', 'options.correctInvalidTicks', true, x => is.boolean(x) && x ? 'true' : x);
})
.withBodyBuilder((bb) => {
bb.withVariableParameter('body', 'body', 'transaction', false);
Expand Down

0 comments on commit 4a4de8e

Please sign in to comment.