Swissquote Trade Connector
Features
fix-swissquoteConnector KeyNotes
Cancel On Disconnect
Orders are cancelled on disconnect by default.
Message Recovery
Swissquote does not resend missed messages.
Client Order ID
The length of ClOrdID(11) must not exceed 64 characters.
The connector passes {SOURCE_ID}${EMBER_ORDER_ID} value in ClOrdID(11).
Replace
Order replacement is disabled because Swissquote does not support in-flight order modification.
Swissquote expects the actual outstanding quantity as the replacement quantity, which can lead to overfill in trade-in-route scenarios.
Connectivity
Clients must establish a two-way SSL connection to the FIX gateway using certificates issued by Swissquote.
For connection details and certificate requests, contact crypto.fix.api.support@swissquote.ch.
Stunnel configuration:
[SWISSQUOTE]
client = yes
accept = 17000
connect = fix.sqx.swissquote.ch:7000
cert = C:\Swissquote\sq.cert.prod.cer
key = C:\Swissquote\sq.key.prod.key
verify = 0
Symbology
Currency pairs in BASE/QUOTE format, e.g. BTC/USDT.
Schedule
Trading is available 24/7/365. Sequence numbers are reset daily at or near 23:00 UTC,
at which point the server sends a Logout message to close the session.
Configuration
Connector settings
| Parameter | Default Value | Description |
|---|---|---|
| username | Username. | |
| password | Password. | |
| account | Account(1). | |
| useAccount | false | The flag to define whether to use order account in preference of default account. |
| cancelOnDisconnect | DISCONNECT_OR_LOGOUT | Cancel-On-Disconnect type. Valid values: NONE, DISCONNECT_ONLY, LOGOUT_ONLY, DISCONNECT_OR_LOGOUT. |
Supported order attributes
| Key | Description |
|---|---|
| 18 | Pass 6 to send Post Only order. |
Config sample
connectors {
SWISSQUOTE : ${template.connector.fix.swissquote} {
settings {
host = "<STUNNEL_HOST>"
port = <STUNNEL_PORT>
senderCompId = "<SENDER_COMP_ID>"
targetCompId = "<TARGET_COMP_ID>"
username = "<USERNAME>"
password = "<PASSWORD>"
}
}
}