Skip to main content

Reference Data

Static reference data related to crypto pairs traded on the Bullish platform can be requested by submitting the SecurityListRequest [x] message. This can be used to request details about the market for one or more cryptocurrencies by setting:

  • SecurityListRequestType (559) = 0 (single security) and specifying Symbol(55), or

  • SecurityListRequestType (559) = 4 (all securities)

Table 17: SecurityListRequest [x] message

TagField NameReq'dTypeComments
< Standard Header >35 = x
320SecurityReqIDYStringUnique id of the request.
559SecurityListRequestTypeYintType of SecurityList Request being made 0 = Single Symbol 4 = All securities
55SymbolCStringRequired where SecurityListRequestType (559) = 0 (Single Symbol)
< Standard Trailer >

Upon receipt of the SecurityListRequest [x] message, the Bullish platform will respond with a single SecurityList [y] message containing a list of matching crypto instruments; this will be a single instrument if the SecurityListRequest [x] specified a single Instrument, or all instruments on the platform.

Note that the SecurityList [y] message is fragmented.

Table 18: SecurityList [y] message

TagField NameReq'dTypeComments
< Standard Header >35 = y
320SecurityReqIDYStringThe unique id of the request.
560SecurityRequestResultYintStatus result of the SecurityListRequest. See Error & Rejection Codes. 0 = Valid request 1 = Invalid or unsupported request 2 = Instrument not found
1607SecurityRejectReasonNintUsed to specify a rejection reason when SecurityResponseResult (560) = 1 (Invalid or unsupported request).
60TransactTimeYUTCTimestampTimestamp that this message was sent.
893LastFragmentNBooleanIndicates if this message in a fragmented response is the final one of the sequence
146NoRelatedSymYintNumber of symbols indicated in this message
→ 55SymbolYStringInstrument symbol
→ 1647NoRelatedInstrumentsYintAlways 2
→→ 1649RelatedSymbolYStringThe related symbol (either base or quoted currency)
→→ 1652RelatedSecurityTypeYStringThe type of the related symbol DIGITAL = Cryptocurrency CASH = Fiat currency
→ 969MinPriceIncrementYfloatMinimum price increment for a given instrument (i.e. the tick size)
→ 8000MinQtySizeYfloatMinimum quantity for a given instrument
→ 8001MaxQtySizeYfloatMaximum quantity for a given instrument
→ 8002PricePrecisionYintThe precision to which prices can be specified (integer representing the number of digits after the decimal point)
→ 8003QtyPrecisionYintThe precision to which quantities can be specified (integer representing the number of digits after the decimal point)
→ 8005MarginEnabledYBooleanWhether margin trading is enabled on this instrument or not.
< Standard Trailer >

Figure 17: Request reference data for a single instrument

Figure 18: Request reference data for ALL instruments