api.nasdaq.com dividens parsing WIP
This commit is contained in:
parent
f6bba09f0f
commit
125c73ac33
15
debug.lisp
15
debug.lisp
|
|
@ -51,7 +51,18 @@
|
||||||
;(print header)
|
;(print header)
|
||||||
(define rows (index (index calendar_data 1) 1))
|
(define rows (index (index calendar_data 1) 1))
|
||||||
;(print rows)
|
;(print rows)
|
||||||
(for x rows
|
(for e rows
|
||||||
(print x))
|
; (("announcement_Date" "01/07/2021") ("companyName" "Itau Unibanco Banco Holding SA") ("dividend_Ex_Date" "02/01/2021") ("dividend_Rate" 0.003) ("indicated_Annual_Dividend" 0.033) ("payment_Date" "03/11/2021") ("record_Date" "02/02/2021") ("symbol" "ITUB"))
|
||||||
|
(define symbol (second (first (filter (lambda (x) (= (first x) "symbol")) e))))
|
||||||
|
(define divrate (second (first (filter (lambda (x) (= (first x) "dividend_Rate")) e))))
|
||||||
|
(define adate (second (first (filter (lambda (x) (= (first x) "announcement_Date")) e))))
|
||||||
|
(define name (second (first (filter (lambda (x) (= (first x) "companyName")) e))))
|
||||||
|
(define edate (second (first (filter (lambda (x) (= (first x) "dividend_Ex_Date")) e))))
|
||||||
|
(define pdate (second (first (filter (lambda (x) (= (first x) "payment_Date")) e))))
|
||||||
|
(define rdate (second (first (filter (lambda (x) (= (first x) "record_Date")) e))))
|
||||||
|
|
||||||
|
(print symbol edate pdate divrate)
|
||||||
|
|
||||||
|
)
|
||||||
|
|
||||||
(print "Debug ends")
|
(print "Debug ends")
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue