Advertisement
Guest User

Untitled

a guest
Dec 8th, 2019
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.44 KB | None | 0 0
  1.         data = {
  2.             'id': item['id'],
  3.             'head': head.upper(),
  4.             'body': '\n'.join(map(
  5.                 lambda attr: ': '.join((
  6.                     ''.join((tags[attr][0].upper(), tags[attr][1:])),
  7.                     (attr == 'price' and '{:.10f}' or '{}').format(tick[attr]))),
  8.                 filter(
  9.                     lambda attr: item['_'.join((attr, 'on'))],
  10.                     ('price', 'amount'))))}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement