FIXSIM

v0.1.2
io.github.GammaThreeTrading/fixsim Checked 14 hours ago Published 2 months ago

Test FIX from Claude, ChatGPT, or Cursor: free sandbox FIX sessions or your own FIXSIM instances.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

fixsim_list_orders_out List outbound orders

Orders FIXSIM sent OUT on a session (created with fixsim_send_order). Pass clOrdId to fetch one.

ParameterTypeDescription
instance *string
session *string
apiKeystring | null
clOrdIdstring | null
limitintegerMax rows to return, newest first (default 25, max 200)

sandbox_get_status Check sandbox connection status

Is the user's FIX engine connected to the sandbox session? Returns state: connected, waiting (nobody logged on yet), disabled, or unknown.

ParameterTypeDescription
sessionId *string

fixsim_send_order Send a New Order Single

Have FIXSIM send a New Order Single (35=D) OUT on a session to the user's system, so they can test how their system handles inbound orders. Follow up with fixsim_list_orders_out and fixsim_list_executions_in to see what came back.

ParameterTypeDescription
clOrdId *stringClOrdID (tag 11) to assign; must be unique on the session
instance *string
ordType *stringOrdType (tag 40): 1=Market, 2=Limit
orderQty *numberOrderQty (tag 38)
session *string
side *stringSide (tag 54): 1=Buy, 2=Sell, 5=Sell short
symbol *stringSymbol (tag 55)
additionalTagsarray | nullExtra FIX tags, e.g. [{tag:59,value:"0"}]
apiKeystring | null
pricenumber | nullPrice (tag 44), required for limit orders

fixsim_list_orders_in List inbound orders

Orders the user's trading system sent INTO FIXSIM on a session (FIXSIM is the counterparty). Includes ClOrdID, symbol, side, quantity, remaining quantity, order status and the raw FIX message. Optionally filter by FIX OrdStatus code (tag 39): 0 new, 1 partially filled, 2 filled, 4 canceled, 8 rejected.

ParameterTypeDescription
instance *string
session *string
apiKeystring | null
limitintegerMax rows to return, newest first (default 25, max 200)
orderStatusstring | nullOptional FIX OrdStatus (tag 39) filter

fixsim_list_executions_in List inbound execution reports

Execution reports the user's system sent INTO FIXSIM on a session (when FIXSIM is the order sender and the user's system is the executing side). Optionally filter by ExecID (tag 17).

ParameterTypeDescription
instance *string
session *string
apiKeystring | null
execIdstring | nullOptional ExecID (tag 17) filter
limitintegerMax rows to return, newest first (default 25, max 200)

fixsim_act_on_orders Act on inbound orders

Respond to orders the user's system sent into FIXSIM: acknowledge, fully or partially execute, reject, cancel remaining, expire, done-for-day, restate, or accept/reject a pending cancel/replace. FIXSIM emits the matching execution reports on the FIX session. Give one or more ClOrdIDs; for executions supply lastPx and, for a partial, lastQty.

ParameterTypeDescription
action *stringOne of: Ack, FullyExecute, PartialExecute, CancelRemaining, DoneForDay, AckCancelOrdReplaceReq, AcceptCancelOrdReplaceReq, RejectCancelOrdReplaceReq, Reject, Delete, Restate, Expire
clOrdIds *arrayClOrdIDs (tag 11) of the inbound orders to act on
instance *string
session *string
apiKeystring | null
lastPxnumber | nullFill price (LastPx) for executions
lastQtynumber | nullFill quantity (LastQty) for a partial execution

sandbox_set_autofill Set sandbox auto-fill

Turn automatic fills on or off for a sandbox session. On: every order the user sends is filled immediately at the security's last price. Off (default): orders are acknowledged and wait for sandbox_act_on_order.

ParameterTypeDescription
enabled *boolean
sessionId *string

fixsim_cancel_order_out Send an Order Cancel Request

Have FIXSIM send an Order Cancel Request (35=F) for an order it previously sent out with fixsim_send_order.

ParameterTypeDescription
clOrdId *stringClOrdID of the order to cancel (becomes OrigClOrdID, tag 41)
instance *string
session *string
additionalTagsarray | null
apiKeystring | null
newClOrdIdstring | nullNew ClOrdID for the cancel request (tag 11); generated if omitted

fixsim_list_sessions List FIX sessions

List the FIX sessions on an instance with their FIX version, CompIDs, acceptor/initiator role, host/port, enabled and logged-in state, and sequence numbers.

ParameterTypeDescription
instance *stringInstance name from fixsim_list_instances
apiKeystring | null

fixsim_list_executions_out List outbound execution reports

Execution reports FIXSIM sent OUT on a session (acks, fills, partial fills, rejects, cancels). Pass clOrdId to see the full execution history of one order: ExecType, OrdStatus, LastPx/LastQty, CumQty, LeavesQty, AvgPx and the raw FIX.

ParameterTypeDescription
instance *string
session *string
apiKeystring | null
clOrdIdstring | nullOptional ClOrdID (tag 11) to narrow to one order
limitintegerMax rows to return, newest first (default 25, max 200)

fixsim_get_session Get FIX session

Get one FIX session's settings and live state (logged in?, sequence numbers, connection details).

ParameterTypeDescription
instance *string
session *stringSession name from fixsim_list_sessions
apiKeystring | null

sandbox_act_on_order Fill, reject, or cancel a sandbox order

Play the exchange for one order the user sent in: fill (full execution), partial (partial fill), reject, or cancel (cancel the remaining quantity). FIXSIM sends the matching execution report back to the user's engine.

ParameterTypeDescription
action *stringfill, partial, reject or cancel
clOrdId *stringClOrdID (tag 11) of the order
sessionId *string

fixsim_get_order_in Get inbound order

Get one inbound order by ClOrdID (tag 11), including its raw FIX message and audit trail. Use this to explain why an order was rejected or what state it is in.

ParameterTypeDescription
clOrdId *stringClOrdID, FIX tag 11
instance *string
session *string
apiKeystring | null

sandbox_get_orders List sandbox orders

Working orders the user's engine has sent into the sandbox session: ClOrdID, symbol, side, qty, filled, leaves, price, status.

ParameterTypeDescription
sessionId *string

sandbox_get_messages Read sandbox FIX message log

The FIX message log for a sandbox session, oldest first: logons, heartbeats, orders in, execution reports out, rejects. Each message has seq, timeUtc, inbound (true = user's engine sent it), msgType, raw FIX, and parsed tag/value fields. Pass afterSeq (the last seq you saw) to fetch only new messages. Use this to explain what happened on the wire.

ParameterTypeDescription
sessionId *string
afterSeqintegerReturn only messages with seq greater than this

sandbox_create_session Create sandbox FIX session

Create a free, anonymous FIX test session on the FIXSIM Developer Sandbox. No account or API key needed. Returns the connection card: host, port, the SenderCompID the user must put in tag 49, the TargetCompID for tag 56, BeginString, and the expiry (sessions last 4 hours, cap 100 application messages per day). The user's FIX engine connects as the initiator; FIXSIM is the acceptor and acknowledges every order. Keep the returned id; every other sandbox tool needs it.

ParameterTypeDescription
fixVersionstringFIX.4.0, FIX.4.2, FIX.4.4 (default) or FIX.5.0SP2 (rides FIXT.1.1)

sandbox_end_session End sandbox session

End a sandbox session now instead of waiting for it to expire. Frees the slot for the user's IP.

ParameterTypeDescription
sessionId *string

fixsim_send_raw_fix Send raw FIX messages

Send one or more raw FIX application messages OUT on a session as given (tag=value pairs separated by | or SOH). FIXSIM supplies the session header fields (BeginString, CompIDs, MsgSeqNum, SendingTime) and the checksum. Use for message types the other tools do not cover.

ParameterTypeDescription
fixMessages *arrayRaw FIX messages, e.g. 35=D|11=ORD1|55=IBM|54=1|38=100|40=2|44=150.25|59=0
instance *string
session *string
apiKeystring | null

fixsim_list_instances List FIXSIM instances

List the FIXSIM instances your API key can access. An instance is a hosted FIX engine; each holds one or more FIX sessions. Start here to learn the instance names other tools need.

ParameterTypeDescription
apiKeystring | nullFIXSIM API key. Omit when the connector sends it as a header.

fixsim_list_securities List securities

Securities (symbol, last price, CUSIP, ISIN) configured on an instance. FIXSIM prices fills from these.

ParameterTypeDescription
instance *string
apiKeystring | null

sandbox_get_session Get sandbox session

Re-fetch a sandbox session's connection card by id, including whether auto-fill is on and when it expires.

ParameterTypeDescription
sessionId *stringSession id from sandbox_create_session