CreateTrade

POST /trades/

For add a trade

application/json

Body Required

  • type string Required

    Type of trade

    Values are Supply or Demand.

  • 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

Responses

  • 201 application/json

    Default Response

    Hide response attribute Show response attribute object
  • 401 application/json

    Unauthorized

    Unauthorized

  • 503 application/json

    Service Unavailable

    Service Unavailable

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