api-docs/models/MarketTransaction.json

49 lines
1.0 KiB
JSON
Raw Normal View History

2022-10-06 01:42:15 +02:00
{
"type": "object",
"properties": {
"symbol": {
"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
},
2022-10-22 18:05:01 +02:00
"totalPrice": {
"type": "integer",
"description": "The total price of the transaction.",
"minimum": 1
},
2022-10-06 01:42:15 +02:00
"shipSymbol": {
"type": "string",
"description": "The symbol of the ship that made the transaction."
},
"timestamp": {
"type": "string",
"format": "date-time",
"description": "The timestamp of the transaction."
}
2022-10-22 18:05:01 +02:00
},
"required": [
"symbol",
"type",
"units",
"pricePerUnit",
"shipSymbol",
"timestamp"
]
2022-10-06 01:42:15 +02:00
}