GET TradeType

Gets all the trade types.

Request Information

Header Parameters

NameDescriptionTypeAdditional information
Authorization

The authorization token prefixed with 'Bearer'

string

Required

Sample:
Authorization: Bearer gBsdjflsdkj#wsjelKDSDdsdDTjeYYfvikg2cZQIu_ombqpyE7DZgEHClLO06EtHLFV65lelXVwx9JR33gib3nxzzJKLSDFJ-Xrt5ressxjArc3F6hy1J...        

URI Parameters

None.

Body Parameters

None.

Response Information

Resource Description

Returns a collection of TradeTypeModel objects.

Type: Collection of TradeTypeModel
NameDescriptionTypeAdditional information
TradeTypeId

The trade type identifier

integer

None.

Name

The name of the trade type

string

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "TradeTypeId": 1,
    "Name": "Buy"
  },
  {
    "TradeTypeId": 2,
    "Name": "Sell"
  }
]

application/xml, text/xml

Sample:
<ArrayOfTradeTypeModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PP.Contracts.WebApi">
  <TradeTypeModel>
    <Name>Buy</Name>
    <TradeTypeId>1</TradeTypeId>
  </TradeTypeModel>
  <TradeTypeModel>
    <Name>Sell</Name>
    <TradeTypeId>2</TradeTypeId>
  </TradeTypeModel>
</ArrayOfTradeTypeModel>