Skip to content

Commit

Permalink
Adding support for OrderType.MARKET.
Browse files Browse the repository at this point in the history
  • Loading branch information
darley-silva-funttastic committed Jan 22, 2024
1 parent afc6b48 commit 8eaee55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/clob/clob.validators.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ export const validateOrderId: Validator = mkValidator(
export const validateOrderType: Validator = mkValidator(
'orderType',
invalidOrderTypeError,
(val) => typeof val === 'string' && (val === 'LIMIT' || val === 'LIMIT_MAKER')
(val) => typeof val === 'string' && (val === 'LIMIT' || val === 'LIMIT_MAKER' || val === 'MARKET')
);

const NETWORK_VALIDATIONS = [validateConnector, validateChain, validateNetwork];
Expand Down

0 comments on commit 8eaee55

Please sign in to comment.