api-docs/models/MarketTransaction.json
2022-12-07 22:42:06 -08:00

49 lines
1.0 KiB
JSON

{
"type": "object",
"properties": {
"shipSymbol": {
"type": "string",
"description": "The symbol of the ship that made the transaction."
},
"tradeSymbol": {
"type": "string",
"description": "The symbol of the trade good."
},
"type": {
"type": "string",
"description": "The type of transaction.",
"enum": [
"PURCHASE",
"SELL"
]
},
"units": {
"type": "integer",
"description": "The number of units of the transaction.",
"minimum": 1
},
"pricePerUnit": {
"type": "integer",
"description": "The price per unit of the transaction.",
"minimum": 1
},
"totalPrice": {
"type": "integer",
"description": "The total price of the transaction.",
"minimum": 1
},
"timestamp": {
"type": "string",
"format": "date-time",
"description": "The timestamp of the transaction."
}
},
"required": [
"symbol",
"type",
"units",
"pricePerUnit",
"shipSymbol",
"timestamp"
]
}