FxHubPartnersApi

<back to all web services

AcReplyToTradeQuote

Requires Authentication
The following routes are available for this service:
PUT/trade_quotes/ac_reply
AcReplyToTradeQuote Parameters:
NameParameterData TypeRequiredDescription
TradeQuotesbodyTradeQuotesNo
QuotedBuyRatebodydecimal?No
QuotedSellRatebodydecimal?No
QuotedCrossRatebodydecimal?No
BuyZarTradeZarAmountbodydecimal?No
BuyZarTradeCrossAmountbodydecimal?No
SellCrossTradeCurrencyAmountbodydecimal?No
SellZarTradeZarAmountbodydecimal?No
SellZarTradeCrossAmountbodydecimal?No
CrossTradeCurrencyAmountbodydecimal?No
CrossTradeCrossCurrencyAmountbodydecimal?No
SellZarHasSufficientZarCashToTradebodystringNo
SellZarHasSufficientZarSdaToTradebodystringNo
SellZarHasSufficientZarTccToTradebodystringNo
TradeQuotes Parameters:
NameParameterData TypeRequiredDescription
IdformintNo
PartnerIdformintNo
PartnerNameformstringNo
UserIdformintNo
UserNameformstringNo
AdminIdformintNo
AdminNameformstringNo
ClientIdformintNo
FirstLastNameformstringNo
SelectedRateformstringNo
TradeTypeformstringNo
EnteredZarformboolNo
CrossCurrencyformstringNo
TradeCurrencyformstringNo
TradeTimingformstringNo
CommissionRateformdecimal?No
CommissionRateInclVatformdecimal?No
BuyZarTradeZarValueformdecimal?No
BuyZarTradeCrossValueformdecimal?No
SellZarTradeZarValueformdecimal?No
SellZarTradeCrossValueformdecimal?No
CrossTradeValueformdecimal?No
CrossTradeCrossValueformdecimal?No
TradeValueformdecimal?No
CrossValueformdecimal?No
QuotedRateformdecimal?No
ClientRateformdecimal?No
InitialSendformDateTime?No
InitialSendTimeformstringNo
InitialReplyTimeformstringNo
QuoteStatusformstringNo
QuoteAcceptedformbool?No
QuoteAcceptedDateformDateTime?No
QuoteAcceptedTimeformstringNo
QuoteDeclinedDateformDateTime?No
QuoteDeclinedTimeformstringNo
AcHasRepliedformbool?No
ZarAccountNumberformstringNo
FcaAccountNumber1formstringNo
FcaAccountNumber2formstringNo
TradeAccountNumberformstringNo
FcaCurrency1formstringNo
FcaCurrency2formstringNo
HasClientTccformbool?No
TccApplicationStatusformstringNo
SdaRemainderformdecimal?No
TccRemainderformdecimal?No
CurrentZarCashBalanceformdecimal?No
CurrentFca1CashBalanceformdecimal?No
CurrentFca2CashBalanceformdecimal?No
CurrentTradeCashBalanceformdecimal?No
HasChatEnabledformbool?No
DoesHaveChatformstringNo
HasSufficientCashBalanceformstringNo
HasSufficientSdaBalanceformstringNo
HasSufficientTccBalanceformstringNo
RiskStatusformstringNo
ActualTradedRateformdecimal?No
TradeQuoteMessagesformList<TradeQuoteMessage>No
TradeQuoteMessage Parameters:
NameParameterData TypeRequiredDescription
MessageformstringNo
SentByformstringNo
UpdatedAtformstringNo
AcReplyToTradeQuoteResponse Parameters:
NameParameterData TypeRequiredDescription
ResultformboolNo
MessageformstringNo

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.

PUT /trade_quotes/ac_reply HTTP/1.1 
Host: api.fxhub.co.za 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	tradeQuotes: 
	{
		id: 0,
		partnerId: 0,
		partnerName: String,
		userId: 0,
		userName: String,
		adminId: 0,
		adminName: String,
		clientId: 0,
		firstLastName: String,
		selectedRate: String,
		tradeType: String,
		enteredZar: False,
		crossCurrency: String,
		tradeCurrency: String,
		tradeTiming: String,
		commissionRate: 0,
		commissionRateInclVat: 0,
		buyZarTradeZarValue: 0,
		buyZarTradeCrossValue: 0,
		sellZarTradeZarValue: 0,
		sellZarTradeCrossValue: 0,
		crossTradeValue: 0,
		crossTradeCrossValue: 0,
		tradeValue: 0,
		crossValue: 0,
		quotedRate: 0,
		clientRate: 0,
		initialSend: 0001-01-01,
		initialSendTime: String,
		initialReplyTime: String,
		quoteStatus: String,
		quoteAccepted: False,
		quoteAcceptedDate: 0001-01-01,
		quoteAcceptedTime: String,
		quoteDeclinedDate: 0001-01-01,
		quoteDeclinedTime: String,
		acHasReplied: False,
		zarAccountNumber: String,
		fcaAccountNumber1: String,
		fcaAccountNumber2: String,
		tradeAccountNumber: String,
		fcaCurrency1: String,
		fcaCurrency2: String,
		hasClientTcc: False,
		tccApplicationStatus: String,
		sdaRemainder: 0,
		tccRemainder: 0,
		currentZarCashBalance: 0,
		currentFca1CashBalance: 0,
		currentFca2CashBalance: 0,
		currentTradeCashBalance: 0,
		hasChatEnabled: False,
		doesHaveChat: String,
		hasSufficientCashBalance: String,
		hasSufficientSdaBalance: String,
		hasSufficientTccBalance: String,
		riskStatus: String,
		actualTradedRate: 0,
		tradeQuoteMessages: 
		[
			{
				message: String,
				sentBy: String,
				updatedAt: String
			}
		]
	},
	quotedBuyRate: 0,
	quotedSellRate: 0,
	quotedCrossRate: 0,
	buyZarTradeZarAmount: 0,
	buyZarTradeCrossAmount: 0,
	sellCrossTradeCurrencyAmount: 0,
	sellZarTradeZarAmount: 0,
	sellZarTradeCrossAmount: 0,
	crossTradeCurrencyAmount: 0,
	crossTradeCrossCurrencyAmount: 0,
	sellZarHasSufficientZarCashToTrade: String,
	sellZarHasSufficientZarSdaToTrade: String,
	sellZarHasSufficientZarTccToTrade: String
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	result: False,
	message: String
}