Skip to content

Commit 4739b52

Browse files
ZIMkaRUJacobPlaster
authored andcommitted
Add clampMin and clampMax to StatusMessagesDeriv model
1 parent beb16ab commit 4739b52

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

lib/status_messages_deriv.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@ const fields = {
1111
priceSpot: 4,
1212
fundBal: 6,
1313
fundingAccrued: 9,
14-
fundingStep: 10
14+
fundingStep: 10,
15+
clampMin: 22,
16+
clampMax: 23
1517
}
1618

1719
/**
@@ -27,6 +29,8 @@ class StatusMessagesDeriv extends Model {
2729
* @param {string} data.fundBal - funding balance
2830
* @param {string} data.fundingAccrued - accrued funding
2931
* @param {string} data.fundingStep - funding step
32+
* @param {number} data.clampMin - min clamp
33+
* @param {number} data.clampMax - max clamp
3034
*/
3135
constructor (data = {}) {
3236
super({ data, fields })
@@ -57,7 +61,9 @@ class StatusMessagesDeriv extends Model {
5761
priceSpot: priceValidator,
5862
fundBal: priceValidator,
5963
fundingAccrued: priceValidator,
60-
fundingStep: priceValidator
64+
fundingStep: priceValidator,
65+
clampMin: priceValidator,
66+
clampMax: priceValidator
6167
}
6268
})
6369
}

0 commit comments

Comments
 (0)