GET api/Trades/{id}

Get trades of block rewards made to exchanges for a block

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

blockId

globally unique identifier

Required

Body Parameters

None.

Response Information

Resource Description

Collection of TradeOrder
NameDescriptionTypeAdditional information
Id

globally unique identifier

None.

BlockId

globally unique identifier

None.

ExchangeId

string

None.

OrderId

string

None.

Time

date

None.

FromType

string

None.

FromAmount

decimal number

None.

ToType

string

None.

ToAmount

decimal number

None.

FeeType

string

None.

Fee

decimal number

None.

IsOpen

boolean

None.

FullyFulfilled

boolean

None.

Cancelled

boolean

None.

BlockType

string

None.

Price

decimal number

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "Id": "4fd788e4-4d6b-4e83-87b4-1de4cdfb2ada",
    "BlockId": "f53f7652-d429-4ff8-9485-48e97a7c2ebc",
    "ExchangeId": "sample string 3",
    "OrderId": "sample string 4",
    "Time": "2017-09-25T04:15:52.5619433+00:00",
    "FromType": "sample string 6",
    "FromAmount": 7.0,
    "ToType": "sample string 8",
    "ToAmount": 9.0,
    "FeeType": "sample string 10",
    "Fee": 11.0,
    "IsOpen": true,
    "FullyFulfilled": true,
    "Cancelled": true,
    "BlockType": "sample string 15",
    "Price": 16.0
  },
  {
    "Id": "4fd788e4-4d6b-4e83-87b4-1de4cdfb2ada",
    "BlockId": "f53f7652-d429-4ff8-9485-48e97a7c2ebc",
    "ExchangeId": "sample string 3",
    "OrderId": "sample string 4",
    "Time": "2017-09-25T04:15:52.5619433+00:00",
    "FromType": "sample string 6",
    "FromAmount": 7.0,
    "ToType": "sample string 8",
    "ToAmount": 9.0,
    "FeeType": "sample string 10",
    "Fee": 11.0,
    "IsOpen": true,
    "FullyFulfilled": true,
    "Cancelled": true,
    "BlockType": "sample string 15",
    "Price": 16.0
  }
]

application/xml, text/xml

Sample:
<ArrayOfTradeOrder xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SudoDB">
  <TradeOrder>
    <BlockId>f53f7652-d429-4ff8-9485-48e97a7c2ebc</BlockId>
    <BlockType>sample string 15</BlockType>
    <Cancelled>true</Cancelled>
    <ExchangeId>sample string 3</ExchangeId>
    <Fee>11</Fee>
    <FeeType>sample string 10</FeeType>
    <FromAmount>7</FromAmount>
    <FromType>sample string 6</FromType>
    <FullyFulfilled>true</FullyFulfilled>
    <Id>4fd788e4-4d6b-4e83-87b4-1de4cdfb2ada</Id>
    <IsOpen>true</IsOpen>
    <OrderId>sample string 4</OrderId>
    <Price>16</Price>
    <Time xmlns:d3p1="http://schemas.datacontract.org/2004/07/System">
      <d3p1:DateTime>2017-09-25T04:15:52.5619433Z</d3p1:DateTime>
      <d3p1:OffsetMinutes>0</d3p1:OffsetMinutes>
    </Time>
    <ToAmount>9</ToAmount>
    <ToType>sample string 8</ToType>
  </TradeOrder>
  <TradeOrder>
    <BlockId>f53f7652-d429-4ff8-9485-48e97a7c2ebc</BlockId>
    <BlockType>sample string 15</BlockType>
    <Cancelled>true</Cancelled>
    <ExchangeId>sample string 3</ExchangeId>
    <Fee>11</Fee>
    <FeeType>sample string 10</FeeType>
    <FromAmount>7</FromAmount>
    <FromType>sample string 6</FromType>
    <FullyFulfilled>true</FullyFulfilled>
    <Id>4fd788e4-4d6b-4e83-87b4-1de4cdfb2ada</Id>
    <IsOpen>true</IsOpen>
    <OrderId>sample string 4</OrderId>
    <Price>16</Price>
    <Time xmlns:d3p1="http://schemas.datacontract.org/2004/07/System">
      <d3p1:DateTime>2017-09-25T04:15:52.5619433Z</d3p1:DateTime>
      <d3p1:OffsetMinutes>0</d3p1:OffsetMinutes>
    </Time>
    <ToAmount>9</ToAmount>
    <ToType>sample string 8</ToType>
  </TradeOrder>
</ArrayOfTradeOrder>