Skip to main content

Broadcast Messages

πŸ”‘ Logon Request (Client to WFH)​

This message is sent by the client for establishing a session with WFH for broadcast subscription. The WFH will authenticate the user by validating

The logon message and respond with a Logon Response message.

TagFieldNameReq’dData type (Max)Comment
MessageHeaderYMessage header to be filled with message code = 101
67User IdYString(10)Max Len 10
68PasswordYString(8)Condition:Password should be between 6 and 8 characters Paasword should be alphanueric
Special characters not allowed Eg: ][ ~ @ # $ % ^ & * ( ) - \ + { \ / = ?
401API Token TypeOString(1)1 - For Password
2 – Access Token

Tag 68 will be used for pwd/token verification

Logon Req: 63=FIX3.0|64=101|65=75|66=2004-05-04 233022|67=user1|68=123456​

** ⚠️ Remarks:**

The format of the row data field in logon request message (sent by Client) is as follows:

  • Message Header with logon request message code and length of the row data field
  • User Id, max length is 10 char
  • Password and New Password should be between 6 and 8 characters

πŸ“₯ Logon Response (WFH to Client):​

For every logon request, WFH will send the Logon response message to Client.

TagFieldNameReq’dData type (Max)Comment
MessageHeaderYMessage header to be filled with message code = 102
70Logon StatusYShortValue to identify the logon status.
10000 – Login Successful
97Days to ExpireOShortNo. of days for expire. This will be populated within 15 days of expiry of the account. In this case, the logon status will be 10004.
1Market Segment IdYLongLogin allowed for the user.

Broadcast mechanism is developed over a publish/subscribe model. In order to receive market information, user of the API will need to subscribe to the security as well as the information.

πŸ” Multiple Touchline Request (Client to WFH)​

The Market Watch is send by User to subscribe/unsubscribe to the touchline broadcast (best buy qty, buy value, sell qty, sell value.etc) message for any specified security. Request can be send as Multiple Pair of Segment Id and Token. The Response for Multiple touchline Request is Market Snapshot Information.

TagFieldNameReq’dData type (Max)Comment
MessageHeaderYMessage header to be filled with message code = 206
1Segment IdYLong
7Security CodeYLong
49Response TypeYShort1 = Touchline with fixed length native data
0 = Normal touchline
200LTP ChangeOShort1 – Send Touchline Response on
LTP change
230Operation TypeYShort1 – Subscribe
2 - Unsubscribe

Example:

63=FIX3.0|64=206|65=80|1=1$7=22|1=1$7=1594|1=3$7=505537|1=3$7=500105|1=1$7=5 53|1=3$7=526881|1=3$7=500180|1=1$7=11630|230=1

πŸ“₯ Multiple Touchline Response [Response Type = 0] (WFH to Client)​

The Market Watch Response is send by WFH whenever the update is received from exchange for the specified security. This message will give best buy qty, buy price, sell qty, sell value etc.

TagFieldNameReq’dData type (Max)Comment
MessageHeaderYMessage header to be filled with message code = 209
1Segment IdYLong
7Security CodeYLong
2Buy QtyOLong
5Sell QtyOLong
3Buy PriceOLong
6Sell PriceOLong
8Last Trade PriceOLong
9Last Trade QuantityOLong
73Last Trade TimeOString(21)
74Last Update TimeYString(21)
88Open InterestNLong
54NetChangeFromPrevCloseOStringIn Rs
76Close PriceOLong
75Open PriceOLong
77High PriceOLong
78Low PriceOLong
79VolumeOLong
80Average Traded PriceOLongAverage Traded Price currently zero
81Total Buy QtyOLongcurrently zero
82Total Sell QtyOLongcurrently zero
93Life Time HighOLongcurrently zero
94Life Time LowOLongcurrently zero
38Market TypeOStringApplicable only for NCDEX spot
465Open Interest PercentageOLong
466High Open InterestOLong
467Low Open InterestOLong
380Daily Price RangeOString
499Trade Execution RangeOString

Example:

63=FIX3.0|64=209|65=272|66=04092012 071138|1=1|73=2012-09-04 152908|7=22|79=121758|8=130035|54=-0.63|9=395|80=130117|74=2012-09-04 152908|2=5|3=130035|5=59|6=130100|81=99436|82=82671|76=130860|75=130770|77=1 30770|78=129615|88=|93=0|94=0|393=-8.25|80=130117|380=0-0|499=0-0|399=100

πŸ“ Multiple Touchline Response [Response Type = 1] (WFH to Client)​

The Market Watch Response is send by WFH whenever the update is received from exchange for the specified security. This message will contain following data.

TagFieldNameReq’dData type (Max)Comment
MessageHeaderYMessage header to be filled with message code = 51
50Native Fixed Length DataYThis tag will contain fixed length data as mentioned
Segment IdYLong
Security CodeYLong
Last Update TimeYLongIt is no of seconds that have elapsed since 01/01/1980
Last Trade TimeYLongIt is no of seconds that have elapsed since 01/01/1980
Last Trade PriceYLong
Buy QtyYLong
Buy PriceYLong
Sell QtyYLong
Sell PriceYLong
Open PriceYLong
High PriceYLong
Low PriceYLong
Close PriceYLong
Decimal LocatorYLong
Previous Day Close PriceYLong

Example

63=FIX3.0|64=51|50= {Segment Id Security Code …… Previous Day Close Price}

πŸ“Š Best Five Subscription Request (Client to WFH)​

The Best Five Request is send by User to subscribe/Unsubscribe the full broadcast (best five buy qty, buy value, sell qty, sell value) message for specified security, which includes the market depth as provided by the exchange.

TagFieldNameReq’dData type (Max)Comment
MessageHeaderYMessage header to be filled with message code = 127
1Segment IdYLong
7Security CodeYLong
230Operation TypeYShort1 – Subscribe
2 – Unsubscribe

πŸ“€ Best Five Information (WFH to Client)​

The Best Five Response is sent by WFH whenever the update is received from exchange for specified security. This message will give top five buy qty, buy price, sell qty, sell value etc.

TagFieldNameReq’dData type (Max)Comment
MessageHeaderYMessage header to be filled with message code = 128
1Segment IdYLong
7Security CodeYLong
74Last Update TimeYString(21)
73Last Trade TimeOString(21)
8Last Trade PriceOLong
9Last Trade QuantityOLong
81Total Buy QtyOLong
82Total Sell QtyOLong
76Close PriceOLong
75Open PriceOLong
77High PriceOLong
78Low PriceOLong
79VolumeOLong
80Average Traded PriceOLongAverage Traded Price
54NetChangeFromPrevCloseOStringIn Rs
88Open InterestNLong
380Daily Price RangeOString
93Life Time HighOLong
94Life Time LowOLong
465Open Interest PercentageOLong
466High Open InterestOLong
467Low Open InterestOLong
499Trade Execution RangeOString
This substructure will repeat 5 times
11B/S FlagYShort1 for Buy and 2 for Sell
14PriceYLongB/S Price
12QuantityYLongB/S Quantity
37No. of OrdersYLongThis signifies No. Of Buyers
Sellers

Explanation for above Message:

Tag 14, 12 and 37 will be receive 5 times for both Buy and Sell.

▢️ Pause/Resume Request (Client to WFH)​

This method can be use to pause or resume the broadcast subscription for user when portal / app is in minimine mode or broadcast is not needed temporarily. The Pause/Resume message is send by user to WFH. when App is minimized / Activated for any specified security. Request can be send as Multiple Pair of Segment Id and Token.

TagFieldNameReq’dData type (Max)Comment
MessageHeaderYMessage header to be filled with message code = 106
230Operation TypeYShort1 – Pause
2 – Resume

Example:

  • 63=FIX3.0|64=106|65=80|66=19:02:31|230=1 (for Pause)
  • 63=FIX3.0|64=106|65=80|66=19:02:31|230=2 (for Resume)

🏷️ Multiple LTP Touchline Request (Client to WFH)​

The Market Watch is send by User to subscribe/unsubscribe to the ltp touchline broadcast message for any specified security. Request can be send as Multiple Pair of Segment Id and Token.

TagFieldNameReq’dData type (Max)Comment
MessageHeaderYMessage header to be filled with message code = 347
1Segment IdYLong
7Security CodeYLong
230Operation TypeYShort1 - Subscribe
2 - Unsubscribe

Example

63=FIX3.0|64=347|65=80|1=1$7=22|1=1$7=1594|1=3$7=505537|1=3$7=500105|1=1$7=5 53|1=3$7=526881|1=3$7=500180|1=1$7=11630|230=1

πŸ” LTP Touchline Response (WFH to Client)​

The LTP Touchline Response is send by WFH whenever the update is received from exchange for the specified security. This message will give best LTP, LTT, ClosePrice, Decimal Locator.

TagFieldNameReq’dData type (Max)Comment
MessageHeaderYMessage header to be filled with message code = 348
1Segment IdYLong
7Security CodeYLong
8Last Trade PriceOLong
74Last Update TimeYString(21)
76Close PriceOLong
399Decimal LocatorOString

Example

63=FIX3.0|64=348|65=272|66=04092012 071138|1=1|7=22|8=130035|74=2012-09-04 152908|76=130860|399=100