Skip to content

Commit

Permalink
Order conditions documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
rylorin committed Mar 9, 2024
1 parent d0e4708 commit 8a93d4f
Show file tree
Hide file tree
Showing 7 changed files with 27 additions and 27 deletions.
10 changes: 5 additions & 5 deletions src/api/order/condition/execution-condition.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,16 @@ export class ExecutionCondition implements OrderCondition {
/**
* Create a [[ExecutionCondition]] object.
*
* @param exchange Exchange where the symbol needs to be traded.
* @param secType Kind of instrument being monitored.
* @param symbol Instrument's symbol.
* @param conjunctionConnection Conjunction connection type.
* @param symbol When an execution on symbol
* @param exchange at exchange
* @param secType for this secType
* @param conjunctionConnection AND | OR next condition (will be ignored if no more conditions are added)
*/
constructor(
public exchange: string,
public secType: SecType,
public symbol: string,
public conjunctionConnection: ConjunctionConnection
public conjunctionConnection: ConjunctionConnection,
) {}
}

Expand Down
6 changes: 3 additions & 3 deletions src/api/order/condition/margin-condition.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ export class MarginCondition implements OperatorCondition {
/**
* Create a [[MarginCondition]] object.
*
* @param percent TODO document
* @param isMore TODO document
* @param conjunctionConnection Conjunction connection type.
* @param isMore If margin is above/below
* @param percent given percent
* @param conjunctionConnection AND | OR next condition (will be ignored if no more conditions are added)
*/
constructor(
public percent: number,
Expand Down
10 changes: 5 additions & 5 deletions src/api/order/condition/percent-change-condition.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ export class PercentChangeCondition implements ContractCondition {
/**
* Create a [[PercentChangeCondition]] object.
*
* @param percent TODO document
* @param conId The contract id.
* @param exchange The exchange code.
* @param isMore TODO document
* @param conjunctionConnection Conjunction connection type.
* @param isMore If there is a price percent change measured against last close price above or below...
* @param percent this amount...
* @param conId on this contract
* @param exchange when traded on this exchange...
* @param conjunctionConnection AND | OR next condition (will be ignored if no more conditions are added)
*/
constructor(
public percent: number,
Expand Down
10 changes: 5 additions & 5 deletions src/api/order/condition/price-condition.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ export class PriceCondition implements ContractCondition {
/**
* Create a [[PriceCondition]] object.
*
* @param price TODO document
* @param conId When this contract...
* @param exchange traded on this exchange
* @param isMore has a price above/below
* @param price this quantity
* @param triggerMethod TODO document
* @param conId The contract id.
* @param exchange The exchange code.
* @param isMore TODO document
* @param conjunctionConnection Conjunction connection type.
* @param conjunctionConnection AND | OR next condition (will be ignored if no more conditions are added)
*/
constructor(
public price: number,
Expand Down
6 changes: 3 additions & 3 deletions src/api/order/condition/time-condition.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ export class TimeCondition implements OperatorCondition {
/**
* Create a [[TimeCondition]] object.
*
* @param time Time field used in conditional order logic. Valid format: YYYYMMDD HH:MM:SS.
* @param isMore TODO
* @param conjunctionConnection Conjunction connection type.
* @param isMore Before or after...
* @param time this time... (Valid format: "YYYYMMDD HH:MM:SS")
* @param conjunctionConnection AND | OR next condition (will be ignored if no more conditions are added)
*/
constructor(
public time: string,
Expand Down
10 changes: 5 additions & 5 deletions src/api/order/condition/volume-condition.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ export class VolumeCondition implements ContractCondition {
/**
* Create a [[PriceCondition]] object.
*
* @param volume TODO document
* @param conId The contract id.
* @param exchange The exchange code.
* @param isMore TODO document
* @param conjunctionConnection Conjunction connection type.
* @param conId Whenever contract...
* @param exchange When traded at
* @param isMore reaches a volume higher/lower
* @param volume than this...
* @param conjunctionConnection AND | OR next condition (will be ignored if no more conditions are added)
*/
constructor(
public volume: number,
Expand Down
2 changes: 1 addition & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3208,7 +3208,7 @@ typedoc@^0.25.11:
minimatch "^9.0.3"
shiki "^0.14.7"

typescript@^5.2.2:
typescript@^5.4.2:
version "5.4.2"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.4.2.tgz#0ae9cebcfae970718474fe0da2c090cad6577372"
integrity sha512-+2/g0Fds1ERlP6JsakQQDXjZdZMM+rqpamFZJEKh4kwTIn3iDkgKtby0CeNd5ATNZ4Ry1ax15TMx0W2V+miizQ==
Expand Down

0 comments on commit 8a93d4f

Please sign in to comment.