Closed anranyicheng closed 1 year ago
But st-json no error.
(ql:quickload '(:drakma :st-json))
(st-json:read-json-from-string (drakma:http-request "https://proxy.finance.qq.com/ifzqgtimg/appstock/app/newfqkline/get?param=sz300456,day,2020-01-01,2050-01-01,1,qfq"))
Hi, I try this: (ql:quickload '(:drakma :jonathan)) (jonathan:parse (drakma:http-request "https://proxy.finance.qq.com/ifzqgtimg/appstock/app/newfqkline/get?param=sz300456,day,2020-01-01,2050-01-01,1,qfq"))
error:
Incomplete JSON string: {"code":0,"msg":"","data":{"sz300456":{"qfqday":[["2022-09-14","15.24","15.48","15.63","15.18","54612.00",{},"0.95","8426.78",""]],"qt":{"sz300456":["51","\u8d5b\u5fae\u7535\u5b50","300456","15.48","15.55","15.24","54612","25667","28944","15.47","101","15.45","163","15.44","86","15.43","275","15.42","1","15.48","33","15.49","182","15.50","126","15.51","53","15.52","61","","20220914161457","-0.07","-0.45","15.63","15.18","15.48\/54612\/84267784","54612","8427","0.95","79.96","","15.63","15.18","2.89","89.32","113.51","2.27","18.66","12.44","0.69","171","15.43","683.92","55.18","","","1.53","8426.7784","0.0000","0"," A","GP-A-CYB","-36.88","-3.13","0.23","2.84","1.55","29.72","11.67","-4.86","-17.79","-8.51","577003163","733289072","15.82","-40.15","577003163","","","-46.43","0.00",""],"market":["2022-09-14 20:35:37|HKclose\u5df2\u6536\u76d8|SHclose\u5df2\u6536\u76d8|SZclose\u5df2\u6536\u76d8|USclose\u672a\u5f00\u76d8|SQclose\u5df2\u4f11\u5e02|DSclose\u5df2\u4f11\u5e02|ZSclose\u5df2\u4f11\u5e02|NEWSHclose\u5df2\u6536\u76d8|NEWSZclose\u5df2\u6536\u76d8|NEWHKclose\u5df2\u6536\u76d8|NEWUSclose\u672a\u5f00\u76d8|REPOclose\u5df2\u6536\u76d8|UKopen\u4ea4\u6613\u4e2d|KCBclose\u5df2\u6536\u76d8|ITopen\u4ea4\u6613\u4e2d|MYclose\u5df2\u6536\u76d8|EUopen\u4ea4\u6613\u4e2d|AHclose\u5df2\u6536\u76d8|DEopen\u4ea4\u6613\u4e2d|JWclose\u5df2\u6536\u76d8|CYBclose\u5df2\u6536\u76d8|USAclose\u672a\u5f00\u76d8|USBopen\u76d8\u524d\u4ea4\u6613|ZQclose\u5df2\u6536\u76d8"],"zjlx":["sz300456","0.00","0.00","0.00","0","0.00","0.00","0.00","0","0.00","0.00","0.00","\u8d5b\u5fae\u7535\u5b50","20200701","20200701^0.00^0.00","20200630^0.00^0.00","20200629^0.00^0.00","20200624^0.00^0.00","0.00","0.00","20200701085013"]},"mx_price":{"mx":{"data":[],"timeline":[]},"price":{"data":[]}},"attribute":{"NoProfit":"0","WeightedVotingRights":"1","IsVIE":"0","IsRegistration":"0"},"prec":"15.55","fsStartDate":"20201009","version":"18"}}} [Condition of type]
Restarts: 0: [RETRY] Retry SLIME REPL evaluation request. 1: [*ABORT] Return to SLIME's top level. 2: [ABORT] abort thread (#<THREAD "repl-thread" RUNNING {10010A8003}>)
Backtrace: 0: ((LABELS JONATHAN.DECODE::DISPATCH :IN PARSE) # #)
1: (PARSE # :AS # :JUNK-ALLOWED # :KEYWORDS-TO-READ # :KEYWORD-NORMALIZER # :NORMALIZE-ALL #<..
2: (SB-INT:SIMPLE-EVAL-IN-LEXENV (PARSE (HTTP-REQUEST "https://proxy.finance.qq.com/ifzqgtimg/appstock/app/newfqkline/get?param=sz300456,day,2020-01-01,2050-01-01,1,qfq")) #)
3: (EVAL (PARSE (HTTP-REQUEST "https://proxy.finance.qq.com/ifzqgtimg/appstock/app/newfqkline/get?param=sz300456,day,2020-01-01,2050-01-01,1,qfq")))
4: (SWANK::EVAL-REGION "(ql:quickload '(:drakma :jonathan)) ..)
5: ((LAMBDA NIL :IN SWANK-REPL::REPL-EVAL))
6: (SWANK-REPL::TRACK-PACKAGE #<FUNCTION (LAMBDA NIL :IN SWANK-REPL::REPL-EVAL) {10075BD5DB}>)
7: (SWANK::CALL-WITH-RETRY-RESTART "Retry SLIME REPL evaluation request." #<FUNCTION (LAMBDA NIL :IN SWANK-REPL::REPL-EVAL) {10075BD57B}>)
8: (SWANK::CALL-WITH-BUFFER-SYNTAX NIL #<FUNCTION (LAMBDA NIL :IN SWANK-REPL::REPL-EVAL) {10075BD55B}>)
9: (SWANK-REPL::REPL-EVAL "(ql:quickload '(:drakma :jonathan)) ..)
10: (SB-INT:SIMPLE-EVAL-IN-LEXENV (SWANK-REPL:LISTENER-EVAL "(ql:quickload '(:drakma :jonathan)) ..)
11: (EVAL (SWANK-REPL:LISTENER-EVAL "(ql:quickload '(:drakma :jonathan)) ..)
12: (SWANK:EVAL-FOR-EMACS (SWANK-REPL:LISTENER-EVAL "(ql:quickload '(:drakma :jonathan)) ..)
13: (SWANK::PROCESS-REQUESTS NIL)
14: ((LAMBDA NIL :IN SWANK::HANDLE-REQUESTS))
15: ((LAMBDA NIL :IN SWANK::HANDLE-REQUESTS))
16: (SWANK/SBCL::CALL-WITH-BREAK-HOOK # #<FUNCTION (LAMBDA NIL :IN SWANK::HANDLE-REQUESTS) {1008909E0B}>)
17: ((FLET SWANK/BACKEND:CALL-WITH-DEBUGGER-HOOK :IN "../slime-20220712.817/swank/sbcl.lisp") # #<FUNCTION (LAMBDA NIL :IN SWANK::HANDLE-REQUESTS) {..
18: (SWANK::CALL-WITH-BINDINGS ((STANDARD-INPUT . #<SWANK/GRAY::SLIME-INPUT-STREAM {10087AD873}>)) #<FUNCTION (LAMBDA NIL :IN SWANK::HANDLE-REQUESTS) {1008909E2B}>)
19: (SWANK::HANDLE-REQUESTS #<SWANK::MULTITHREADED-CONNECTION {1007B4FF43}> NIL)
20: ((FLET SB-UNIX::BODY :IN SB-THREAD::RUN))
21: ((FLET "WITHOUT-INTERRUPTS-BODY-11" :IN SB-THREAD::RUN))
22: ((FLET SB-UNIX::BODY :IN SB-THREAD::RUN))
23: ((FLET "WITHOUT-INTERRUPTS-BODY-4" :IN SB-THREAD::RUN))
24: (SB-THREAD::RUN)
25: ("foreign function: call_intolisp")
26: ("foreign function: funcall1")