Body
Required
-
type
string Required Type of trade
Values are
Supply
orDemand
. -
resource
string Required Type of resource. Example Aloe
-
amount
integer Amount of the resource
-
quality
integer Quality of the resource. Max 100
-
region
string Required Region of the trade. EU, NA, SA , ASIA, OCE
-
price
integer Required Price per resource
POST
/trades/
curl \
--request POST 'http://api.example.com/trades/' \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Content-Type: application/json" \
--data '{"type":"Supply","resource":"string","amount":42,"quality":42,"region":"string","price":42}'
Request examples
{
"type": "Supply",
"resource": "string",
"amount": 42,
"quality": 42,
"region": "string",
"price": 42
}
Response examples (201)
{
"message": "string"
}
Response examples (401)
string
Response examples (503)
string