Skip to content

Instantly share code, notes, and snippets.

@patricklodder
Last active September 15, 2020 12:04
Show Gist options
  • Save patricklodder/bf7b0fba498325ec2f022ffc834a2216 to your computer and use it in GitHub Desktop.
Save patricklodder/bf7b0fba498325ec2f022ffc834a2216 to your computer and use it in GitHub Desktop.
curl -s -H 'Content-Type: application/json' \
--data '{"code":"newdexpublic","table":"buyorder","scope":"..........12a","json":true,"limit":1000}' \
https://eos.greymass.com/v1/chain/get_table_rows | \
jq '.rows[] | select( (.remain_convert | match("[0-9]+").string | tonumber > 5) and (.price | tonumber > 20)) | [.owner, .remain_quantity, "@", .price] | join(" ")'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment