Skip to content
developers

FX

Settlement and market hours

Which day each term is credited, when the FX market opens and how to simulate real hours in the sandbox.

Sandbox · coming soon

Settlement terms

TermCreditedDefault spread in the sandbox
SAME_DAYThe same business day60 bps
NEXT_DAYThe next business day45 bps
SECOND_DAYThe second business day35 bps

Business days exclude weekends and Colombian holidays. settlementDate on the quote and the conversion tells you the exact date.

In the sandbox, a longer term quotes a smaller spread: so you can test how the factor changes between terms.

Market hours

LimitValue
REAL FX hours (business days, Bogotá)08:05 – 15:30
Last time to quote SAME_DAY13:00

Outside the hours the quote answers 422 the fx market is closed, and after the cutoff SAME_DAY answers 422: quote NEXT_DAY or SECOND_DAY.

HTTPerrorcauseDescription
422UnprocessableEntityApiErrorthe fx market is closedThe FX market is closed (REAL hours: 08:05–15:30 on Bogotá business days). The sandbox defaults to ALWAYS_OPEN.
422UnprocessableEntityApiErrorSAME_DAY settlement is not available after %sAfter the cutoff SAME_DAY is not available; quote NEXT_DAY or SECOND_DAY.

In the sandbox

By default the sandbox uses ALWAYS_OPEN hours (like production's test users), so you can test at any time. To test the real hours, switch marketHours to REAL in the dashboard.

SettingDefaultEffect
verifiedtrueWhether the user is verified. Off, POST /v1/transfer answers 403 the user is not verified.
copAccounttrueWhether the COP balance account exists. Off, withdrawals answer 422 the user does not have a COP balance account.
canUseAchDispersiontrueWhether the user may disperse by online ACH (on by default, as in production). Off, everything that is not Bre-B goes MANUAL.
dispersionFee{ fixed: 0, rate: 0, includeOwnAccounts: false }Dispersion fee: round(fixed + amount × rate / 100), added to the amount when the balance is checked. 0 by default; own accounts are exempt unless includeOwnAccounts.
achDailyCount10000How many online ACH withdrawals fit in a day (10,000 by default, as in production). Beyond it, the withdrawal goes MANUAL.
achDailyAmount999999999999999Daily sum of online ACH withdrawals (999,999,999,999,999 COP by default, as in production). Beyond it, the withdrawal goes MANUAL.
marketHours"ALWAYS_OPEN"ALWAYS_OPEN (default, like production's test users) or REAL: 08:05–15:30 on business days and SAME_DAY only before 13:00.
midRate3950Synthetic COP/USD mid rate (3,950.00 by default). Not a real quote.
spreadBps{ SAME_DAY: 60, NEXT_DAY: 45, SECOND_DAY: 35 }Spread in basis points per settlement term, added when buying USD and subtracted when selling: SAME_DAY 60, NEXT_DAY 45, SECOND_DAY 35.

To skip waiting for the settlement date, take the conversion to COMPLETED:

POST/v1/sandbox/transactions/{transactionId}/advanceAdvance a transactionSandbox only