It is mariadb, on linux (that particular machine is 32 bit a the moment). Default storage engine, InnoDB, default-character-set = utf8mb4
Code is (my key has been replaced with some xxxxxxxxx’s):
Dim ExDividendDate, outstandingShares0Date, outstandingShares0, outstandingShares1Date, outstandingShares1, outstandingShares2Date, outstandingShares2, outstandingShares3Date, outstandingShares3, outstandingShares4Date, outstandingShares4, outstandingShares5Date, outstandingShares5 AS STRING = “0”
ExDividendDate=socket1.Get(“https://eodhistoricaldata.com/api/fundamentals/” + trim(Globals.DataTick) + Ext + “?api_token=xxxxxxxxxx&filter=SplitsDividends::ExDividendDate”,0)
outstandingShares0Date=socket1.Get(“https://eodhistoricaldata.com/api/fundamentals/” + trim(Globals.DataTick) + Ext + “?api_token=xxxxxxxxxxx&filter=outstandingShares::annual::0::date”,0)
outstandingShares0=socket1.Get(“https://eodhistoricaldata.com/api/fundamentals/” + trim(Globals.DataTick) + Ext + “?api_token=xxxxxxxxxxxxxxx&filter=outstandingShares::annual::0::sharesMln”,0)
outstandingShares1Date=socket1.Get(“https://eodhistoricaldata.com/api/fundamentals/” + trim(Globals.DataTick) + Ext + “?api_token=xxxxxxxxxxxxxxxx&filter=outstandingShares::annual::1::date”,0)
outstandingShares1=socket1.Get(“https://eodhistoricaldata.com/api/fundamentals/” + trim(Globals.DataTick) + Ext + “?api_token=xxxxxxxxxxxxxxxxxxx&filter=outstandingShares::annual::1::sharesMln”,0)
outstandingShares2Date=socket1.Get(“https://eodhistoricaldata.com/api/fundamentals/” + trim(Globals.DataTick) + Ext + “?api_token=xxxxxxxxxxxxxxxxxx&filter=outstandingShares::annual::2::date”,0)
outstandingShares2=socket1.Get(“https://eodhistoricaldata.com/api/fundamentals/” + trim(Globals.DataTick) + Ext + “?api_token=xxxxxxxxxxxxxxxxxxxxxx&filter=outstandingShares::annual::2::sharesMln”,0)
outstandingShares3Date=socket1.Get(“https://eodhistoricaldata.com/api/fundamentals/” + trim(Globals.DataTick) + Ext + “?api_token=xxxxxxxxxxxxxxxxxx&filter=outstandingShares::annual::3::date”,0)
outstandingShares3=socket1.Get(“https://eodhistoricaldata.com/api/fundamentals/” + trim(Globals.DataTick) + Ext + “?api_token=xxxxxxxxxxxxxxxxxxxxx&filter=outstandingShares::annual::3::sharesMln”,0)
outstandingShares4Date=socket1.Get(“https://eodhistoricaldata.com/api/fundamentals/” + trim(Globals.DataTick) + Ext + “?api_token=xxxxxxxxxxxxxxxxxxxxx&filter=outstandingShares::annual::4::date”,0)
outstandingShares4=socket1.Get(“https://eodhistoricaldata.com/api/fundamentals/” + trim(Globals.DataTick) + Ext + “?api_token=xxxxxxxxxxxxxxxxxxxx&filter=outstandingShares::annual::4::sharesMln”,0)
outstandingShares5Date=socket1.Get(“https://eodhistoricaldata.com/api/fundamentals/” + trim(Globals.DataTick) + Ext + “?api_token=xxxxxxxxxxxxxxxxxxxx&filter=outstandingShares::annual::5::date”,0)
outstandingShares5=socket1.Get(“https://eodhistoricaldata.com/api/fundamentals/” + trim(Globals.DataTick) + Ext + “?api_token=xxxxxxxxxxxxxxxxxx&filter=outstandingShares::annual::5::sharesMln”,0)
ExDividendDate=ReplaceAll(ExDividendDate,Chr(34),"")
outstandingShares0Date = ReplaceAll(outstandingShares0Date,chr(34),"")
outstandingShares0=ReplaceAll(outstandingShares0,chr(34),"")
outstandingShares1Date = ReplaceAll(outstandingShares1Date,chr(34),"")
outstandingShares1=ReplaceAll(outstandingShares1,chr(34),"")
outstandingShares2Date = ReplaceAll(outstandingShares2Date,chr(34),"")
outstandingShares2=ReplaceAll(outstandingShares2,chr(34),"")
outstandingShares3Date = ReplaceAll(outstandingShares3Date,chr(34),"")
outstandingShares3=ReplaceAll(outstandingShares3,chr(34),"")
outstandingShares4Date = ReplaceAll(outstandingShares4Date,chr(34),"")
outstandingShares4=ReplaceAll(outstandingShares4,chr(34),"")
outstandingShares5Date = ReplaceAll(outstandingShares5Date,chr(34),"")
outstandingShares5=ReplaceAll(outstandingShares5,chr(34),"")
if ExDividendDate = “null” then ExDividendDate = “01/01/1900”
if outstandingShares0= “null” then outstandingShares0 = “0”
if outstandingShares1= “null” then outstandingShares1 = “0”
if outstandingShares2= “null” then outstandingShares2 = “0”
if outstandingShares3= “null” then outstandingShares3 = “0”
if outstandingShares4= “null” then outstandingShares4 = “0”
if outstandingShares4= “null” then outstandingShares4 = “0”
strSql=(“Update " + tDataTick + “_data SET ExDividendDate = '” + ExDividendDate + “’, outstandingShares0Date = '” + outstandingShares0Date + “’, SharesOut0 = '” + outstandingShares0 + “’, outstandingShares1Date=’” + outstandingShares1Date + “’, SharesOut1 = '” + outstandingShares1 + “’, outstandingShares2Date = '” + outstandingShares2Date + “’, SharesOut2 = '” + outstandingShares2 + “’ , outstandingShares3Date = '” + outstandingShares3Date + “’ , SharesOut3 = '” + outstandingShares3 + “’ , outstandingShares4Date = '” + outstandingShares4Date + “’ , SharesOut4 = '” + outstandingShares4 + “’ , outstandingShares5Date = '” + outstandingShares5Date + “’ , SharesOut5 = '” + outstandingShares5 +”’ ;" )
'MSGBOX strSql
buylist.SQLExecute(strSql)
'stream.WriteLine(strSql)
if buylist.ErrorMessage<> “” then
Globals.errormsg = Globals.errormsg + buylist.errormessage
MsgBox Globals.errormsg
'stream.WriteLine(Globals.errormsg)
'stream.WriteLine(strSql)
End If