Filter inputs
Name | Type | Description | Mandatory | Available from version |
---|---|---|---|---|
BrickIds | Guid[] | Filter by array of BrickIds. |
Codes | string[] | Filter by array of currency codes. According to ISO-standard |
StatusKeys | string[] | Statuses |
Response rows
Name | Type | Description | Available from version |
---|---|---|---|
Code | String | iso, the currenycode | |
Price | Double | The price is based on EUR, for example: EUR/SEK, EUR/USD | |
PriceDate | DateTime |
PriceDate of the currency. | ||
StatusKey | String |
Status of the currency |
Code Block | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"> <s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <GetAccounts xmlns="http://tempuri.org/"> <req> <Credentials> <UserName>yourusername</UserName> <Password>yourpassword</Password> </Credentials> <identify>youridentifier</identify> <Args> <Codes> <string>SEK</string> <string>EUR</string> </Codes> </Args> <Fields> <Code>true</Code> <Price>true</Price> <PriceDate>true</PriceDate> <StatusKey>true</StatusKey> </Fields> </req> </GetAccounts> </s:Body> </s:Envelope> |
Code examples
Code Block | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||
//Use the GetCurrencies to retreive EUR/SEK and EUR/USD quotes
var client = new BFSServiceReference.bfsapiSoapClient();
var credentials = new BFSServiceReference.Credentials()
{
UserName = bfsusername, //Username of administrative user in your instance of BFS
Password = bfspassword, //Password of the administrative user in your instance of BFS
};
var currency = client.GetCurrencies(new BFSServiceReference.GetCurrencyRequest()
{
Credentials = credentials,
identify = bfsidentifier, //Identifier is a unique token for your instance of BFS
Args = new GetCurrencyArgs()
{
Codes = new []
{
"SEK",
"USD",
},
PriceDate = new DateTime(2016,01,11),
},
Fields = new BFSServiceReference.GetCurrencyFields()
{
BrickId = true,
Code = true,
Price = true,
PriceDate = true,
StatusKey = true,
},
});
foreach (var c in currency.Result)
{
Console.WriteLine(c.BrickId + ";" + c.Code + ";" + c.Price + ";" + c.PriceDate + ";" + c.StatusKey);
} |
Blog Posts | ||||||
---|---|---|---|---|---|---|
|