api-docs/models/MarketTransaction.json
2023-03-14 09:17:20 -07:00

55 lines
1.2 KiB
JSON

{
"type": "object",
"properties": {
"waypointSymbol": {
"type": "string",
"description": "The symbol of the waypoint where the transaction took place."
},
"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": [
"waypointSymbol",
"shipSymbol",
"tradeSymbol",
"type",
"units",
"pricePerUnit",
"totalPrice",
"timestamp"
]
}