FxHubPartnersApi

<back to all web services

GetAllTrades

Requires Authentication
The following routes are available for this service:
GET/trades/all
GetAllTradesResponse Parameters:
NameParameterData TypeRequiredDescription
ResultformList<Trades>No
Trades Parameters:
NameParameterData TypeRequiredDescription
IdformintNo
ClientIdformintNo
DealDateformDateTime?No
ValueDateformDateTime?No
DealTypeformstringNo
DealNumberformint?No
CustomerNameformstringNo
FirstLastNameformstringNo
BuySellformstringNo
Currency1formstringNo
Currency2formstringNo
DealRateformdecimalNo
Currency1AmountformdecimalNo
Currency2AmountformdecimalNo
IntermediaryRateformdecimalNo
IntermediaryProfitZarformdecimalNo
IPIntroducerformstringNo
PartnerNameformstringNo
CifNumberformstringNo
PartnerIdformintNo

To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv

HTTP + JSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

GET /trades/all HTTP/1.1 
Host: api.fxlink.co.za 
Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	result: 
	[
		{
			id: 0,
			clientId: 0,
			dealDate: 0001-01-01,
			valueDate: 0001-01-01,
			dealType: String,
			dealNumber: 0,
			customerName: String,
			firstLastName: String,
			buySell: String,
			currency1: String,
			currency2: String,
			dealRate: 0,
			currency1Amount: 0,
			currency2Amount: 0,
			intermediaryRate: 0,
			intermediaryProfitZar: 0,
			ipIntroducer: String,
			partnerName: String,
			cifNumber: String,
			partnerId: 0
		}
	]
}