GuardQuote
Create a guard quote
Creates a new guard quote for the regulated entity and persists it to the database.
Required entitlement: regulated.risk-management.canBuyGuard
Entitles the regulated user to enter guard trades for their customers
post/api-regulated/v1/guard-quotes/quote-guard
Request
- Base URL: https://api.currencyguard.com
- URL: https://api.currencyguard.com/api-regulated/v1/guard-quotes/quote-guard
- Auth: OAuth 2 (implicit, authorization URL https://auth.currencyguard.com/oauth2/authorize, scopes: regulated.risk-management.canBuyGuard)
Request body
Example request
{
"introducingBrokerId": "eeeeeeee-ee55-4001-8000-000000000000",
"salesUserId": "9e107d9d-372d-4add-ae2d-f3d1d41fd1d7",
"companyId": "9e107d9d-372d-4add-ae2d-f3d1d41fd1d7",
"customerId": "9e107d9d-372d-4add-ae2d-f3d1d41fd1d7",
"externalRef": "BEN-90210",
"invoiceExternalRef": "INV-2024-001",
"guardCurrency": "GBP",
"foreignCurrency": "USD",
"currencyPair": "GBPUSD",
"payReceive": "PAY",
"foreignAmount": 50000,
"paymentMarginAtInception": 0.015,
"midAtInception": 1.34,
"salesMarginRate": 0.007,
"guardSettlementWindowTo": "2024-04-15T00:00:00Z",
"targetGuardAmountToSeekNetFees": 60000,
"salesMarginAmount": 296.02,
"reason": "Invoice protection for Q1 2024",
"requestedGuardAmount": 136010
}Response
Guard quote created
Example response
{
"valid": true,
"errorMessages": [
"Market data feed delayed by 30 seconds",
"Volatility surface is stale"
],
"valueTimestamp": "2024-03-01T14:30:15.123Z",
"emissionTimestamp": "2024-03-01T14:30:16.456Z",
"subscriptionSource": "DEFAULT",
"value": {
"id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
"regulatedEntityId": "9e107d9d-372d-4add-ae2d-f3d1d41fd1d7",
"introducingBrokerId": "eeeeeeee-ee55-4001-8000-000000000000",
"regulatedUserId": "9e107d9d-372d-4add-ae2d-f3d1d41fd1d7",
"salesUserId": "9e107d9d-372d-4add-ae2d-f3d1d41fd1d7",
"companyId": "9e107d9d-372d-4add-ae2d-f3d1d41fd1d7",
"customerId": "9e107d9d-372d-4add-ae2d-f3d1d41fd1d7",
"validationStatus": "VALID",
"validationErrors": "FX vol surface exceeded TTL; Interest rate curve is stale",
"quoteStatus": "OPEN",
"marketStatus": "OPEN",
"marketReason": "Trading hours",
"previousGuardId": "GSP1000104",
"externalRef": "BEN-90210",
"invoiceExternalRef": "INV-2024-001",
"guardPeriodFrom": "2024-01-16",
"settlementWindowFrom": "2024-01-16",
"settlementWindowTo": "2024-04-15",
"guardPeriodTo": "2024-04-15",
"guardCurrency": "GBP",
"foreignCurrency": "USD",
"currencyPair": "GBPUSD",
"payReceive": "PAY",
"foreignAmount": 50000,
"guardRate": 1.312,
"paymentMarginAtInception": 0.015,
"midAtInception": 1.34,
"quoteTimeToLiveInSeconds": 60,
"guardAmount": 38109.75,
"guardFee": 512,
"effectiveRate": 1.2946,
"payLaterCreditFee": 12,
"guardMarginRate": 0.007,
"guardMargin": 296.02,
"volSpreadMultiplier": 2,
"valuationStrike": 1.34,
"valuationNotional": 101500,
"salesMarginRate": 0.007,
"salesMargin": 296.02,
"quoteTimestamp": "2024-10-18T12:30:40Z",
"spotBidPrice": 1.2345,
"spotAskPrice": 1.2347,
"historicVolatility": 0.1234,
"riskIndex": 0.5678,
"versionNumber": 1,
"updatedBy": "jbloggs24",
"updatedAt": "2024-10-18T12:30:40Z",
"createdAt": "2024-10-18T12:30:40Z",
"guardSettlementWindowTo": "2024-04-15T00:00:00Z",
"targetGuardAmountToSeekNetFees": 60000,
"salesMarginAmount": 296.02,
"reason": "Invoice protection for Q1 2024",
"requestedGuardAmount": 136010
}
}Changes
No recorded changes to this operation across all 1 revision of this API.