Skip to content

Commit 11fecbd

Browse files
mvbergpilwon
authored andcommitted
Fix assert typos (#126)
1 parent efe3f04 commit 11fecbd

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

lib/order/market.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ var _ = require('lodash');
44

55
module.exports = function (action, quantity, transmitOrder, goodAfterTime, goodTillDate) {
66
assert(_.isString(action), 'Action must be a string.');
7-
assert(_.isNumber(quantity), 'Quantity must be a string.');
7+
assert(_.isNumber(quantity), 'Quantity must be a number.');
88

99
if (transmitOrder === undefined) {
1010
transmitOrder = true;

lib/order/marketClose.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ var _ = require('lodash');
44

55
module.exports = function (action, quantity, transmitOrder) {
66
assert(_.isString(action), 'Action must be a string.');
7-
assert(_.isNumber(quantity), 'Quantity must be a string.');
7+
assert(_.isNumber(quantity), 'Quantity must be a number.');
88

99
if (transmitOrder === undefined) {
1010
transmitOrder = true;

lib/order/stopLimit.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ var _ = require('lodash');
44

55
module.exports = function (action, quantity, limitPrice, stopPrice, transmitOrder, parentId, tif) {
66
assert(_.isString(action), 'Action must be a string.');
7-
assert(_.isNumber(quantity), 'Quantity must be a string.');
7+
assert(_.isNumber(quantity), 'Quantity must be a number.');
88
assert(_.isNumber(stopPrice), 'Stop price must be a number.');
99
assert(_.isNumber(limitPrice), 'Limit price must be a number.');
1010

0 commit comments

Comments
 (0)