'Non-UI application (console / server application)
#Region Project Attributes
#CommandLineArgs:
#MergeLibraries: True
#End Region
Sub Process_Globals
End Sub
Sub AppStart (Args() As String)
DownloadQuote
StartMessageLoop
End Sub
Sub DownloadQuote
Dim j As HttpJob
j.Initialize("", Me)
j.Download("https://cdn.cboe.com/api/global/delayed_quotes/term_structure/2021/VIX_2021-07-31.json")
Wait For (j) JobDone(j As HttpJob)
If j.Success Then
Dim s As String = j.GetString
End If
If s.Contains("<Error>") Then
Log("Yes")
End If
j.Release
ExitApplication
End Sub