It is possible to retrieve time template name in EFS so that EFS may function differently according to the time template? Also it would be great to extend those APIs such as getMostRecenttBid(), etc. so that the user may access the bid/ask price/size of other symbols instead of the primary symbol only.
Announcement
Collapse
No announcement yet.
Retrieve time template name in EFS
Collapse
X
-
Hello Clearpicks,
Accessing the time template info is currently not available in EFS. Please submit a request for this ability to [email protected].
As for extending the getMostRecentXXX() functions to reference other symbols, we cannot do that directly with a symbol parameter. You could also submit a request for this to IDEAS as well. However, in the mean time, you can create this functionality using some EFS2 logic and the efsInteranl() function. When you pass as the last parameter to the efsInteral() function a sym/inv input using sym() or inv(), the returned series will be based on that symbol/interval. Try the following.
PHP Code:function main() {
var myBid = getMostRecentBid();
var myBid2 = efsInternal("getBid", sym("IBM"));
return new Array(myBid, myBid2);
}
function getBid(sym) {
return getMostRecentBid();
}
Jason K.
Project Manager
eSignal - an Interactive Data company
EFS KnowledgeBase
JavaScript for EFS Video Series
EFS Beginner Tutorial Series
EFS Glossary
Custom EFS Development Policy
New User Orientation
Comment