![]() | ||||||
| Financial Quote Service | ||||||
|
|
||||||
|
FQS User GuideThe Financial Quote Service (FQS) is a service product of SWX Swiss Exchange. It allows one to interrogate stock quotes and market indices across the Internet. The quotes stem from the Swiss Market Feed (SMF).FQS is targeted at listed companies which want to publish on their website quotes and historic charts of their own stocks. It provides easy access to the relevant data leaving the customer complete freedom about its presentation. An FQS client program does not need to preserve state. It can obtain the required information from the FQS server without any feed processing. FQS offers the choice between real-time data and delayed data (currently 15 minutes). Delayed data can be disseminated without royalty fees. Real-time data requires a Data Dissimination Agreement (Closed User Group) and per-user fees. For pricing information please contact our SWX/FQS Product Manager . Internet accessFQS is accessible from the Internet on host fqs.swx.com through port 4241 (real-time) and 4242 (delayed). Access is restricted to the small set of IP addresses authorized for each company. Furthermore the information provided is restricted to the valor set registered for the company. This set typically contains the securities issued by the customer and index values which may serve as benchmarks.There is no restriction on the number of parallel connections. However, SWX expects that customers implement some form of caching in order to avoid that each hit on their webpage initiates a new FQS connection. For example, an FQS client program running as daemon on the customer host formats in regular intervals an HTML or GIF file which is then served to all web clients visiting the site during that interval. Basic protocolFQS uses a line-oriented protocol similar to other standard Internet protocols such as SMTP. The client sends a command and the server responds with one or more lines of output. The communication is synchronous, i.e. the server sends output only in response to a command and the client cannot interrupt an ongoing commmand.The reply is human-readable with a regular structure easily recognizable by a client program. A client program can always determine from the first four characters of each line whether the server will send more output or is ready to accept the next command from the client. Line separators follow Unix conventions, i.e. lines are terminated by a Line Feed. A Carriage Return preceding the Line Feed is ignored on input but never output. Commands consist of blank separated tokens with one command per line. Command verbs and arguments are all case-sensitive. Reply codes follow the conventions established in RFC 821 appendix E. A client program should only look at the reply code. The remaining text is for human consumption and its format may change without notice. Example session
telnet fqs.swx.com 4242
Trying yyy.zzz.1.1...
Connected to fqs.swx.com.
Escape character is "^]".
220 Swiss Exchange Financial Quote Server ready.
211 Restricted to 41 valors.
select SMI SXGE
211 Selected 2 valors.
snap ValorSymbol LastPrice LastTime
250-Tab separated attribute values follow:
SMI 7264.9 16:57:55
SXGE 4563.24 16:56:58
250 End of data.
Bold characters indicate user input.
Lines 2-4 stem from the telnet program used here as interactive
client.
Lines 5-6 are the standard reply for a successful connection.
Line 8 is a single-line reply.
Line 10-13 are a multi-line reply.
Connection setupPort 4241 is served by a relay process on the firewall host. This relay checks the client authorization and restricts the valor set before connecting the client through to the FQS daemon. The relay port is always active but depending on the state of the FQS daemon the following replies can occur:If the FQS daemon is running and ready to receive commands, it replies immediately with the two lines: 220 Swiss Exchange Financial Quote Server ready. 211 Restricted to nn valors.If the FQS daemon has recently been started and is still in the recovery phase, the reply is: 221 Swiss Exchange Financial Quote Server coming up. 211 Restricted to nn valors.The first line is output immediately while the second line is delayed until the end of the recovery phase, which may last up to 15 minutes. Therefore a client program should abandon immediately after seeing the reply code 221, unless it is prepared to remain blocked for several minutes. If the FQS daemon is down, or if the client host is not authorized, the connection is closed immediately without any output. The FQSprotocol implies that during off-hours there can be periods when no data is flowing for hours or even days. Therefore it is recommended to use setsockopt(SO_KEEPALIVE) in the client program in order to trap defunct connections. If connecting through a firewall, make sure that the timeout for idle TCP connections imposed by the firewall software is longer than the keepalive timer. CommandshelpThe help command has no arguments. It always outputs a 214 multi-line reply with a description of all available commands. The format of the output is unspecified.help 214-The following commands are recognized: help : Help on commands. restrict symbol|number|group|attr=value...symbol|number|group|[!]attr=value[|value2...]...|attr<value...|attr>value...|[!]attr^value[|value2...]... : Restrict valor set select symbol|number|group|attr=value...symbol|number|group|[!]attr=value[|value2...]...|[!]attr<value...|[!]attr>value...|[!]attr^value[|value2...]...|[!]attr~value[|value2...]... : Select valor set date [from] [to|+n|-n] : Define date range snap attribute... : List attributes with one line per valor corr attribute... : List correction attributes with one line per valor and trade date sum attribute... [by attribute...] : Sum attributes where by-list has same value feed attribute... : List attributes and start feed of changes paid symbol|number [interval] [date] : List paid prices nav symbol|number [interval] [date] : List net asset values quit : Close connection 214 That's all folks. restrictThe restrict command is used by the relay process to define the authorized valor set depending on the client host. A client program may not use this command.selectThe select command defines the valor set for subsequent snap, feed and corr commands. The arguments are a list of valor identifiers. A valor identifier can be a valor symbol or valor number.Example: Nestlé registered shares and Swiss Market Index:
select NESN SMI
211 Selected 2 valors.
snap ValorNumber ValorSymbol ShortName
250-Tab separated attribute values follow:
213768 NESN NESTLE N
998089 SMI SMI
250 End of data.
In a few rare cases the same valor symbol is allocated with
different exchange codes.
In order to avoid ambiguities the exchange code can be appended to
the valor symbol or number separated by a colon.
Otherwise a search order of exchange codes "1", "4", "7", "9", "8" is
applied:
select SXMI SXMI:8
211 Selected 2 valors.
snap ValorNumber ValorSymbol ExchangeCode ShortName
250-Tab separated attribute values follow:
998769 SXMI 9 UEBRIGE INDUSTRIE
441094 SXMI 8 DJSUR Ex UK Media
250 End of data.
If the argument list contains invalid or unauthorized valor
identifiers, each one generates a 101 reply:
select NESN SMI SPI 101 Valor SPI not found. 211 Selected 2 valors. The argument list may also contain terms of the form name=value, or name<value, or name>value, or name^value, or name~value, selecting all valors for which the named attribute is equal to, is less than, is greater than, starts with, or contains the given value. Furthermore, value may take the form value1|value2|...|valueN for the tests on equality, starts-with, or containment; in this case, the relation is verified on each of the values. Finally, it is possible to negate each a term by preceeding it with an exclamation mark ('!'). The test distinguish between numeric and string attributes. (Numeric attributes are flagged by a "#" in the output from the snap command without arguments.) For numeric attributes only the "=", "<", ">" operators and with a single value are allowed. Non-numeric values such as "Market" in BidPrice are treated as zero. There are no "<=" or ">=" operators. They can be emulated using the negation, e.g. "!LastPrice>10" instead of "LastPrice>=10". For string attributes diffenences in case and accenting are ignored, except for the equality operator. For example, "UnderlyingDescription~nestle" matches "NESTLE" and "Nestlé" but "ValorSymbol=nesn" does not match "NESN". A syntax character such as "&" or "|" cannot appear directly in value string but must be written as "\xx" where xx is its hexadecimal ASCII code. For example, to search for "S&P" use "UnderlyingDescription~S\26P". For example, select ValorSymbol=NESN is equivalent to select NESN under normal circumstances. However, if the symbol is ambiguous (e.g. due to a stock split where usually the same symbol is reassigned to the new share), the form select ValorSymbol=symbol selects all valors, while select symbol picks only the most recently active valor. If a valor is traded simultaneously in different currencies, care must be taken to specify the trading base currency in the symbol as select NESN/CHF. Otherwise, the rule described above for picking a single valor matching the symbol will choose the currency unpredictably. Note that the selection requires textual identity to the value as formatted by the snap command. For example, select ValorNumber=80044 does not match because valor numbers are formatted with leading zeroes. Several selection terms may be concatenated by & to form a logical-and expression. For example, select ProductSymbol=NESN&ExpirationMonth=200012 selects all NESN stock options with expiration in December 2000. The special argument "*" selects all authorized valors. The argument "*nn" is equivalent to "GroupCode=nn". An argument of the form %symbol selects all valors belonging to the basket designated by the symbol. Any index based on that basket is not included; it has to be specified explicitly: select %SMI SMI 211 Selected 30 valors.The last argument of the form %symbol defines the basket used for subsequent snap, feed and corr commands. An argument of the form !symbol selects all Eurex stock options with specified product symbol. The argument "!symbol" is equivalent to "ProductSymbol=symbol&TradingState=T", while the argument "symbol" is equivalent to "ValorSymbol=symbol&ProductSymbol="". The underlying itself is not included; it has to be specified explicitly:
select !BMW
211 Selected 108 valors.
select BMW
211 Selected 1 valors.
select !BMW BWM
211 Selected 109 valors.
snap GroupCode ValorSymbol ProductSymbol
250-Tab separated attribute values follow:
67 BMW BMW
0 BMW
250 End of data.
Accordingly, an argument of the form !%symbol
selects all derivatives on valors belonging to the
basket designated by the symbol:
select !%DAX 211 Selected 4518 valors.Without arguments the select command reports the number of currently selected valors: select * 211 Selected 41 valors. select 211 Selected 41 valors.If the valor set is empty, the final reply code is 210 instead of 211: select SPI 101 Valor SPI not found. 210 No selection. select 210 No selection. dateThe date command defines the range of trading dates for snap and corr commands. The command may be used with zero, one or two arguments:date current trading date date yyyymmdd: single trading date date yyyymmdd yyyymmdd: range from start date to end date date yyyymmdd +nn: range from start date to nn trading days into the future date yyyymmdd -nn: range until end date from nn trading days in the past The default setting before explicitly using the date command is to select only the current trading date. The arguments must be valid calendar dates. A non-trading date is converted to the preceding trading date. The result of the date command is a 210 multi-line reply with one line for each trading date in the defined range: date 19981221 +5 210-Selected dates: 19981221 19981222 19981223 19981228 19981229 19981230 210 That's all folks. snapThe snap command allows one to obtain a snapshot of the current market information. Imbedded in a 250 multi-line reply there is one line of output for each valor in the set defined by the preceding select command and for each trading date in the range defined by the preceding date.Each line contains the TAB-separated values of the attributes named in the argument list of the snap command:
select NESN SMI
211 Selected 2 valors.
snap ValorSymbol LastPrice LastTime
250-Tab separated attribute values follow:
NESN 2925 16:59:54
SMI 7389.5 17:19:44
250 End of data.
Note that the first attribute value is preceded by a TAB
character. Undefined attribute values are output as empty string,
i.e. appear as two consecutive TAB characters.
Invalid attribute names in the arguments list lead to a 100 reply
and are output as undefined values:
snap ValorSymbol lastprice LastTime
100 Attribute lastprice not known.
250-Tab separated attribute values follow:
NESN 16:59:54
SMI 17:19:44
250 End of data.
When used without arguments the snap commands outputs
all possible attribute names in a 214 multi-line reply:
snap 214-The following attributes are recognized: AcceptOrdersDate AccruedInterestCalcCode AccruedInterestCalcDesc AccruedInterestDaysInYear AccruedInterestFromDate AdjustedOpenInterestDate AdjustedOpenInterestVolume AdjustmentFactor AllocatedNumber AmountInIssue AnnualInterestFraction AnnualInterestRate AnnualPremiumFraction AskAverage AskBookAverage AskBookCumulated AskBookOrders AskBookPrice AskBookQuotes AskBookVolume AskDepth AskNumOrders AskNumQuotes AskPrice AskSpread AskVolume AssetClass AssetClassCode AssetClassDesc AssociatedNumberInIssue AutomaticSettlementFlag AverageSpread Band BarrierBasisTypeCode BarrierLevel BarrierTypeCode BidAverage BidBookAverage BidBookCumulated BidBookOrders BidBookPrice BidBookQuotes BidBookVolume BidDepth BidNumOrders BidNumQuotes BidPrice BidSpread BidVolume BloombergLocalSymbol BloombergVtxSymbol CalculationMethod CcpMemberId Certificates ClearingOrgCode ClearingOrgName ClosingDelta ClosingDiff ClosingNetAssetValue ClosingPrice ContractConditions ContractGeneration ContractRatio ContractSize ContractType ContractVersion CouponAmount CouponAmountYearly CouponRate CoverRatio DailyHighPrice DailyHighTime DailyLowPrice DailyLowTime DailyOffBookHighPrice DailyOffBookHighTime DailyOffBookLowPrice DailyOffBookLowTime DailySettlementDate DailySettlementPrice DeliveryTypeCode DerivativeLinkType DerivativeLinkTypeCode DerivativeLinkTypeDesc DerivativeSecTypeCode DerivativeSubtypeCode DerivativeTypeCode DistributionPolicy DividendEntitlementFlag DividendFrequencyCode DividendPayments Divisor EarliestExerciseDate EarliestRedemptionDate EntitlesToUnit Exchange ExchangeCode ExchangeSymbol ExDate ExDividendDate ExDividendType ExerciseCurrencyCode ExerciseDate ExerciseLimit ExercisePrice ExercisePricePerUnitFlag ExercisePriceSpread ExpirationDate ExpirationMonth ExpirationTime ExRightDate FeedName FirstInterestPaymentDate FirstTradingDate FixedExerciseExchangeRate FixingDate FlatCode FlatFlag ForeignCurrencyInterestFlag ForeignInterestCurrencyCode FractionType FreeFloat FreeFloatFraction FundVolume FurtherConditionsFlag FurtherConditionsText FutureFixedDate FutureFixedPrice FutureFixedTime GeographicalAreaCode GeographicalAreaDesc GroupCode GuaranteeTypeCode GuaranteeTypeDesc ICBIndustry ICBSector ICBSubsector ICBSupersector IncreaseOfFee InDefaultFromDate IndexCalculationCount IndexCalculationMethod IndexMarketValuePercentage IndexStockUpdateCount IndexStockUpdateDelta IndicativeOfficialClose IndicativePriceMinimum IndPrcMinCurrency IndPrcMinDate IndPrcMinText IndustrySectorCode IndustrySectorDesc InstrumentTypeCode InterestCalculation InterestComponentFlag InterestFraction InterestFrequency InterestFrequencyCode InterestFrequencyIndicator InterestRate InterimProfit InvestmentVehicleType ISIN IsoInstrumentTypeCode IssueCondition IssueCurrencyCode IssuePrice IssuerCode IssuerNameShort IssueYear KnockoutFlag KnockOutFlag LastAskPrice LastAskSpread LastAskTime LastAskVolume LastBidPrice LastBidSpread LastBidTime LastBidVolume LastDate LastDelta LastDiff LastOffBookDate LastOffBookPrice LastOffBookTime LastOffBookVolume LastOrderBookMidPrice LastPrice LastTime LastTradingDate LastVolume LatestExerciseDate LegalStructureCountryCode LegalStructureCountryDesc Liberierung ListingMemberOrgAbbrev ListingTypeCode ListingTypeDesc ListingTypeIndicator ManagementFee Market MarketDate MarketDelay MarketSegment MarketSegmentFromDate MarketState MarketTime MaturityDate MaturityDateAlt MaxInterestRate MinInterestRate MinmHiddenRoundLotSize MinmHiddenVblRoundLotSize MinmNeeded MinmOpeningDuration NetAssetDate NetAssetTime NetAssetValue NominalCurrency NominalValue NonVerse NonVerseInSettlementFlag NSIN NumberInIssue NumberNeeded OffBookClosingPrice OffExchangeReversalTurnover OffExchangeReversalVolume OffExchangeTurnover OffExchangeVolume OfficialCloseStatistic OfficialNetAssetDate OfficialNetAssetTime OfficialNetAssetValue OnMarketReversalTurnover OnMarketReversalVolume OnMarketTurnover OnMarketVolume OpeningPrice OptionStyleCode OptionTypeCode OptionTypeDesc OrderbookState OriginalStrikePrice PaybackCurrencyCode PaybackValue PaymentDate Peculiarities Performance PerformanceWeek PotentialOpeningPrice PotentialOpeningVolume PreliminarySpecialOpenQuotation PremiumFraction PreviousClosingPrice PreviousDate PreviousMonthDate PreviousMonthPrice PreviousPreviousMonthDate PreviousPreviousMonthPrice PreviousPreviousYearDate PreviousPreviousYearPrice PreviousYearDate PreviousYearPrice PriceStepGroupCode PriceStepGroupDesc ProductBrand ProductGroup ProductId ProductISIN ProductLine ProductSymbol ProductType Promoter RedemptionCondition RedemptionNoticePeriod RedemptionPrice RelevantShares ReportingParamCode ReportingParamDesc ReutersLocalRIC ReutersVtxRIC ReversalTurnover ReversalVolume RoundLotCategoryCode RoundLotCategoryDesc RoundLotSize SecDelistingTypeCode SecDelistingTypeDesc SecDescriptionFull SecDescriptionFullAlt SecId SecomInstrumentTypeCode SecTypeCode SecTypeDesc SecurityId SecurityTradingModeInd SecurityType SerialNumber ServiceName SettlementAmountFactor SettlementCurrencyCode SettlementCycleDays ShareCountType ShortFundName ShortName ShortNameAlt ShortPositionFlag SmallestDenomination SmallestDenominationAlt SmallestTradeableUnit SpecialOpenQuotation SpreadOkayFraction StopTradingDuration StopTradingRange StopTradingRangeType StopTradingRangeUnit StrikePrice StrikePriceCurrency StrikePriceFractionType SubscriptionPaymentDueDate SVSPSecTypeCode TermFromDate TermToDate TitleSegment Tminus1toNTurnover Tminus1toNVolume Tminus1Turnover Tminus1Volume Tminus2toNTurnover Tminus2toNVolume TotalExpenseRatio TotalExpenseRatioDate TotalExpenseRatioExcl TotalShares TotalTurnover TotalVolume TradeDateBasedInterestFlag TradingBaseCurrency TradingCurrency TradingPlatform TradingState TurnoverCurrency UnderlyingClosingPrice UnderlyingDescription UnderlyingExchange UnderlyingExchangeCode UnderlyingGeographicalCode UnderlyingGeographicalDesc UnderlyingISIN UnderlyingLastPrice UnderlyingMarket UnderlyingMarketCode UnderlyingProductId UnderlyingProviderCode UnderlyingProviderDesc UnderlyingSecurityId UnderlyingTypeCode UnderlyingTypeDesc UnitName UnitsForEntitlement ValorNo ValorNumber ValorSymbol ValorSymbolAlt WarrantSpecialClause Year1986Date Year1986Price Year1991Date Year1991Price YearAgoDate YearAgoDelta YearAgoDiff YearAgoPrice YearlyHighDate YearlyHighPrice YearlyLowDate YearlyLowPrice YearlyOffBookHighDate YearlyOffBookHighPrice YearlyOffBookLowDate YearlyOffBookLowPrice YearThreeAgoDate YearThreeAgoDelta YearThreeAgoDiff YearThreeAgoPrice 214 That's all folks. Some additional attributes are available through the corr command. When using the snap command with select and/or date ranges containing several values, the sequence of valor and date pairs is undefined. There is no output line if a valor was not traded on a given date, and duplicate lines are suppressed. Therefore ValorSymbol/ValorNumber and MarketDate must be included in the attribute list in order to make the correlation:
date 19981001 19981009
210-Selected dates:
19981001
19981002
19981005
19981006
19981007
19981008
19981009
210 That's all folks.
select SCMN SMI
211 Selected 2 valors.
snap ValorSymbol MarketDate DailyHighPrice DailyLowPrice
250-Tab separated attribute values follow:
SCMN 19981005 393 347.5
SCMN 19981006 392.5 378
SCMN 19981007 410.5 384.5
SCMN 19981008 404 383
SCMN 19981009 402 393
SMI 19981001 5697.4 5433.2
SMI 19981002 5626.7 5130.7
SMI 19981005 5416.4 5108.3
SMI 19981006 5532 5226.7
SMI 19981007 5734.6 5357.6
SMI 19981008 5523.8 5219.9
SMI 19981009 5496.4 5307
250 End of data.
corrThe corr command is similar to the snap command. It allows one to obtain a snapshot of adjustments of trading statistics for a given TradeDate:select NESN RUKN 211 Selected 2 valors. corr ValorSymbol TradeDate ReportDate TotalVolumeDelta TotalTurnoverDelta 250-Tab separated attribute values follow: NESN 20020213 20020218 2800 1055911 NESN 20020215 20020218 42000 15813000 RUKN 20020215 20020218 14450 2297550 250 End of data.When used without arguments the corr commands outputs all possible attribute names in a 214 multi-line reply: corr 214-The following attributes are recognized: ISIN NominalCurrency OffExchangeReversalTurnover OffExchangeReversalTurnoverDelta OffExchangeReversalVolume OffExchangeReversalVolumeDelta OffExchangeTurnover OffExchangeTurnoverDelta OffExchangeVolume OffExchangeVolumeDelta OnMarketReversalTurnover OnMarketReversalTurnoverDelta OnMarketReversalVolume OnMarketReversalVolumeDelta OnMarketTurnover OnMarketTurnoverDelta OnMarketVolume OnMarketVolumeDelta ReportDate ReportingParamCode ReportingParamDesc ReversalTurnover ReversalTurnoverDelta ReversalVolume ReversalVolumeDelta SecDescriptionFull SecDescriptionFullAlt SecurityId SerialNumber ShortName ShortNameAlt TotalTurnover TotalTurnoverDelta TotalVolume TotalVolumeDelta TradeDate TradingBaseCurrency TradingCurrency TurnoverCurrency ValorNo ValorNumber ValorSymbol ValorSymbolAlt 214 That's all folks. Any date range active when using the corr command is applied to the ReportDate. sumThe sum command calculates the sum of attribute values over a set of valors. There are two forms:Use sum sum-attr-list to sum over all selected valors. Use sum sum-attr-list by by-attr-list to sum over valors with the same values in by-attr-list Imbedded in a 250 multi-line reply there is one line of output for each set of valors. Each line contains the TAB-separated values of the attributes named in sum-attr-list, followed by the count of valors, followed by the attributes named in by-attr-list. For example, to calculate the daily turnover of all warrants separated by currency:
select GroupCode=20&TradingState=T
211 Selected 2571 valors.
sum OnMarketTurnover OffExchangeTurnover by TradingBaseCurrency
250-Tab separated attribute values follow:
278318826 27817966 2551 CHF
224740 0 6 USD
368000 0 14 EUR
250 End of data.
Although all attributes are allowed in sum-attr-list,
only few of them give sensible results and even fewer will
be useful. For example, sum ValorNumber is hardly useful
and sum ValorSymbol is certainly nonsense.
When summing and calculating averages one must be careful to prepare the valor sets. TradingBaseCurrency and TradingState are especially important to consider. feedThe feed command is very similar to the snap command except that the date range has no influence and that the output is slightly different. The market time is added at the beginning of each data line. After outputting the current information the feed command goes into a loop polling every 10 seconds the quote server daemon. If any of the requested attributes has changed value, the complete line is output again.The end of each batch of updates is flagged by a 151 reply. The loop finally stops with a 250 reply when the market date changes value at around 6am of the next trading day. Therefore a client program can receive a continous update on all attributes with minimum data volume by using the snap command to retrieve all attributes constant during a day and then entering a feed command loop for variable attributes. feed ValorSymbol LastPrice LastTime 150 Tab separated attribute values follow: 08:19:46 NESN 2925 16:59:54 08:19:46 SMI 7389.5 17:19:44 151 End of batch. 09:01:01 NESN 2910 09:01:01 151 End of batch. 09:02:12 SMI 7330.3 09:02:12 151 End of batch. 09:02:20 SMI 7328.3 09:02:20 151 End of batch. 09:02:32 SMI 7325.3 09:02:29 151 End of batch. 09:02:41 SMI 7329.1 09:02:40 151 End of batch. 09:02:51 SMI 7329.3 09:02:50 151 End of batch. 09:03:02 SMI 7328.6 09:02:58 151 End of batch. 09:03:11 SMI 7330.8 09:03:11 151 End of batch. 09:03:21 NESN 2907 09:03:15 09:03:21 SMI 7334.1 09:03:21 151 End of batch. ... 151 End of batch. 250 End of data. paidThe paid command allows one to obtain intra-day price and volume information for a valor. It takes three arguments of which the last two are optional: Valor selection criterion, integration interval and date.To select a valor, the Valor symbol or valor number with optional exchange code as in the snap command has to be specified. The integration interval is given in seconds. It defaults to 1. All trades during a given interval are accumulated such that the time stamp and price correspond to the last trade and the volume is the sum of all trades. This can reduce dramatically the amount of data transmitted, if, for example, a chart with a 15 minutes resolution only shall be filled. The date (default current trading date) for which the data is requested. The output of the paid command is a 250 multi-line reply wiith time, price, and volume as TAB-separated values. Only on-market trades are taken into account: paid SCMN 3600 19981005 250-Tab separated Time/Price/Volume follow: 09:59:37 359.5 885069 10:59:57 368 388920 11:59:55 378 347852 12:59:49 385.5 148155 13:59:58 382.5 259842 14:59:52 381 206009 15:59:51 382.5 174022 16:59:59 376.5 274831 250 End of data. navThe nav command allows one to obtain intra-day net asset values, combined with the corresponding last, best bid and best ask, for a valor. It takes three arguments of which the last two are optional: Valor selection criterion, integration interval and date.To select a valor, the Valor symbol or valor number with optional exchange code as in the snap command has to be specified. The integration interval is given in seconds. It defaults to 1. All NAVs during a given interval are accumulated such that the time stamp and price correspond to the last NAV. This can reduce dramatically the amount of data transmitted, if, for example, a chart with a 15 minutes resolution only shall be filled. The date (default current trading date) for which the data is requested. The output of the nav command is a 250 multi-line reply with time, net asset value, last price, best bid and best ask as TAB-separated values:
nav XMSMI 3600 20020215
250-Tab separated Time/NetAssetValue/Last/Bid/ask follow:
09:02:59 64.04 64.2 64 64.2
10:02:59 63.96 63.9 63.9 64.05
11:02:58 64.23 64.4 64.15 64.4
12:02:59 64.13 64.3 64.1 64.3
13:02:55 64.09 64.25 64 64.25
14:02:58 64.14 64.05 64.05 64.3
15:02:57 64.22 64.35 64.15 64.35
16:02:59 63.78 63.9 63.8 63.9
17:02:58 64.06 63.95 63.95 64.2
250 End of data.
AttributesAttribute values use the following data formats:Dates: yyyymmdd Times: hh:mm:ss of Swiss local time (MET) Prices: floating point with non-significant zeroes and decimal point suppressed Almost all attribute values can be empty. Depending on the context it can mean that the value is zero, unknown, or undefined. FQS is a source for current market information and historical inquiries of key market figures such as opening and closing prices. FQS is not intended for answering archeological questions such as "When did this company last change its name?". Reference information is always valid for the current trading date but not necessarily for the past date in an historic inquiry. The attributes can be divided into three categories: static: Reference information where the output value does not depend on the date at all, e.g. the valor symbol, or only changes very infrequently, e.g., the PriceStepGroupCode. volatile: Market information only available for the current trading date, e.g. ask and bid prices. historic: Information recorded for past trading dates, e.g. opening prices.
AcceptOrdersDate
(static)
The date on which first orders will be accepted.
| |||||