diff options
| -rw-r--r-- | python/markit_download.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/python/markit_download.py b/python/markit_download.py index 6990e30d..91bdefa5 100644 --- a/python/markit_download.py +++ b/python/markit_download.py @@ -13,7 +13,7 @@ workdate = str(datetime.date.today()) def convertToNone(v):
return v if v else None
-r = requests.get('https://loans.markit.com/loanx/LoanXMarks.csv?LEGALENTITY={0}&USERNAME={1}&PASSWORD={2}&RELATIVE=0'.format(legal, username, password))
+r = requests.get('https://loans.markit.com/loanx/LoanXMarks.csv?LEGALENTITY={0}&USERNAME={1}&PASSWORD={2}&EOD=Y'.format(legal, username, password))
marks_filename = os.path.join(common.root, "data", "markit", "markit_data_{0}.csv".format(workdate))
with open(marks_filename, "wb") as fh:
fh.write(r.content)
@@ -22,7 +22,7 @@ r = requests.get('https://loans.markit.com/loanx/LoanXFacilityUpdates.csv?LEGALE facility_filename = os.path.join(common.root, "data", "Facility files", "facility_{0}.csv".format(workdate))
with open( facility_filename, "wb") as fh:
- fh.write(r.content)
+ fh.write(r.content)
sqlstring = "INSERT INTO markit_prices2 VALUES( {0} )".format( ",".join([ "%s" ] * 5))
with open(marks_filename, "r") as fh:
|
