Share and Money Management 0.18devel
Functions
smm.operations Namespace Reference

Functions

def getPrimarySourceID (share)
 Returns the primary quotation source for a share. More...
 
def getPrimarySourceName (share)
 Returns the name of the primary quotation source for a share. More...
 
def fetchDailyQuotes (openPos=True, watchList=True, add_shares=None)
 Functions to query quotations. More...
 

Function Documentation

◆ fetchDailyQuotes()

def smm.operations.fetchDailyQuotes (   openPos = True,
  watchList = True,
  add_shares = None 
)

Functions to query quotations.

Fetch new daily quotes

New quotes will fetch for all selected shares. The data provider is selected per share.

Parameters
openPosTrue to fetch quotes of all open positions
watchListTrue to fetch quotes of all watch list entries
add_sharesList additional shares to fetch too
See also
quote.source2class

References smm.operations.getPrimarySourceID().

Here is the call graph for this function:

◆ getPrimarySourceID()

def smm.operations.getPrimarySourceID (   share)

Returns the primary quotation source for a share.

Returns
ID of the primary data source or None
See also
quote.source2class

Referenced by smm.operations.fetchDailyQuotes(), and smm.operations.getPrimarySourceName().

Here is the caller graph for this function:

◆ getPrimarySourceName()

def smm.operations.getPrimarySourceName (   share)

Returns the name of the primary quotation source for a share.

See also
getPrimarySourceID() and quote.source2name

References smm.operations.getPrimarySourceID().

Here is the call graph for this function: