Skip to content

Instantly share code, notes, and snippets.

@tranvictor
Created February 4, 2018 03:38
Show Gist options
  • Save tranvictor/2387e8cfc7f4eb1878422e2839d946ba to your computer and use it in GitHub Desktop.
Save tranvictor/2387e8cfc7f4eb1878422e2839d946ba to your computer and use it in GitHub Desktop.
2018-02-04 03:25:25,456 - DEBUG - analytic - [fetcher.py:113:request_get] - Return status code: 200
2018-02-04 03:25:25,457 - DEBUG - analytic - [fetcher.py:110:request_get] - Request get exchangefees from host: http://core:8000/exchangefees params: {'nonce': 1517714725457} payload: {}
2018-02-04 03:25:25,459 - DEBUG - analytic - [fetcher.py:113:request_get] - Return status code: 200
2018-02-04 03:25:25,459 - WARNING - analytic - [price_strategy.py:226:get_ask_bid_prices] - Get zero rate for KNC bid_data {} ask_data {}
2018-02-04 03:25:25,459 - DEBUG - analytic - [fetcher.py:110:request_get] - Request get exchangefees from host: http://core:8000/exchangefees params: {'nonce': 1517714725460} payload: {}
2018-02-04 03:25:25,461 - DEBUG - analytic - [fetcher.py:113:request_get] - Return status code: 200
2018-02-04 03:25:25,462 - DEBUG - analytic - [fetcher.py:110:request_get] - Request get exchangefees from host: http://core:8000/exchangefees params: {'nonce': 1517714725462} payload: {}
2018-02-04 03:25:25,464 - DEBUG - analytic - [fetcher.py:113:request_get] - Return status code: 200
2018-02-04 03:25:25,464 - DEBUG - analytic - [fetcher.py:110:request_get] - Request get metrics from host: http://core:8000/metrics params: {'tokens': 'EOS-OMG-SNT-KNC-SALT', 'from': 1517714425465, 'to': 1517714725465, 'nonce': 1517714725465} payload: {}
2018-02-04 03:25:25,467 - DEBUG - analytic - [fetcher.py:113:request_get] - Return status code: 200
2018-02-04 03:25:25,468 - DEBUG - analytic - [fetcher.py:28:get_rates] - Request get rates from host: http://core:8000/getrates params: {}
2018-02-04 03:25:25,470 - DEBUG - analytic - [fetcher.py:30:get_rates] - Return status code: 200
2018-02-04 03:25:25,470 - INFO - analytic - [rate_strategy.py:344:set_view_rates] - imb {'SNT': BalanceStatus(imbalance=1291.7378853979371, target=4635), 'KNC': BalanceStatus(imbalance=17.81551527970464, target=266), 'SALT': BalanceStatus(imbalance=-5.025691590000008, target=175), 'EOS': BalanceStatus(imbalance=-2.544827089997483, target=93), 'OMG': BalanceStatus(imbalance=-14.587199988328294, target=70), 'ETH': BalanceStatus(imbalance=-0.070907086221637, target=1.98)} avg {'EOS': 0.0029030575421349057, 'KNC': 0.006260775591654928, 'OMG': 0.004532826886816679, 'SALT': 0.0076393126565249434, 'SNT': 0.006140861194985826} vol {'EOS': 0.005, 'OMG': 0.005, 'SALT': 0.005, 'SNT': 0.011892901355602113} afp_mids {'EOS': 0.010935005, 'OMG': 0.014565513499999998, 'SNT': 0.00023270573499999998, 'KNC': 0.0, 'SALT': 0.0056240249999999995} old_afps {'EOS': 0.011038502500000002, 'OMG': 0.014505040999999996, 'SNT': 0.0, 'KNC': 0.003984263549999999, 'SALT': 0.005585513499999999}
2018-02-04 03:25:25,471 - INFO - analytic - [fetcher_interfaces.py:85:__init__] - Create new rate: EOS buy: 0.0108420574575 sell:90.65140812011661 afp:0.010935005
2018-02-04 03:25:25,471 - INFO - analytic - [fetcher_interfaces.py:85:__init__] - Create new rate: OMG buy: 0.014441706635249999 sell:67.85126681682938 afp:0.014565513499999998
2018-02-04 03:25:25,471 - INFO - analytic - [fetcher_interfaces.py:85:__init__] - Create new rate: SNT buy: 0.00022702214657032796 sell:4232.127962514177 afp:0.00023270573499999998
2018-02-04 03:25:25,471 - INFO - analytic - [fetcher_interfaces.py:85:__init__] - Create new rate: KNC buy: 0 sell:0 afp:0
2018-02-04 03:25:25,471 - WARNING - analytic - [rate_strategy.py:357:set_view_rates] - Set zero rate for KNC afp_mids 0.0 imb BalanceStatus(imbalance=17.81551527970464, target=266) avg 0.006260775591654928 vol None
2018-02-04 03:25:25,472 - INFO - analytic - [fetcher_interfaces.py:85:__init__] - Create new rate: SALT buy: 0.005568799007318444 sell:175.99072463942477 afp:0.0056240249999999995
2018-02-04 03:25:25,472 - INFO - analytic - [rate_strategy.py:313:check_trigger_condition] - Excess rate interval time from 1517714725438 to 1517697999229
2018-02-04 03:25:25,472 - INFO - analytic - [fetcher_interfaces.py:433:set_rates] - Request set rates
2018-02-04 03:25:25,472 - DEBUG - analytic - [fetcher.py:147:request_post] - Request input: url - http://core:8000/setrates, data - {'tokens': 'EOS-OMG-SNT-KNC-SALT', 'buys': '0x4ea0a7f64bc830000-0x3ada01fadb15d6000-0xe56c92e721b7380000-0x0-0x98a5ca79ee8800000', 'sells': '0x2684cb37637f60-0x334ea7d9f1c94e-0xce79b6670857-0x0-0x13c8cb0ea821ac', 'afp_mid': '0x26d95440a46200-0x33bf41e2237efe-0xd3a506abffbf-0x0-0x13fb055c553a00', 'block': 5026866}, params - {'nonce': 1517714725473}
2018-02-04 03:25:26,812 - DEBUG - analytic - [fetcher.py:151:request_post] - Request response {"reason":"insufficient funds for gas * price + value","success":false} Status code: 200
2018-02-04 03:25:26,812 - ERROR - analytic - [fetcher.py:156:request_post] - Failed to setrates, reason: insufficient funds for gas * price + value
2018-02-04 03:25:26,812 - INFO - analytic - [fetcher_interfaces.py:416:get_reserve_balances] - Get reserve balances success: True, data: {'EOS': 43.549172910002525, 'ETH': 0.863930643778363, 'KNC': 153.08251527970467, 'OMG': 33.506230011671704, 'SALT': 84.15030841, 'SNT': 2956.810481497937}
2018-02-04 03:25:26,813 - INFO - analytic - [fetcher_interfaces.py:397:get_ebalances] - Get exchanges balances success: True, data: {'binance': {'KNC': {'available': 130.733, 'deposit': 0, 'locked': 0, 'total': 130.733}, 'OMG': {'available': 21.90657, 'deposit': 0, 'locked': 0, 'total': 21.90657}, 'ETH': {'available': 1.04516227, 'deposit': 0, 'locked': 0, 'total': 1.04516227}, 'EOS': {'available': 46.906, 'deposit': 0, 'locked': 0, 'total': 46.906}, 'SNT': {'available': 2969.9274039, 'deposit': 0, 'locked': 0, 'total': 2969.9274039}, 'SALT': {'available': 85.824, 'deposit': 0, 'locked': 0, 'total': 85.824}}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment