FIX와 시세 – ITCH 그리고 SBE

1.
시세와 주문은 모든 트레이딩에서 기본입니다. 시장의 흐름을 알 수 있도록 하는 시세, 시장에 참여하는 주문, 여기에 트레이더의 전략이 결합할 때 트레이딩은 완성입니다. 현재 한국거래소는 자체로 개발한 방식으로 시세를 제공합니다. 흔히 시세분배시스템이라고 합니다. 시세분배를 위한 프로토콜을 거래소마다 다릅니다.주문을 위한 프로토콜이 다른 이유와 같습니다.

FIX는 주문프로토콜의 표준으로 출발했지만 발전하면서 시세까지를 포함하여 발전했습니다. FIX를 시세에 적용할 때 FIX가 채택한 Tag=Value 형식은 시세처리에 부담을 줍니다. 이를 해결하기 위하여 도입한 것이 FAST입니다. Binary Encoding으로 시세데이타의 크기를 줄이자는 의도입니다.

그동안 시세프로토콜과 관련한 이슈는 두가지였습니다. 첫째 인코딩방식입니다. FAST가 채택한 방식의 원저적자가 소송을 제기하였습니다.

In 24 August 2011, a firm called Realtime Data claimed to own six patents protecting compression technologies including FAST. Realtime Data offered a “Covenant Not to Sue” through ICAP Patent Brokerage, effectively selling the right to use these compression technologies for a significant fee. Exactly one month later, Realtime Data filed several court cases for the infringement of US patents.

이 때문에 FIX/FAST를 시세표준으로 사용하던 거래소들이 대응을 하여야 할 상황이었습니다. 이런 배경에서 나온 인코딩방식이 Simple Binary Encoding입니다. 현재 RC2까지 나왔습니다.

FPL Simple Binary Encoding Specification

한국거래소의 시세데이타가 텍스트인 반면 SBE를 채택한 거래소의 데이타는 바이너리입니다. 예를 들어 CME의 MDP3도 SBE를 채택하였습니다.

Market Data Encoding – MDP3 Implementation

LMAX에서 Disruptor를 만들었던 Martin Thompson의 설명은 무척 큰 도움을 줍니다.

Simple Binary Encoding

Martin이 LMAX를 떠나서 만든 Real Logic. 이 회사도 Simple Binary Encoding에서 개발자를 위한 설명을 구할 수 있습니다. Java, C++, .NET의 소스도 있습니다.

2.
둘째는 ITCH입니다. ITCH는 NASDAQ이 채택한 시세분배프로토콜입니다. 전세계 많은 거래소들이 채택하고 있습니다. NASDAQ으로부터 매매체결시스템을 도입한 거래소들입니다. FIX는 ITCH의 방식을 도입하려고 하는 시도를 해왔습니다. 더많은 고객을 만들고 Low Latency환경에서 ITCH가 가지는 장점을 채택하고자 합니다.

Is FIX Protocol Use Declining?

FIX recognizes that (a) ITCH has features that make it more suitable for high-speed, high-volume marketplaces than heavier FIX messages—for example, why represent numbers in text, as FIX does, when you can save bandwidth and latency by representing them in binary values?—and (b) ITCH has achieved widespread adoption in equities markets, and is now pushing into others, and (c) messaging protocols are not an area where market participants can gain competitive advantage, and should be standardized.
“There’s no competitive advantage in how bits and bytes are sent around the world, so we can all work together to make that more efficient,” says Sassan Danesh, partner at Etrading Software, which is conducting the gap analysis between ITCH and FIX. “ITCH is pretty well established, especially in the equities and listed world—and that’s beginning to merge with the over-the-counter worlds as regulators drive more OTC instruments onto electronic platforms, while other cash markets such as fixed income are now becoming high-frequency enough to demand low-latency data.”
Opening Cross: FIX That ITCH, But Don’t Fix the Latency Race중에서

FIX가 ITCH를 설명하기 위하여 ITCH Example도 만들었습니다. 이런 노력의 결과 FIX가 확장이라는 형식으로 ITCH를 채택하기로 결정한다고 합니다.

FIX Market Data Protocol Spec Nears Completion

혹 ITCH Feed Handler가 궁금하시면.

시세포맷의 변화가 매매시스템에 미치는 변화

FIXSpec이 재미있는 플러그인을 내놓았습니다. 세계 거래소들이 사용하는 프로토콜을 검사할 수 있는 크롬브라우저용 플러그인입니다.

FixSpec: Global Trading Specs In 3 Clicks

불행하게도 설치해서 검색을 해보니 ‘Korea Stock Exchnage’는 없습니다.ㅠㅠㅠ

pinned

Leave a Comment

이메일 주소는 공개되지 않습니다. 필수 필드는 *로 표시됩니다

이 사이트는 스팸을 줄이는 아키스밋을 사용합니다. 댓글이 어떻게 처리되는지 알아보십시오.