POST api/Data/GetRateOfExchange

Request Information

URI Parameters

None.

Body Parameters

RateOfExchangeRequest
NameDescriptionTypeAdditional information
APIKey

string

None.

BaseCurrency

string

None.

AgencyId

integer

None.

TokenAgencyId

integer

None.

TokenMemberId

integer

None.

AccountCode

string

None.

ProductType

string

None.

ClientID

string

None.

ClientIP

string

None.

TokenID

string

None.

Request Formats

application/json, text/json

Sample:
{
  "APIKey": "sample string 1",
  "BaseCurrency": "sample string 2",
  "AgencyId": 3,
  "TokenAgencyId": 4,
  "TokenMemberId": 5,
  "AccountCode": "sample string 6",
  "ProductType": "sample string 7",
  "ClientID": "sample string 8",
  "ClientIP": "sample string 9",
  "TokenID": "sample string 10"
}

application/xml, text/xml

Sample:
<RateOfExchangeRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RequestEntities">
  <APIKey>sample string 1</APIKey>
  <AccountCode>sample string 6</AccountCode>
  <AgencyId>3</AgencyId>
  <BaseCurrency>sample string 2</BaseCurrency>
  <ClientID>sample string 8</ClientID>
  <ClientIP>sample string 9</ClientIP>
  <ProductType>sample string 7</ProductType>
  <TokenAgencyId>4</TokenAgencyId>
  <TokenID>sample string 10</TokenID>
  <TokenMemberId>5</TokenMemberId>
</RateOfExchangeRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

RateOfExchangeResponse
NameDescriptionTypeAdditional information
Status

ResponseStatus

None.

Error

Error

None.

TokenId

string

None.

RateOfExchangeList

Collection of RateOfExchange

None.

Response Formats

application/json, text/json

Sample:
{
  "Status": "NotSet",
  "Error": {
    "ErrorMsg": "sample string 1",
    "ErrorCode": "NotSet"
  },
  "TokenId": "sample string 1",
  "RateOfExchangeList": [
    {
      "FromCurrencyCode": "sample string 1",
      "ToCurrencyCode": "sample string 2",
      "ROE": 3.0,
      "ActualROE": 4.0
    },
    {
      "FromCurrencyCode": "sample string 1",
      "ToCurrencyCode": "sample string 2",
      "ROE": 3.0,
      "ActualROE": 4.0
    }
  ]
}

application/xml, text/xml

Sample:
<RateOfExchangeResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ResponseEntities">
  <Error>
    <ErrorCode>NotSet</ErrorCode>
    <ErrorMsg>sample string 1</ErrorMsg>
  </Error>
  <RateOfExchangeList xmlns:d2p1="http://schemas.datacontract.org/2004/07/DataEntities">
    <d2p1:RateOfExchange>
      <d2p1:ActualROE>4</d2p1:ActualROE>
      <d2p1:FromCurrencyCode>sample string 1</d2p1:FromCurrencyCode>
      <d2p1:ROE>3</d2p1:ROE>
      <d2p1:ToCurrencyCode>sample string 2</d2p1:ToCurrencyCode>
    </d2p1:RateOfExchange>
    <d2p1:RateOfExchange>
      <d2p1:ActualROE>4</d2p1:ActualROE>
      <d2p1:FromCurrencyCode>sample string 1</d2p1:FromCurrencyCode>
      <d2p1:ROE>3</d2p1:ROE>
      <d2p1:ToCurrencyCode>sample string 2</d2p1:ToCurrencyCode>
    </d2p1:RateOfExchange>
  </RateOfExchangeList>
  <Status>NotSet</Status>
  <TokenId>sample string 1</TokenId>
</RateOfExchangeResponse>