I am trying to use the portfolio-loader-tool.sh from the examples-simulated package.
The csv file I am using has been taken from your documentation pages(http://docs.opengamma.com/display/DOC200/CSV+and+XLS+file+formats) and it is the following:
Equity.csv :
"companyName","currency","exchange","exchangeCode","externalIdBundle","name","position:quantity","securityType","shortName","trade:counterpartyExternalId","trade:deal","trade:premium","trade:premiumCurrency","trade:premiumDate","trade:premiumTime","trade:quantity","trade:tradeDate","trade:tradeTime"
"OCCIDENTAL PETROLEUM CORP","USD","NEW YORK STOCK EXCHANGE INC.","XNYS","CUSIP~674599105, ISIN~US6745991058, OG_SYNTHETIC_TICKER~OXY","OCCIDENTAL PETROLEUM CORP","320","EQUITY","","CPARTY~BACS","","","","","","320","2010-12-03",""
"EXXON MOBIL CORP","USD","NEW YORK STOCK EXCHANGE INC.","XNYS","BLOOMBERG_BUID~EQ0010054600001000, BLOOMBERG_TICKER~XOM US Equity, CUSIP~30231G102, ISIN~US30231G1022, SEDOL1~2326618","EXXON MOBIL CORP","4330","EQUITY","XOM","CPARTY~BACS","","","","","","2000","2010-12-01",""
"CONOCOPHILLIPS","USD","NEW YORK STOCK EXCHANGE INC.","XNYS","CUSIP~20825C104, ISIN~US20825C1045, OG_SYNTHETIC_TICKER~COP","CONOCOPHILLIPS","2740","EQUITY","","CPARTY~BACS","","","","","","2000","2010-12-01",""
"MURPHY OIL CORP","USD","NEW YORK STOCK EXCHANGE INC.","XNYS","CUSIP~626717102, ISIN~US6267171022, OG_SYNTHETIC_TICKER~MUR","MURPHY OIL CORP","430","EQUITY","","CPARTY~BACS","","","","","","430","2010-12-03",""
"CHEVRON CORP","USD","NEW YORK STOCK EXCHANGE INC.","XNYS","BLOOMBERG_BUID~EQ0010031500001000, BLOOMBERG_TICKER~CVX US Equity, CUSIP~166764100, ISIN~US1667641005, SEDOL1~2838555","CHEVRON CORP","260","EQUITY","CVX","CPARTY~BACS","","","","","","260","2010-12-03",""
"HESS CORP","USD","NEW YORK STOCK EXCHANGE INC.","XNYS","CUSIP~42809H107, ISIN~US42809H1077, OG_SYNTHETIC_TICKER~HES","HESS CORP","100","EQUITY","","CPARTY~BACS","","","","","","100","2010-12-03",""
"MARATHON OIL CORP","USD","NEW YORK STOCK EXCHANGE INC.","XNYS","CUSIP~565849106, ISIN~US5658491064, OG_SYNTHETIC_TICKER~MRO","MARATHON OIL CORP","3000","EQUITY","","CPARTY~BACS","","","","","","2000","2010-12-01",""
First I run the server using : ./examples-simulated.sh debug
The after the server is running I am running the following command to persist this portfolio into my postgres database :
./portfolio-loader-tool.sh -c …/config/toolcontext/toolcontext-examplessimulated.properties -f Equity.csv -s Equity -n “Stavros” -w
The tool is reporting that it has persist these data into the database but when I press Load again in the Gui Window of the server I am still getting the hard coded ‘Equity Portfolio’ with 25 Consumer discretionary, 15 Materials an so on.
Any ideas?