예제 #1
0
 public static string ToFormattedString(this QuoteField field)
 {
     return(string.Format("[InstrumentID={0};ExchangeID={1};"
                          + "AskPrice={2};AskQty={3};BidPrice={4};BidQty={5};"
                          + "ID={6};AskOrderID={7};BidOrderID={8};"
                          + "Status={9};ExecType={10};"
                          + "ErrorID={11};Text={12};"
                          + "AskOpenClose={13};AskHedgeFlag={14};BidOpenClose={15};BidHedgeFlag={16}]",
                          field.InstrumentID, field.ExchangeID,
                          field.AskPrice, field.AskQty, field.BidPrice, field.BidQty,
                          field.ID, field.AskOrderID, field.BidOrderID,
                          field.Status, field.ExecType,
                          field.ErrorID, field.Text(),
                          field.AskOpenClose, field.AskHedgeFlag, field.BidOpenClose, field.BidHedgeFlag));
 }
예제 #2
0
파일: Extensions.cs 프로젝트: dst1213/XAPI2
 public static string ToFormattedString([In] this QuoteField field)
 {
     return(string.Format("[InstrumentID={0};ExchangeID={1};"
                          + "AskPrice={2};AskQty={3};BidPrice={4};BidQty={5};"
                          + "LocalID={6};ID={7};AskOrderID={8};BidOrderID={9};"
                          + "Status={10};ExecType={11};"
                          + "XErrorID={12};RawErrorID={13};Text={14};"
                          + "AskOpenClose={15};AskHedgeFlag={16};BidOpenClose={17};BidHedgeFlag={18}]",
                          field.InstrumentID, field.ExchangeID,
                          field.AskPrice, field.AskQty, field.BidPrice, field.BidQty,
                          field.LocalID, field.ID, field.AskOrderID, field.BidOrderID,
                          Enum <OrderStatus> .ToString(field.Status), Enum <ExecType> .ToString(field.ExecType),
                          field.XErrorID, field.RawErrorID, field.Text(),
                          Enum <OpenCloseType> .ToString(field.AskOpenClose), Enum <HedgeFlagType> .ToString(field.AskHedgeFlag), Enum <OpenCloseType> .ToString(field.BidOpenClose), Enum <HedgeFlagType> .ToString(field.BidHedgeFlag)));
 }