GET v1/Facilities/{id}/SpreadHistory

Description

Retrieve spread history for facility with a WSO ID of {id}.

Base Url

https://api-agc.wsohosting.com/


Rest Call Syntax


GET SecurityMaster/v1/Facilities/{id}/SpreadHistory

GET SecurityMaster/v1/Facilities/{id}/SpreadHistory

Verb

Base Url

URI parameters

 = 

Authentication



Response Format


Headers

Add header




Limitations

There are no limitations specified.




Request Information


Parameters

Name

Description

Type

Additional Information

id

WSO ID of facility

integer

Required




Response Information



NonPagedList Of SpreadHistoryListItem

Name

Description

Type

Additional Information

Items

Collection of SpreadHistoryListItem

Links

Collection of Link




Response Body Formats



application/json, text/json

Sample:
{
  "items": [
    {
      "id": 1,
      "spreadHistoryName": "sample string 4",
      "startDate": "2025-04-05T18:45:21.692336-05:00",
      "endDate": "2025-04-05T18:45:21.692336-05:00",
      "spread": 7.1,
      "facilityRateOption": {
        "verb": "sample string 1",
        "rel": "sample string 2",
        "uri": "http://webapihelppage3.com"
      },
      "links": [
        {
          "verb": "sample string 1",
          "rel": "sample string 2",
          "uri": "http://webapihelppage3.com"
        },
        {
          "verb": "sample string 1",
          "rel": "sample string 2",
          "uri": "http://webapihelppage3.com"
        }
      ]
    },
    {
      "id": 1,
      "spreadHistoryName": "sample string 4",
      "startDate": "2025-04-05T18:45:21.692336-05:00",
      "endDate": "2025-04-05T18:45:21.692336-05:00",
      "spread": 7.1,
      "facilityRateOption": {
        "verb": "sample string 1",
        "rel": "sample string 2",
        "uri": "http://webapihelppage3.com"
      },
      "links": [
        {
          "verb": "sample string 1",
          "rel": "sample string 2",
          "uri": "http://webapihelppage3.com"
        },
        {
          "verb": "sample string 1",
          "rel": "sample string 2",
          "uri": "http://webapihelppage3.com"
        }
      ]
    }
  ],
  "links": [
    {
      "verb": "sample string 1",
      "rel": "sample string 2",
      "uri": "http://webapihelppage3.com"
    },
    {
      "verb": "sample string 1",
      "rel": "sample string 2",
      "uri": "http://webapihelppage3.com"
    }
  ]
}

application/xml, text/xml

Sample:
<NonPagedListOfSpreadHistoryListItem xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
  <Items xmlns:d2p1="http://schemas.datacontract.org/2004/07/WSO.API.SecurityMaster.Models.v1">
    <d2p1:SpreadHistoryListItem>
      <d2p1:EndDate>2025-04-05T18:45:21.692336-05:00</d2p1:EndDate>
      <d2p1:FacilityRateOption>
        <Rel>sample string 2</Rel>
        <Uri>http://webapihelppage3.com/</Uri>
        <Verb>sample string 1</Verb>
      </d2p1:FacilityRateOption>
      <d2p1:Id>1</d2p1:Id>
      <d2p1:Links>
        <Link>
          <Rel>sample string 2</Rel>
          <Uri>http://webapihelppage3.com/</Uri>
          <Verb>sample string 1</Verb>
        </Link>
        <Link>
          <Rel>sample string 2</Rel>
          <Uri>http://webapihelppage3.com/</Uri>
          <Verb>sample string 1</Verb>
        </Link>
      </d2p1:Links>
      <d2p1:Spread>7.1</d2p1:Spread>
      <d2p1:SpreadHistoryName>sample string 4</d2p1:SpreadHistoryName>
      <d2p1:StartDate>2025-04-05T18:45:21.692336-05:00</d2p1:StartDate>
    </d2p1:SpreadHistoryListItem>
    <d2p1:SpreadHistoryListItem>
      <d2p1:EndDate>2025-04-05T18:45:21.692336-05:00</d2p1:EndDate>
      <d2p1:FacilityRateOption>
        <Rel>sample string 2</Rel>
        <Uri>http://webapihelppage3.com/</Uri>
        <Verb>sample string 1</Verb>
      </d2p1:FacilityRateOption>
      <d2p1:Id>1</d2p1:Id>
      <d2p1:Links>
        <Link>
          <Rel>sample string 2</Rel>
          <Uri>http://webapihelppage3.com/</Uri>
          <Verb>sample string 1</Verb>
        </Link>
        <Link>
          <Rel>sample string 2</Rel>
          <Uri>http://webapihelppage3.com/</Uri>
          <Verb>sample string 1</Verb>
        </Link>
      </d2p1:Links>
      <d2p1:Spread>7.1</d2p1:Spread>
      <d2p1:SpreadHistoryName>sample string 4</d2p1:SpreadHistoryName>
      <d2p1:StartDate>2025-04-05T18:45:21.692336-05:00</d2p1:StartDate>
    </d2p1:SpreadHistoryListItem>
  </Items>
  <Links>
    <Link>
      <Rel>sample string 2</Rel>
      <Uri>http://webapihelppage3.com/</Uri>
      <Verb>sample string 1</Verb>
    </Link>
    <Link>
      <Rel>sample string 2</Rel>
      <Uri>http://webapihelppage3.com/</Uri>
      <Verb>sample string 1</Verb>
    </Link>
  </Links>
</NonPagedListOfSpreadHistoryListItem>



Feedback