ServerPortfolio  2.0
Python parsers and server
 All Classes Namespaces Files Functions Variables Properties Pages
Classes | Functions | Variables
serverportfolio.GlobalDicts Namespace Reference

Global variables for configuration: paths, TCP ports and generic definitions. More...

Classes

class  EAction
 Enumeration for the action to be performed by the parser. More...
 

Functions

def MarketMySQL_to_DictStock
 Translate market MySQL to market DictStock, used for Opening market. More...
 

Variables

 TEST_MODE = True
 will load data in data_test and write in data_test/historical_tmp internally set PATH_DATA to test in all C++ functions More...
 
string PATH_DATA_ROOT = "/home/michael/workspace_kepler/ROOT_application/data"
 
string PATH_DATA_ROOT_TEST = "/home/michael/workspace_kepler/ROOT_application/data_test"
 
string PATH_DICT = "/home/michael/workspace_kepler/ServerPortfolio/trunk/ServerPortfolio/data"
 global path to the data directory. More...
 
string PATH_DICT_TEST = "/home/michael/workspace_kepler/ServerPortfolio/trunk/ServerPortfolio/data_unittest"
 
string DEFAULT_DICTIONARY = "dictstocks.txt"
 Default name for the configuration file of the stocks. More...
 
string HOST = "localhost"
 for server More...
 
int PORT = 9999
 port to which the server listens. More...
 
int PORT_GUI = 9998
 port of the GUI server. More...
 
dictionary OpeningMarket
 Additional global dictionary. More...
 
dictionary DictMarketMySQLtoDictStock
 used for MySQL correspondance. More...
 

Detailed Description

Global variables for configuration: paths, TCP ports and generic definitions.

Paths, class EAction, test mode, PORT of servers,
OpeningMarket, DictMarketMySQLtoDictStock

Last Changed

Id:
GlobalDicts.py 27 2015-04-25 16:16:47Z michael

Function Documentation

def serverportfolio.GlobalDicts.MarketMySQL_to_DictStock (   marketMySQL)

Translate market MySQL to market DictStock, used for Opening market.

Parameters
marketMySQL:

Definition at line 59 of file GlobalDicts.py.

Variable Documentation

string serverportfolio.GlobalDicts.DEFAULT_DICTIONARY = "dictstocks.txt"

Default name for the configuration file of the stocks.

The file is searched in the PATH_DICT directory

Definition at line 29 of file GlobalDicts.py.

dictionary serverportfolio.GlobalDicts.DictMarketMySQLtoDictStock
Initial value:
1 = {'europe' :['FR','DE'],
2  'us' :['US'],
3  'ml_euro':['ML_FR'],
4  'mp' :['MP'],
5  'devise' :['DEVISE']
6  }

used for MySQL correspondance.

Definition at line 49 of file GlobalDicts.py.

string serverportfolio.GlobalDicts.HOST = "localhost"

for server

Definition at line 32 of file GlobalDicts.py.

dictionary serverportfolio.GlobalDicts.OpeningMarket
Initial value:
1 = {'europe' :['9h00mn', '17h35mn'],
2  'us' :['15h30mn','22h00mn'], # CORRECT
3  #'us' :['16h00mn','22h00mn'], #WRONG, for TEST
4  'mp' :['0h00mn' ,'0h00mn'], ##have to check gold, euro/dollar...
5  'devise' :['0h00mn' ,'0h00mn'], ##week-end ??
6  'ml_euro' :['15h00mn']
7  }

Additional global dictionary.

used by AutoParser, could extend week-end....

Definition at line 40 of file GlobalDicts.py.

string serverportfolio.GlobalDicts.PATH_DATA_ROOT = "/home/michael/workspace_kepler/ROOT_application/data"

Definition at line 19 of file GlobalDicts.py.

string serverportfolio.GlobalDicts.PATH_DATA_ROOT_TEST = "/home/michael/workspace_kepler/ROOT_application/data_test"

Definition at line 21 of file GlobalDicts.py.

string serverportfolio.GlobalDicts.PATH_DICT = "/home/michael/workspace_kepler/ServerPortfolio/trunk/ServerPortfolio/data"

global path to the data directory.

Definition at line 24 of file GlobalDicts.py.

string serverportfolio.GlobalDicts.PATH_DICT_TEST = "/home/michael/workspace_kepler/ServerPortfolio/trunk/ServerPortfolio/data_unittest"

Definition at line 25 of file GlobalDicts.py.

int serverportfolio.GlobalDicts.PORT = 9999

port to which the server listens.

Definition at line 34 of file GlobalDicts.py.

int serverportfolio.GlobalDicts.PORT_GUI = 9998

port of the GUI server.

Definition at line 36 of file GlobalDicts.py.

serverportfolio.GlobalDicts.TEST_MODE = True

will load data in data_test and write in data_test/historical_tmp internally set PATH_DATA to test in all C++ functions

Definition at line 13 of file GlobalDicts.py.