<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to Database</title><link>https://sourceforge.net/p/stock-monster/wiki/Database/</link><description>Recent changes to Database</description><atom:link href="https://sourceforge.net/p/stock-monster/wiki/Database/feed" rel="self"/><language>en</language><lastBuildDate>Sun, 08 Feb 2015 02:45:36 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/stock-monster/wiki/Database/feed" rel="self" type="application/rss+xml"/><item><title>Database modified by Dave</title><link>https://sourceforge.net/p/stock-monster/wiki/Database/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;The database system.&lt;/p&gt;
&lt;p&gt;Account Table.&lt;br /&gt;
Fields&lt;br /&gt;
    ID&lt;br /&gt;
    Object ID&lt;br /&gt;
    Contact        &lt;span&gt;[contact]&lt;/span&gt;&lt;br /&gt;
    OwnerID        &lt;span&gt;[Account]&lt;/span&gt;&lt;br /&gt;
    Institution    &lt;span&gt;[Account]&lt;/span&gt;&lt;br /&gt;
    Currency       &lt;span&gt;[currency]&lt;/span&gt;&lt;br /&gt;
    AccountNumber&lt;/p&gt;
&lt;p&gt;This table holds 1 set of contact data for itself. It also contains 2 links to accounts, one for the owner or parent and one for the institution it belongs to ( could be 0).&lt;/p&gt;
&lt;p&gt;There are several other tables&lt;/p&gt;
&lt;p&gt;ac_dividend, ac_trade, ac_transaction, ac_document, ad_dailyhistory, ad_dividendhistory, ad_fundamental, ad_realtime, ad_split etc. These tables contain an AccountID field and will be searched by the program when loading an account to provide data relevant to that account. There are currently 12 such tables programmed for and is intended to be extendable as not all instruments have been planned for yet.&lt;/p&gt;
&lt;p&gt;Ancillary tables&lt;br /&gt;
basecountry, baseinstrument, basemarket, basesector, are all base type tables that contain data that should rarely change.&lt;/p&gt;
&lt;p&gt;The last group of tables is the object group.&lt;/p&gt;
&lt;p&gt;Everything is an object, hence if a history record is written an object record is written. Objects can have links. So if you wanted to link a document to multiple accounts, you could create 2 object links. Tagging is also supported, the objecttaglist is the current list of tags, objecttag is then a link between that object and the objecttag. In this way multiple objects can have multiple tags.&lt;/p&gt;
&lt;p&gt;Currently the only instrument we are concerned with are stocks. However the system has been built broad enough to cater for bonds, futures, options, currency etc.&lt;/p&gt;
&lt;p&gt;Stored procedures will be used sparingly as not all Databases use stored procedures ie sqlite.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Dave</dc:creator><pubDate>Sun, 08 Feb 2015 02:45:36 -0000</pubDate><guid>https://sourceforge.net64c9872a87eafe0bedce326a8a5d4d3b287e6409</guid></item></channel></rss>