2022-10-06 01:42:15 +02:00
|
|
|
{
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
2023-03-14 17:17:20 +01:00
|
|
|
"waypointSymbol": {
|
2023-12-16 17:46:48 +01:00
|
|
|
"$ref": "./WaypointSymbol.json"
|
2023-03-14 17:17:20 +01:00
|
|
|
},
|
2022-11-16 06:55:50 +01:00
|
|
|
"shipSymbol": {
|
|
|
|
"type": "string",
|
|
|
|
"description": "The symbol of the ship that made the transaction."
|
|
|
|
},
|
|
|
|
"tradeSymbol": {
|
2022-10-06 01:42:15 +02:00
|
|
|
"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.",
|
2023-05-21 18:28:14 +02:00
|
|
|
"minimum": 0
|
2022-10-06 01:42:15 +02:00
|
|
|
},
|
|
|
|
"pricePerUnit": {
|
|
|
|
"type": "integer",
|
|
|
|
"description": "The price per unit of the transaction.",
|
2023-05-21 18:28:14 +02:00
|
|
|
"minimum": 0
|
2022-10-06 01:42:15 +02:00
|
|
|
},
|
2022-10-22 18:05:01 +02:00
|
|
|
"totalPrice": {
|
|
|
|
"type": "integer",
|
|
|
|
"description": "The total price of the transaction.",
|
2023-05-21 18:28:14 +02:00
|
|
|
"minimum": 0
|
2022-10-22 18:05:01 +02:00
|
|
|
},
|
2022-10-06 01:42:15 +02:00
|
|
|
"timestamp": {
|
|
|
|
"type": "string",
|
|
|
|
"format": "date-time",
|
|
|
|
"description": "The timestamp of the transaction."
|
|
|
|
}
|
2022-10-22 18:05:01 +02:00
|
|
|
},
|
|
|
|
"required": [
|
2023-03-14 17:17:20 +01:00
|
|
|
"waypointSymbol",
|
|
|
|
"shipSymbol",
|
|
|
|
"tradeSymbol",
|
2022-10-22 18:05:01 +02:00
|
|
|
"type",
|
|
|
|
"units",
|
|
|
|
"pricePerUnit",
|
2023-03-14 17:17:20 +01:00
|
|
|
"totalPrice",
|
2022-10-22 18:05:01 +02:00
|
|
|
"timestamp"
|
2023-06-09 22:50:36 +02:00
|
|
|
],
|
|
|
|
"description": "Result of a transaction with a market."
|
2022-10-06 01:42:15 +02:00
|
|
|
}
|