Skip to content

Instantly share code, notes, and snippets.

@lepinekong
Created January 3, 2018 08:48
Show Gist options
  • Save lepinekong/4ab27f82f7f065af6fbc2f5e3d237054 to your computer and use it in GitHub Desktop.
Save lepinekong/4ab27f82f7f065af6fbc2f5e3d237054 to your computer and use it in GitHub Desktop.
split quotes
quotes: {[{"date":1405699200,"high":0.0045388,"low":0.00403001,"open":0.00404545,"close":0.00435873,"volume":44.34555992,"quoteVolume":10311.88079097,"weightedAverage":0.00430043},{"date":1405713600,"high":0.00435,"low":0.00412,"open":0.00428012,"close":0.00412,"volume":19.12271662,"quoteVolume":4531.85801066,"weightedAverage":0.00421961}]}
replace/all quotes "[" ""
replace/all quotes "]" ""
quotes2: split quotes ","
;-> [{^{"date":1405699200} {"high":0.0045388} {"low":0.00403001} {"open":0.00404545} {"close":0.00435873} {"volume":44.34555992} {"quoteVolume":10311.88079097} {"weightedAverage":0.00430043^}} {^{"date":1405713600} {"high":0.00435} {"low":0.00412} {"open":0.00428012} {"close":0.00412} {"volume":19.12271662} {"quoteVolume":4531.85801066} {"weightedAverage":0.00421961^}}]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment