Component Interface for Version 4 of PC-SPAN, SPAN Risk Manager, and SPAN Risk Manager Clearing
A real-time component interface is available for PC-SPAN version 4. With this additional software module, licensed separately as SPAN Real-Time Component Interface (SPAN RTCI), you can develop programs which interface to PC-SPAN in real-time.
For example, suppose a customer requests an order. Using the component interface, your program can call PC-SPAN, specify the updated position that will result from the order, request that the performance bond be calculated, and receive back the updated performance bond requirement--all with extremely rapid execution times.
The SPAN Risk Manager Clearing software also has a real-time component interface. With this software module, in addition to everything you can do with the component interface to PC-SPAN, you can develop programs which execute the functions of the SPAN Risk Manager Clearing in real-time.
For example, you could programmatically update market prices for futures and physicals, and then recalculate volatilities, theoretical prices and risk arrays.
This topic provides a technical reference to the real-time component interfaces for PC-SPAN, SPAN Risk Manager, and SPAN Risk Manager Clearing.
- 1 dispinterface ISpanCom
- 1.1 short Load(BSTR fileName, boolean replaceExc, boolean useExtLayout);
- 1.2 short Save(BSTR fileName);
- 1.3 short SelectPIT(BSTR busDate, short isSettle, short isFinal, BSTR busTime, BSTR description);
- 1.4 short SelectPortfolio(BSTR firmCode, BSTR acctCode, BSTR segType);
- 1.5 void ResetPIT();
- 1.6 void ResetPortfolio();
- 1.7 short Calculate();
- 1.8 double GetPortfSpanReq(short pbClass, boolean isInitial);
- 1.9 double GetPortfTotalReq(short pbClass, boolean isInitial);
- 1.10 double GetCurPortfSpanReq(short pbClass, boolean isInitial, BSTR curCode);
- 1.11 double GetCurPortfTotalReq(short pbClass, boolean isInitial, BSTR curCode);
- 1.12 void Delete();
- 1.13 double GetPortfLongFutValue();
- 1.14 double GetPortfShortFutValue();
- 1.15 double GetPortfLongOptValue();
- 1.16 double GetPortfShortOptValue();
- 1.17 void SetLogLevel(short processId, short priorityId);
- 1.18 void LogSave(BSTR fileName);
- 1.19 void LogClear();
- 1.20 short CreatePortfolio(BSTR firmCode, BSTR acctCode, BSTR segType);
- 1.21 short SetPortfAcctType(BSTR acctType, boolean isClearing);
- 1.22 short SetPortfParent(BSTR firmCode, BSTR acctCode, BSTR segType);
- 1.23 short SetPortfCurrency(BSTR currencyCode);
- 1.24 BSTR GetPortfCurrency();
- 1.25 short SetPortfLedgerBalance(double value);
- 1.26 double GetPortfLedgerBalance();
- 1.27 short SavePortfolios(BSTR filename);
- 1.28 short SetPortfOpenTradeEquity(double value);
- 1.29 double GetPortfOpenTradeEquity();
- 1.30 short SetPortfSecurityOnDeposit(double value);
- 1.31 double GetPortfSecurityOnDeposit();
- 1.32 short SetPortfPosition(BSTR exchCmplxAcro, BSTR exchAcro, BSTR pfCode, short pfType, BSTR futPeriod, BSTR optPeriod, boolean isPut, double strike, long totalLong, long totalShort, long intraLong, long intraShort, long interLong, long interShort, long nakedLong, longnakedShort);
- 1.33 short ChangePortfPosition(BSTR exchCmplxAcro, BSTR exchAcro, BSTR pfCode, short pfType, BSTR futPeriod, BSTR optPeriod, boolean isPut, double strike, long totalLong, long totalShort, long intraLong, long intraShort, long interLong, long interShort, long nakedLong, longnakedShort);
- 1.34 short SavePositions(BSTR fileName);
- 1.35 short LoadStream(SAFEARRAY(BYTE) data);
- 2 dispinterface ISpanComRM
- 2.1 short SelectExchangeComplex(BSTR excAcro);
- 2.2 short SelectBFCC(BSTR ccCode);
- 2.3 short SelectProductFamily(BSTR exchCode, BSTR pfCode, short pfType);
- 2.4 void ResetExchangeComplex();
- 2.5 void ResetBFCC();
- 2.6 void ResetProductFamily();
- 2.7 short CalcImpliedVolatility(boolean flatCabVol);
- 2.8 short CalcCallPutAverage(boolean outMoney, boolean acceptZero);
- 2.9 short CalcSeriesVolatility(boolean useZero, double minExpTime, short maxIn, short maxOut, short minAccept);
- 2.10 short CalcPrice(short meth, boolean resetAll);
- 2.11 short CalcRiskArray(short meth, short limitMeth, boolean useTheorPrice);
- 2.12 void UpdatePrice(double value, short meth);
- 2.13 void UpdateVolatility(double value, short meth);
- 2.14 void UpdatePriceScan(double value, short meth);
- 2.15 void UpdateVolScan(double value, short meth);
- 2.16 void UpdateRiskFreeRate(double value, short meth);
- 2.17 void UpdateDividendYield(double value, short meth);
- 2.18 void UpdateTimeToExpiration(double value, short meth);
- 2.19 short UpdateCDSValue(short valueType, double value, short meth);
- 2.20 short SetStartPeriod(BSTR periodCode);
- 2.21 short SetEndPeriod(BSTR periodCode);
- 2.22 void ResetPeriods();
- 2.23 short CopyPIT(BSTR description, BSTR busDate, short isSettle, short isFinal, BSTR busTime);
- 2.24 void DoMarketObservation();
- 2.25 void ResetMarketPrices();
- 2.26 double GetPortfMTMFut();
- 2.27 double GetPortfMTMPrem();
- 2.28 double GetPortfMTMTFut();
- 2.29 double GetPortfMTMTPrem();
- 2.30 double GetPortfUnrealizedPL();
- 2.31 double GetPortfRealizedPLOpen();
- 2.32 double GetPortfRealizedPLLiq();
- 2.33 short SaveRegistryTo(BSTR fileName);
- 2.34 short ApplyWhatIf(BSTR fileName, boolean doCalc);
- 2.35 short CalcValues();
- 2.36 short CalcGreeks(short meth);
- 2.37 short ReplicateBasePrices();
- 2.38 short ApplyVolatilitySkew(short meth);
- 2.39 short PostTrade(BSTR timeStamp, long tradeId, BSTR exchCmplxAcro, BSTR exchAcro, BSTR pfCode, short pfType, BSTR futPeriod, BSTR optPeriod, boolean isPut, double strike, double price, long tradeQty);
- 2.40 short ResetPrices(short prodType);