fix: transactions can have 0 for values in units / price

This commit is contained in:
SpaceAdmiral 2023-05-21 09:28:14 -07:00
parent 4b62bf3252
commit ec0b708378
2 changed files with 4 additions and 4 deletions

View File

@ -24,17 +24,17 @@
"units": { "units": {
"type": "integer", "type": "integer",
"description": "The number of units of the transaction.", "description": "The number of units of the transaction.",
"minimum": 1 "minimum": 0
}, },
"pricePerUnit": { "pricePerUnit": {
"type": "integer", "type": "integer",
"description": "The price per unit of the transaction.", "description": "The price per unit of the transaction.",
"minimum": 1 "minimum": 0
}, },
"totalPrice": { "totalPrice": {
"type": "integer", "type": "integer",
"description": "The total price of the transaction.", "description": "The total price of the transaction.",
"minimum": 1 "minimum": 0
}, },
"timestamp": { "timestamp": {
"type": "string", "type": "string",

View File

@ -12,7 +12,7 @@
"price": { "price": {
"type": "integer", "type": "integer",
"description": "The price of the transaction.", "description": "The price of the transaction.",
"minimum": 1 "minimum": 0
}, },
"agentSymbol": { "agentSymbol": {
"type": "string", "type": "string",