Skip to main content

ArchitectX Trade Connector

Features​

crypto-architectxConnector Key
Instruments
FUTURE
Request Types
SUBMITCANCELREPLACE
Order Types
LIMIT
Time In Force
GTCIOCDAY
Order ID Mapper
SEQUENCE
✗
Order Status Request
✓
Cancel On Disconnect
✗
Commission
✓
Post Only
✗
Fast Cancel
✗
Fast Replace

Notes​

Self-Match Prevention​

You can't turn off this option. Default value is the same as CANCEL_TAKER. Note that incoming order will be rejected, while resting order cancelled.

Cancel All Orders After​

cancelAllOrdersAfter settings provides "Dead Man's Switch" functionality to prevent unexpected losses from network malfunctions.

Upon connect the connector starts sending heartbeats (with interval defined in period), if exchange detects that heartbeat request is not arrived within specified timeout - it cancel all session orders.

Config block sample:

cancelAllOrdersAfter {
period = 25s
timeout = 60s
}

Symbology​

https://gateway.architect.exchange/api/instruments

Configuration​

Connector settings​

ParameterDefault ValueDescription
keylessfalseIf set true use username and password in ApiKey and ApiSecret fields.
accountDefault account sent on order requests.
useAccountfalseThe flag to define whether to use order account in preference of default account.
selfMatchPreventionDEFAULTSelf-trade prevention mode. Supported values: DEFAULT, CANCEL_RESTING, CANCEL_TAKING, CANCEL_BOTH.
cancelAllOrdersAfterHas two settings: period, timeout. This feature can work like Cancel-On-Disconnect behavior.
logHeartbeatfalseEnables heartbeat logging.

Supported order attributes​

KeyDescription
18Only available for limit orders. Allowed value: 6 (PostOnly).
7928Optional setting for Self-Trade Prevention function. Allowed values: CancelResting, CancelBoth, CancelIncoming.

Config sample​

connectors {
ARCHITECTX: ${template.connector.crypto.architectx} {
settings {
restUrl = "https://gateway.architect.exchange"
websocketUrl = "wss://gateway.architect.exchange/orders/ws"

apiKeys: [
{
apiKey = "<PUBLIC_KEY>"
apiSecret = "<PRIVATE_KEY>"
}
]
}
}
}