api-docs/models/MarketTransaction.json

56 lines
1.3 KiB
JSON
Raw Normal View History

2022-10-06 01:42:15 +02:00
{
"type": "object",
"properties": {
"waypointSymbol": {
"$ref": "./WaypointSymbol.json",
"description": "The symbol of the waypoint where the transaction took place."
},
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.",
"minimum": 0
2022-10-06 01:42:15 +02:00
},
"pricePerUnit": {
"type": "integer",
"description": "The price per unit of the transaction.",
"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.",
"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": [
"waypointSymbol",
"shipSymbol",
"tradeSymbol",
2022-10-22 18:05:01 +02:00
"type",
"units",
"pricePerUnit",
"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
}