Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upSubscription feature #88
Conversation
…ribe.Rd w/ roxygenize
| } | ||
| \examples{ | ||
| \dontrun{ | ||
| subscribe(securities=c("/ticker/TYZ5 Comdty","/cusip/912810RE0@BGN"), |
eddelbuettel
Nov 9, 2015
Member
Never seen this notation before. Is that described somewhere in the copious Bloomberg docs?
Never seen this notation before. Is that described somewhere in the copious Bloomberg docs?
armstrtw
Nov 9, 2015
Author
Contributor
from blpapi_subscriptionlist.h
you think I should add some of this documentation to the man page?
// STRUCTURE OF SUBSCRIPTION STRING
// ---------------------------------
// The simplest form of a subscription string is a fully qualified
// subscription string, which has the following structure:
//
// "//blp/mktdata/ticker/IBM US Equity?fields=BID,ASK&interval=2"
// -----------/------/-----------/------------------------/
// | | | |
// Service Prefix Instrument Suffix
from blpapi_subscriptionlist.h
you think I should add some of this documentation to the man page?
// STRUCTURE OF SUBSCRIPTION STRING
// ---------------------------------
// The simplest form of a subscription string is a fully qualified
// subscription string, which has the following structure:
//
// "//blp/mktdata/ticker/IBM US Equity?fields=BID,ASK&interval=2"
// -----------/------/-----------/------------------------/
// | | | |
// Service Prefix Instrument Suffix
eddelbuettel
Nov 9, 2015
Member
Yes -- I think that would not hurt.
Yes -- I think that would not hurt.
armstrtw
Nov 9, 2015
Author
Contributor
github knows your intentions before you do... spooky.
github knows your intentions before you do... spooky.
armstrtw
Nov 9, 2015
Author
Contributor
you think a straightup copy/paste/reformat from the c++ header would be ok?
you think a straightup copy/paste/reformat from the c++ header would be ok?
eddelbuettel
Nov 9, 2015
Member
Could Bloomberg be offended if we copied? If there is something online, a URL may do. Else a reference to the header?
Could Bloomberg be offended if we copied? If there is something online, a URL may do. Else a reference to the header?
armstrtw
Nov 9, 2015
Author
Contributor
that's a good point. I think I can produce a link.
that's a good point. I think I can produce a link.
| @@ -0,0 +1,230 @@ | |||
| // -*- mode: C++; c-indent-level: 4; c-basic-offset: 4; indent-tabs-mode: nil; -*- | |||
| // | |||
| // subscribe.cpp -- "Bloomberg Data Point" query function for the BLP API | |||
eddelbuettel
Nov 9, 2015
Member
Looks like the RHS needs an update :)
Looks like the RHS needs an update :)
armstrtw
Nov 9, 2015
Author
Contributor
RHS?
I'll fix the file. it's an artifact of copying from bdp.cpp.
RHS?
I'll fix the file. it's an artifact of copying from bdp.cpp.
eddelbuettel
Nov 9, 2015
Member
(RHS == right-hand side)
And thanks.
(RHS == right-hand side)
And thanks.
armstrtw
Nov 9, 2015
Author
Contributor
so, how do I refresh the PR? cancel it and submit a new one?
so, how do I refresh the PR? cancel it and submit a new one?
|
I don't know that we need to tie an exposition of this notation to this particular feature. AFAIK, this structure is common across the entire API. E.g.: jlaing@xenon:~$ R
> require(Rblpapi)
Loading required package: Rblpapi
> blpConnect(host="app", port=8194)
> bdp("/ticker/TYZ5 Comdty", "PX_LAST")
PX_LAST
/ticker/TYZ5 Comdty 126 |
|
how does this sit with everyone: |
|
@johnlaing Yes, thanks, once Whit showed the reference to the header I suspected something like that. @armstrtw Is it also possible to drop the leading The link looks fine. That is a nice balance between a brief synopsis and further reference. |
|
yes, I think the ticker can be dropped from the TY example. let me check. |
|
yes, it works without the '/ticker' prefix. I updated the futures example. I left the cusip example in there for variety. |
|
Thanks. do you normally version bump for a new feature? or just leave it as a separate commit? |
|
Yes, a fourth digit +1 may be on order as are ChangeLog and NEWS entries. And once we have that we can probably think about 0.3.2 and CRAN, no? |
add subscribe function.
passes R CMD check.