FSharp.Data.Experimental.XenomorphProvider


FSharp.Data.Experimental.XenomorphProvider

This shows a fBid example of using the type provider with the XENO database in the Azure SQLLABS cluster.

Referencing the type provider:

1: 
2: 
3: 
4: 
5: 
6: 
7: 
#I "../../bin"
#r "Xenomorph.TimeScape.Client.dll"
#r "Xenomorph.Generic.dll"
#r "FSharp.Data.Experimental.XenomorphProvider.dll"

open FSharp.Data.Experimental
open System.Linq

Referencing the Xenomorph TimeScape database:

1: 
2: 
3: 
type T = XenomorphProvider<Server = "XENO", UseRefinedTypes=false>

let data = T.GetDataContext()

Looking through the sizes of the available collections:

1: 
2: 
for x in data.Categories.Collection do 
   printfn "%A" (x.CategoryName, try x.Collection.Count() with _ -> 0)

Looking through the categories:

1: 
2: 
3: 
4: 
5: 
6: 
data.Categories
data.Categories.``GB Equity``


for x in data.Categories.``GB Equity``.Collection do 
   printfn "%A" (x.Item.Code)

Looking at a particular equity:

1: 
2: 
3: 
4: 
5: 
6: 
data.Categories.``GB Equity``.``SAINSBURY(J) (SBRY.L, Reuters)``.Close

data.Categories.``GB Equity``.``SAINSBURY(J) (SBRY.L, Reuters)``.Ask |> Observable.add(fun obj -> printfn "%A" obj)
data.Categories.``GB Equity``.``SAINSBURY(J) (SBRY.L, Reuters)``.Bid |> Observable.add(fun obj -> printfn "%A" obj)

data.Categories.``GB Equity``.``3i GROUP (III.L, Reuters)``.Close

Looking at a particular properties of a particular equity:

 1: 
 2: 
 3: 
 4: 
 5: 
 6: 
 7: 
 8: 
 9: 
10: 
11: 
12: 
13: 
14: 
15: 
16: 
17: 
18: 
19: 
20: 
21: 
22: 
23: 
24: 
data.Categories.Equity.``Amalgamated Oil Company (RIC31239, Reuters)``.Item
data.Categories.Equity.``Amalgamated Oil Company (RIC31239, Reuters)``.Item.Category
data.Categories.Equity.``Amalgamated Oil Company (RIC31239, Reuters)``.``Amount Issued`` 
data.Categories.Equity.``Amalgamated Oil Company (RIC31239, Reuters)``.Close
data.Categories.Equity.``Amalgamated Oil Company (RIC31239, Reuters)``.``Close-Previous``
data.Categories.Equity.``Amalgamated Oil Company (RIC31239, Reuters)``.``Company Website``
data.Categories.Equity.``Amalgamated Oil Company (RIC31239, Reuters)``.Currency
data.Categories.Equity.``Amalgamated Oil Company (RIC31239, Reuters)``.IsExDividend
data.Categories.Equity.``Amalgamated Oil Company (RIC31239, Reuters)``.IssueDate
data.Categories.Equity.``Amalgamated Oil Company (RIC31239, Reuters)``.MktComment
data.Categories.Equity.``Amalgamated Oil Company (RIC31239, Reuters)``.NumShares
data.Categories.Equity.``Amalgamated Oil Company (RIC31239, Reuters)``.ParentCompany 
data.Categories.Equity.``Amalgamated Oil Company (RIC31239, Reuters)``.PriceOfferClose
data.Categories.Equity.``Amalgamated Oil Company (RIC31239, Reuters)``.PriceOfferHigh
data.Categories.Equity.``Amalgamated Oil Company (RIC31239, Reuters)``.PriceOfferLow
data.Categories.Equity.``Amalgamated Oil Company (RIC31239, Reuters)``.PriceOfferOpen
data.Categories.Equity.``Amalgamated Oil Company (RIC31239, Reuters)``.RiskReport
data.Categories.Equity.``Amalgamated Oil Company (RIC31239, Reuters)``.``Settlement Delay``
data.Categories.Equity.``Amalgamated Oil Company (RIC31239, Reuters)``.VolSurf
data.Categories.Equity.``Amalgamated Oil Company (RIC31239, Reuters)``.Volume
data.Categories.Equity.``Amalgamated Oil Company (RIC31239, Reuters)``.X_Dividends  
data.Categories.Equity.``Amalgamated Oil Company (RIC31239, Reuters)``.``Listed Warrants``  

data.Categories.Equity.``Amalgamated Oil Company (RIC31239, Reuters)``
namespace FSharp
namespace FSharp.Data
namespace FSharp.Data.Experimental
namespace System
namespace System.Linq
type T = XenomorphProvider<...>

Full name: BasicExample.T
type XenomorphProvider

Full name: FSharp.Data.Experimental.XenomorphProvider


<summary>A type provider for connections to Xenomorph TimeScape servers</summary>
         <param name='Server'>The name of the Xenomorph TimeScape server.</param>
         <param name='UseOptionTypes'>Give all properties type 'option' with value None if the data is not present. If false, raise an exception.</param>
         <param name='UseRefinedTypes'>Use refined types for individual entities. Using missing properties on the entity will give a compilation warning (if option types are used) and an error (if option types are not used).</param>
        
val data : XenomorphProvider<...>.ServiceTypes.ServiceType

Full name: BasicExample.data
XenomorphProvider<...>.GetDataContext(?server: string) : XenomorphProvider<...>.ServiceTypes.ServiceType


<summary>Get a data context for the Xenomorph server XENO</summary>
val x : XenoCategory
property XenomorphProvider<...>.ServiceTypes.ServiceType.Categories: XenomorphProvider<...>.ServiceTypes.Categories


<summary>The categories in the Xenomorph server 'XENO'</summary>
property XenomorphProvider<...>.ServiceTypes.Categories.Collection: XenomorphProvider<...>.ServiceTypes.CategoriesCollection


<summary>The collection of categories in the server XENO, organzied by name</summary>
val printfn : format:Printf.TextWriterFormat<'T> -> 'T

Full name: Microsoft.FSharp.Core.ExtraTopLevelOperators.printfn
property XenoCategory.CategoryName: string
property XenoCategory.Collection: seq<XenoItem>
System.Collections.Generic.IEnumerable.Count<'TSource>() : int
System.Collections.Generic.IEnumerable.Count<'TSource>(predicate: System.Func<'TSource,bool>) : int
val x : XenomorphProvider<...>.ServiceTypes.GB Equity
property XenoItem.Item: Xenomorph.TimeScape.Client.Item
property Xenomorph.TimeScape.Client.Item.Code: string
module Observable

from Microsoft.FSharp.Control
val add : callback:('T -> unit) -> source:System.IObservable<'T> -> unit

Full name: Microsoft.FSharp.Control.Observable.add
Multiple items
val obj : System.DateTime * float

--------------------
type obj = System.Object

Full name: Microsoft.FSharp.Core.obj
property XenomorphProvider<...>.ServiceTypes.Categories.Equity: XenomorphProvider<...>.ServiceTypes.Equity Category


<summary></summary>
Fork me on GitHub