question

anaslaaouini avatar image
anaslaaouini Deactivated asked

Forex Spot Trade Capture request

I want to test the following http request using Postman:

Treasury Capital Markets
---->Forex Spot Trade Capture
---------->List of trades
-------------------> https://api.fusionfabric.cloud/capital-market/trade-capture/fx/spot/v1/trades

with the following query parameters
currencyPair
counterpartyReference
counterpartyReferential
tradeSourceReference
tradeSourceReferential
fromTradeDate
toTradeDate


Can you give me some values of these parameters that will allow me to have a valid response?

10 |600

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Michal_Stefanik avatar image
Michal_Stefanik answered

Hello Anas,

below you can find a list of trades that you can get from that API on ffdcuser2:

{
"items": [
{
"id": "0000004478",
"currencyPair": "USDCAD",
"direction": "BUY",
"domesticAmount": {
"amount": 12.35,
"currency": "CAD"
},
"foreignAmount": {
"amount": 10.0,
"currency": "USD"
},
"exchangeRate": 1.23456789,
"legalEntityId": "SUMMIT",
"counterpartyId": "287",
"tradeDate": "2019-01-27",
"settlementDate": "2019-02-28",
"traderId": "FOTRD_2"
},
{
"id": "0000004479",
"currencyPair": "USDCAD",
"direction": "BUY",
"domesticAmount": {
"amount": 12.35,
"currency": "CAD"
},
"foreignAmount": {
"amount": 10.0,
"currency": "USD"
},
"exchangeRate": 1.23456789,
"legalEntityId": "SUMMIT",
"counterpartyId": "287",
"tradeDate": "2019-01-27",
"settlementDate": "2019-02-28",
"traderId": "FOTRD_2"
},
{
"id": "0000004480",
"currencyPair": "USDCAD",
"direction": "BUY",
"domesticAmount": {
"amount": 13.15,
"currency": "CAD"
},
"foreignAmount": {
"amount": 10.0,
"currency": "USD"
},
"exchangeRate": 1.314736,
"legalEntityId": "SUMMIT",
"counterpartyId": "287",
"tradeDate": "2019-01-17",
"settlementDate": "2019-02-28",
"traderId": "FOTRD_2"
},
{
"id": "0000004481",
"currencyPair": "USDCAD",
"direction": "SELL",
"domesticAmount": {
"amount": 52.0,
"currency": "CAD"
},
"foreignAmount": {
"amount": 10.0,
"currency": "USD"
},
"exchangeRate": 5.2,
"legalEntityId": "SUMMIT",
"counterpartyId": "287",
"tradeDate": "2019-01-17",
"settlementDate": "2019-02-28",
"traderId": "FOTRD_2"
},
{
"id": "0000004507",
"currencyPair": "EURUSD",
"direction": "BUY",
"domesticAmount": {
"amount": 1234.49,
"currency": "USD"
},
"foreignAmount": {
"amount": 999.99,
"currency": "EUR"
},
"exchangeRate": 1.2345,
"legalEntityId": "SUMMIT",
"counterpartyId": "HSBC",
"tradeDate": "2019-02-27",
"settlementDate": "2019-03-01",
"traderId": "FOTRD_2"
}
],
"_meta": {
"limit": 0,
"pageCount": 0,
"totalCount": 5,
"page": 0
}
}


For currencyPair you can use: EURUSD, USDCAD
fromTradeDate and toTradeDate you can use: 2019-01-27, 2019-02-27

counterpartyReference,
counterpartyReferential
those parameters you have to take from another API: Static Data for Trade Capture

some samples:
{
"id": "287",
"description": "287",
"references": [
{
"reference": "REUT_287",
"referential": "REUT"
},
{
"reference": "BBG_287",
"referential": "BBG"
}
]
}

{
"id": "HSBC",
"description": "HSBC",
"references": [
{
"reference": "REUT_HSBC",
"referential": "REUT"
},
{
"reference": "BBG_HSBC",
"referential": "BBG"
}
]
}


samples for:
tradeSourceReference
tradeSourceReferential


{
"items": [
{
"id": "BBG",
"description": "Bloomberg",
"applicableEntities": [
"counterparties",
"legal-entities",
"traders"
]
},
{
"id": "REUT",
"description": "Reuters Thompson",
"applicableEntities": [
"counterparties",
"legal-entities",
"traders"
]
},
{
"id": "SUM",
"description": "Summit",
"applicableEntities": [
"counterparties",
"legal-entities",
"traders"
]
}
],
"_meta": {
"limit": 10,
"pageCount": 1,
"totalCount": 3,
"page": 0
}
}


kind regards
Michal

10 |600

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

anaslaaouini avatar image
anaslaaouini Deactivated answered

Hello,

How can I find the values of the Following parameters:

counterpartyReference
counterpartyReferential
tradeSourceReference
tradeSourceReferential from the first item of the list

{
"id": "0000004478",
"currencyPair": "USDCAD",
"direction": "BUY",
"domesticAmount": {
"amount": 12.35,
"currency": "CAD"
},
"foreignAmount": {
"amount": 10.0,
"currency": "USD"
},
"exchangeRate": 1.23456789,
"legalEntityId": "SUMMIT",
"counterpartyId": "287",
"tradeDate": "2019-01-27",
"settlementDate": "2019-02-28",
"traderId": "FOTRD_2"
},

1 comment
10 |600

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Hi,
you can find by using Static Data for Trade Capture API. In your example, you have to use counterpartyId=287 to get all the information.
It is mentioned in the description of the Forex Trade Spot Trade Captur API.

kind regards

Michal

0 Likes 0 ·