SGX EOD Data

choychho

Junior Member
Joined
Nov 14, 2010
Messages
4
Reaction score
0
I am not able to download SGX EOD using DataServerSg for the past 2 days too. In fact, I have not received Data Adjustment for months already. I have been writing emailssss to "contact@technical-analysis.com" but so far no reply.

I am beginning to wonder if they have run out of business
 
Last edited:

hybrid200x

Junior Member
Joined
Jan 3, 2019
Messages
17
Reaction score
0
I think I understand the problem now.

Just last week, my script was still working fine. Today I realised that sgx website has changed the URL format for running its API to pull the data file SESprice.dat.

Its an easy fix. And my guess is once they (DataFolio or DataServerSG) realised the change and implement remedies to their own scripts, all shall return back to normal. But till then, you will have to bear with the inconvenience. Good luck!
 

klarklar

Supremacy Member
Joined
Jan 8, 2012
Messages
9,262
Reaction score
625
I am not able to download SGX EOD using DataServerSg for the past 2 days too. In fact, I have not received Data Adjustment for months already. I have been writing emailssss to "contact@technical-analysis.com" but so far no reply.

I am beginning to wonder if they have run out of business


Seems like DataServerSg or DataFolio as known in the old days is dead. No reply from the person who sold the software. It is ok to wind down the business and stop support. But at least please give your customers some warning first as some of us depend on the product to make money. I don't think it is nice to ignore customer emails when the product stop working. Some explanation from the person is expected. At least tell us with a firm answer whether this product is officially dead and that we should go look for alternative. Don't give us silent treatment.
 
Last edited:

peterchan75

Supremacy Member
Joined
Apr 26, 2003
Messages
6,695
Reaction score
522
I suppose it may be due to the "new" Term of Use.
Point 2 of 2nd paragraph ... :s22:

Still can get the data and parse them to the your format or get from Yahoo Finance.
 
Last edited:

jas663

Member
Joined
Jul 11, 2010
Messages
108
Reaction score
7
Anybody can recommend SGX EOD data source?
Have been using datafolio and now sourcing for others....

TIA
 

Sibehsiok1

Junior Member
Joined
Feb 12, 2019
Messages
3
Reaction score
0
Seems like DataServerSg or DataFolio as known in the old days is dead. No reply from the person who sold the software. It is ok to wind down the business and stop support. But at least please give your customers some warning first as some of us depend on the product to make money. I don't think it is nice to ignore customer emails when the product stop working. Some explanation from the person is expected. At least tell us with a firm answer whether this product is officially dead and that we should go look for alternative. Don't give us silent treatment.

Still no reply despite several emails. At least the admin should provide feedback.
Not helpful at all.
 

choychho

Junior Member
Joined
Nov 14, 2010
Messages
4
Reaction score
0
I have since been downloading daily eod from SGX and written a Excel VBA to convert the .dat format into a metastock format. Finally use metastock downloader to update the EOD. Hope the above give the metastock users some idea on how to overcome
 

hybrid200x

Junior Member
Joined
Jan 3, 2019
Messages
17
Reaction score
0
I have since been downloading daily eod from SGX and written a Excel VBA to convert the .dat format into a metastock format. Finally use metastock downloader to update the EOD. Hope the above give the metastock users some idea on how to overcome

If anybody needs it, i have the entire collection of sgx EOD data since 1996 till now.
 

libratiger74

Member
Joined
Oct 1, 2008
Messages
178
Reaction score
0
Hi, anyone has a better option to share for Dataserver now since it is clear it is not supported anymore and there is no response? Thanks.
 

peterchan75

Supremacy Member
Joined
Apr 26, 2003
Messages
6,695
Reaction score
522
Here is a solution using Excel macro. Create a excel macro and delete whatever in the Microsoft Visual Basic editor and paste the VBA code below and save it under .xlsm file in a folder. It will consolidate all the SESprice.dat file in the same folder as the .xlsm file in Sheet1 and format Sheet2 column A as text and key in all the tickers that need to be consolidated. Download the SESprice.dat from SGX website and give it a unique name with .dat extension.
https://www2.sgx.com/research-education/securities

The consolidated output will be in SGX_EOD_output.csv.

Excel VBA code

'Start a new Excel spreadsheet, click Macros button, View, Create
'Name the macros at SGX_EOD and press enter
'There should be Sub SGX_EOD() and End Sub. Delete them.
'Copy and paste these codes
'Put all the SESprice.dat and this macro in one folder
'Need to rename SESprice.dat files to some unique name
'The filename must have .dat extension. Otherwise, it will not be read
'In column A of Sheet2, format it to Text
'In Sheet2 of the macro workbook, put in SGX ticker starting from Row 1
Sub SGX_EOD()
Dim thispath As String
Dim inputfile As String
Dim outputfile As String
Dim eod_linein As String
Dim eod_lineout As String
Dim ticker As String
Dim date_str As String
Dim eod_array As Variant
Dim i As Integer, j As Integer
Dim found As Boolean

outputfile = "SGX_EOD_output.csv" 'If you want, you can rename it
thispath = ThisWorkbook.Path

ThisWorkbook.Sheets("Sheet1").Columns("A:A").Clear
FileList ("*.dat")

Open thispath & "\" & outputfile For Output As #1
'If do not need label then just comment out the following statement
Write #1, "<Ticker>,<D>,<YYMMDD>,<Open>,<High>,<Low>,<Close>,<Volume>"

For i = 1 To ThisWorkbook.Sheets("Sheet1").Cells(Rows.Count, 1).End(xlUp).Row
Open thispath & "\" & ThisWorkbook.Sheets("Sheet1").Cells(i, 1) For Input As #2

While Not EOF(2)
Line Input #2, eod_linein
If Len(eod_linein) > 0 Then
If IsNumeric(Mid(eod_linein, 1, 1)) Then
eod_linein = Replace(eod_linein, Chr(13), "")
eod_array = Split(eod_linein, ";")
eod_array(14) = Trim(eod_array(14))
ticker = eod_array(14)
found = False
For j = 1 To ThisWorkbook.Sheets("Sheet2").Cells(Rows.Count, 1).End(xlUp).Row
If ticker = ThisWorkbook.Sheets("Sheet2").Cells(j, 1) Then
found = True
Exit For
End If
Next j
If found Then
date_str = Mid(eod_array(0), 3, 2) & Mid(eod_array(0), 6, 2) & Mid(eod_array(0), 9, 2)
eod_lineout = ticker & ",D," & date_str
If eod_array(8) = 0 Then 'No trade, set Open, High, Low to Last
eod_lineout = ticker & ",D," & date_str & "," & Abs(eod_array(6)) & "," & Abs(eod_array(6)) & "," & Abs(eod_array(6)) & "," & Abs(eod_array(6))
Else
eod_lineout = ticker & ",D," & date_str & "," & Abs(eod_array(12)) & "," & Abs(eod_array(4)) & "," & Abs(eod_array(5))
'Check for delay close
If Trim(eod_array(15)) <> "" Then
eod_lineout = eod_lineout & "," & Abs(eod_array(15))
Else
eod_lineout = eod_lineout & "," & Abs(eod_array(6))
End If
End If
eod_lineout = eod_lineout & "," & Abs(eod_array(8))
Write #1, eod_lineout
End If
End If
End If
Wend
Close #2
Next i
Close #1
End Sub
'Sub to read ".dat" files in current folder and store to Sheet1
Sub FileList(fltr As String)
Dim i As Integer
Dim fldr As String
Dim sTemp As String, sHldr As String

fldr = ThisWorkbook.Path
If Right$(fldr, 1) <> "\" Then fldr = fldr & "\"
sTemp = Dir(fldr & fltr)

ThisWorkbook.Sheets("Sheet1").Cells(1, 1) = sTemp
If sTemp = "" Then End
i = 2
Do
sHldr = Dir
If sHldr = "" Then Exit Do
ThisWorkbook.Sheets("Sheet1").Cells(i, 1) = sHldr
i = i + 1
Loop

End Sub
 

Sibehsiok1

Junior Member
Joined
Feb 12, 2019
Messages
3
Reaction score
0
I have since been downloading daily eod from SGX and written a Excel VBA to convert the .dat format into a metastock format. Finally use metastock downloader to update the EOD. Hope the above give the metastock users some idea on how to overcome
Hi, can u provide the steps to write excel via to convert the sgx dat format into metastock format. Do I nid to install vba app in excel? Plse help..thks
 

choychho

Junior Member
Joined
Nov 14, 2010
Messages
4
Reaction score
0
Hi, can u provide the steps to write excel via to convert the sgx dat format into metastock format. Do I nid to install vba app in excel? Plse help..thks
I tried to post the dropbox link but was rejected by admin. Sorry I dont know how to help
 

whitesand

Member
Joined
Dec 1, 2001
Messages
397
Reaction score
10
I have since been downloading daily eod from SGX and written a Excel VBA to convert the .dat format into a metastock format. Finally use metastock downloader to update the EOD. Hope the above give the metastock users some idea on how to overcome

Can you email me the steps please? (email PMed).

Thank you very much
 

whitesand

Member
Joined
Dec 1, 2001
Messages
397
Reaction score
10
Anyone has good source of SGX EOD data for metastock? I don't mind paying a (preferrably small :) ) fee for that. Thanks.
 

Adriana Lowe

Junior Member
Joined
Mar 21, 2019
Messages
4
Reaction score
0
Maybe try Sigma by Hydra X - it's a new platform with free data feeds for most markets including SGX
 

klarklar

Supremacy Member
Joined
Jan 8, 2012
Messages
9,262
Reaction score
625
Hi, has anyone tried datafet.com for eod data?

This certainly looks good. Too good to be true, to be honest. So, be careful. On the other hand, if you have tried it and find it good, do share with us your review. I'm sure there are some disadvantages since it looks too good to be true.
 
Last edited:
Important Forum Advisory Note
This forum is moderated by volunteer moderators who will react only to members' feedback on posts. Moderators are not employees or representatives of HWZ. Forum members and moderators are responsible for their own posts.

Please refer to our Community Guidelines and Standards, Terms of Service and Member T&Cs for more information.
Top