2020-10-10 20:00:20 INFO: post order to exchange resp={'orderID': '9298b762-d0ae-47a3-b59c-95037133a7dd', 'clOrdID': 'd8681269022f4592be086bad6426381a', 'clOrdLinkID': '', 'account': 605536, 'symbol': 'ETHUSD', 'side': 'Buy', 'simpleOrderQty': None, 'orderQty': 884, 'price': 374.3, 'displayQty': None, 'stopPx': 374.25, 'pegOffsetValue': None, 'pegPriceType': '', 'currency': 'USD', 'settlCurrency': 'XBt', 'ordType': 'StopLimit', 'timeInForce': 'GoodTillCancel', 'execInst': 'LastPrice', 'contingencyType': '', 'exDestination': 'XBME', 'ordStatus': 'New', 'triggered': '', 'workingIndicator': False, 'ordRejReason': '', 'simpleLeavesQty': None, 'leavesQty': 884, 'simpleCumQty': None, 'cumQty': 0, 'avgPx': None, 'multiLegReportingType': 'SingleSecurity', 'text': 'Init order by supervisor.py', 'transactTime': datetime.datetime(2020, 10, 10, 17, 0, 20, 919000, tzinfo=tzutc()), 'timestamp': datetime.datetime(2020, 10, 10, 17, 0, 20, 919000, tzinfo=tzutc())} 2020-10-10 20:00:20 INFO: place new init order {'qty': 884, 'init_price': Decimal('374.25'), 'stop_price': Decimal('372.1000000000000227373675443232059478759765625'), 'take_price': Decimal('386.89999999999980673237587325274944305419921875'), 'order_uid': 'd8681269022f4592be086bad6426381a', 'response': {'orderID': '9298b762-d0ae-47a3-b59c-95037133a7dd', 'clOrdID': 'd8681269022f4592be086bad6426381a', 'clOrdLinkID': '', 'account': 605536, 'symbol': 'ETHUSD', 'side': 'Buy', 'simpleOrderQty': None, 'orderQty': 884, 'price': 374.3, 'displayQty': None, 'stopPx': 374.25, 'pegOffsetValue': None, 'pegPriceType': '', 'currency': 'USD', 'settlCurrency': 'XBt', 'ordType': 'StopLimit', 'timeInForce': 'GoodTillCancel', 'execInst': 'LastPrice', 'contingencyType': '', 'exDestination': 'XBME', 'ordStatus': 'New', 'triggered': '', 'workingIndicator': False, 'ordRejReason': '', 'simpleLeavesQty': None, 'leavesQty': 884, 'simpleCumQty': None, 'cumQty': 0, 'avgPx': None, 'multiLegReportingType': 'SingleSecurity', 'text': 'Init order by supervisor.py', 'transactTime': datetime.datetime(2020, 10, 10, 17, 0, 20, 919000, tzinfo=tzutc()), 'timestamp': datetime.datetime(2020, 10, 10, 17, 0, 20, 919000, tzinfo=tzutc())}} 2020-10-10 20:00:20 INFO: init new order end 2020-10-10 20:00:20 INFO: 2020-10-10 20:00:20 INFO: 2020-10-10 20:00:20 INFO: 2020-10-10 20:00:20 INFO: 2020-10-10 20:02:00 INFO: 2020-10-10 20:02:00 INFO: 2020-10-10 20:02:00 INFO: 2020-10-10 20:02:00 INFO: 2020-10-10 20:02:00 INFO: clearing start 2020-10-10 20:02:00 INFO: fetch_orders_for_clearing test order {'orderID': '6f76c0d7-c14d-4225-8724-fc5af958530d', 'clOrdID': '6f9d548ef9a34b9ab381d3e514de3371', 'clOrdLinkID': '', 'account': 605536, 'symbol': 'ETHUSD', 'side': 'Buy', 'simpleOrderQty': None, 'orderQty': 905, 'price': None, 'displayQty': None, 'stopPx': 377.75, 'pegOffsetValue': None, 'pegPriceType': '', 'currency': 'USD', 'settlCurrency': 'XBt', 'ordType': 'Stop', 'timeInForce': 'ImmediateOrCancel', 'execInst': 'LastPrice', 'contingencyType': '', 'exDestination': 'XBME', 'ordStatus': 'New', 'triggered': '', 'workingIndicator': False, 'ordRejReason': '', 'simpleLeavesQty': None, 'leavesQty': 905, 'simpleCumQty': None, 'cumQty': 0, 'avgPx': None, 'multiLegReportingType': 'SingleSecurity', 'text': 'Stop order by trader.py', 'transactTime': datetime.datetime(2020, 10, 10, 5, 47, 33, 864000, tzinfo=tzutc()), 'timestamp': datetime.datetime(2020, 10, 10, 5, 47, 33, 864000, tzinfo=tzutc())} 2020-10-10 20:02:00 INFO: skip by not found init order into storage 2020-10-10 20:02:00 INFO: fetch_orders_for_clearing test order {'orderID': 'e31d79bb-e85c-421d-8a0c-500f1fe615c6', 'clOrdID': 'c14133cfedbb4667b72e2fa887fe300a', 'clOrdLinkID': '', 'account': 605536, 'symbol': 'ETHUSD', 'side': 'Buy', 'simpleOrderQty': None, 'orderQty': 905, 'price': 363.3, 'displayQty': None, 'stopPx': None, 'pegOffsetValue': None, 'pegPriceType': '', 'currency': 'USD', 'settlCurrency': 'XBt', 'ordType': 'Limit', 'timeInForce': 'GoodTillCancel', 'execInst': '', 'contingencyType': '', 'exDestination': 'XBME', 'ordStatus': 'New', 'triggered': '', 'workingIndicator': True, 'ordRejReason': '', 'simpleLeavesQty': None, 'leavesQty': 905, 'simpleCumQty': None, 'cumQty': 0, 'avgPx': None, 'multiLegReportingType': 'SingleSecurity', 'text': 'Profit order by trader.py', 'transactTime': datetime.datetime(2020, 10, 10, 5, 47, 33, 902000, tzinfo=tzutc()), 'timestamp': datetime.datetime(2020, 10, 10, 5, 47, 33, 902000, tzinfo=tzutc())} 2020-10-10 20:02:00 INFO: skip by not found init order into storage 2020-10-10 20:02:00 INFO: fetch_orders_for_clearing test order {'orderID': '270f42a6-89cf-4ec5-9b73-f309c7fa3fae', 'clOrdID': '95ecd92e84854df6943f1e0f5beaa14f', 'clOrdLinkID': '', 'account': 605536, 'symbol': 'ETHUSD', 'side': 'Buy', 'simpleOrderQty': None, 'orderQty': 905, 'price': None, 'displayQty': None, 'stopPx': 374.9, 'pegOffsetValue': None, 'pegPriceType': '', 'currency': 'USD', 'settlCurrency': 'XBt', 'ordType': 'Stop', 'timeInForce': 'ImmediateOrCancel', 'execInst': 'LastPrice', 'contingencyType': '', 'exDestination': 'XBME', 'ordStatus': 'New', 'triggered': '', 'workingIndicator': False, 'ordRejReason': '', 'simpleLeavesQty': None, 'leavesQty': 905, 'simpleCumQty': None, 'cumQty': 0, 'avgPx': None, 'multiLegReportingType': 'SingleSecurity', 'text': 'Stop order by trader.py', 'transactTime': datetime.datetime(2020, 10, 10, 15, 51, 16, 457000, tzinfo=tzutc()), 'timestamp': datetime.datetime(2020, 10, 10, 15, 51, 16, 457000, tzinfo=tzutc())} 2020-10-10 20:02:00 INFO: skip by not found init order into storage 2020-10-10 20:02:00 INFO: fetch_orders_for_clearing test order {'orderID': '1131185d-f08a-400f-986b-5daf2eb6d0c9', 'clOrdID': 'ca440d3248324125b5a38c281c0c8957', 'clOrdLinkID': '', 'account': 605536, 'symbol': 'ETHUSD', 'side': 'Buy', 'simpleOrderQty': None, 'orderQty': 905, 'price': 360.45, 'displayQty': None, 'stopPx': None, 'pegOffsetValue': None, 'pegPriceType': '', 'currency': 'USD', 'settlCurrency': 'XBt', 'ordType': 'Limit', 'timeInForce': 'GoodTillCancel', 'execInst': '', 'contingencyType': '', 'exDestination': 'XBME', 'ordStatus': 'New', 'triggered': '', 'workingIndicator': True, 'ordRejReason': '', 'simpleLeavesQty': None, 'leavesQty': 905, 'simpleCumQty': None, 'cumQty': 0, 'avgPx': None, 'multiLegReportingType': 'SingleSecurity', 'text': 'Profit order by trader.py', 'transactTime': datetime.datetime(2020, 10, 10, 15, 51, 17, 498000, tzinfo=tzutc()), 'timestamp': datetime.datetime(2020, 10, 10, 15, 51, 17, 498000, tzinfo=tzutc())} 2020-10-10 20:02:00 INFO: skip by not found init order into storage 2020-10-10 20:02:00 INFO: fetch_orders_for_clearing test order {'orderID': '9298b762-d0ae-47a3-b59c-95037133a7dd', 'clOrdID': 'd8681269022f4592be086bad6426381a', 'clOrdLinkID': '', 'account': 605536, 'symbol': 'ETHUSD', 'side': 'Buy', 'simpleOrderQty': None, 'orderQty': 884, 'price': 374.3, 'displayQty': None, 'stopPx': 374.25, 'pegOffsetValue': None, 'pegPriceType': '', 'currency': 'USD', 'settlCurrency': 'XBt', 'ordType': 'StopLimit', 'timeInForce': 'GoodTillCancel', 'execInst': 'LastPrice', 'contingencyType': '', 'exDestination': 'XBME', 'ordStatus': 'New', 'triggered': '', 'workingIndicator': False, 'ordRejReason': '', 'simpleLeavesQty': None, 'leavesQty': 884, 'simpleCumQty': None, 'cumQty': 0, 'avgPx': None, 'multiLegReportingType': 'SingleSecurity', 'text': 'Init order by supervisor.py', 'transactTime': datetime.datetime(2020, 10, 10, 17, 0, 20, 919000, tzinfo=tzutc()), 'timestamp': datetime.datetime(2020, 10, 10, 17, 0, 20, 919000, tzinfo=tzutc())} 2020-10-10 20:02:00 INFO: order time=2020-10-10 17:00:20.919000+00:00; delta from now UTC=0:01:39.214531 time_delta.total_seconds()=99.214531; time_diff_offset='3600' 2020-10-10 20:02:00 INFO: skip by time diff 2020-10-10 17:00:20.919000+00:00 2020-10-10 20:02:00 INFO: clearing end 2020-10-10 20:02:00 INFO: 2020-10-10 20:02:00 INFO: 2020-10-10 20:02:00 INFO: 2020-10-10 20:02:00 INFO: 2020-10-10 20:06:46 INFO: process event {'orderID': '9298b762-d0ae-47a3-b59c-95037133a7dd', 'ordStatus': 'Filled', 'triggered': 'StopOrderTriggered', 'leavesQty': 0, 'cumQty': 884, 'avgPx': 374.27, 'text': 'Triggered: Order stop price reached\nInit order by supervisor.py', 'transactTime': '2020-10-10T17:06:45.997Z', 'timestamp': '2020-10-10T17:06:45.997Z', 'clOrdID': 'd8681269022f4592be086bad6426381a', 'account': 605536, 'symbol': 'ETHUSD'} 2020-10-10 20:06:46 INFO: add new event={'uid': 'd8681269022f4592be086bad6426381a', 'status': 'Filled'} 2020-10-10 20:06:46 INFO: 2020-10-10 20:06:46 INFO: 2020-10-10 20:06:46 INFO: 2020-10-10 20:06:46 INFO: 2020-10-10 20:06:46 INFO: process event start 2020-10-10 20:06:46 INFO: fetch new order event d8681269022f4592be086bad6426381a 2020-10-10 20:06:46 INFO: fetch orders by event init={'stop': '372.1000000000000227373675443232059478759765625', 'take': '386.89999999999980673237587325274944305419921875', 'qty': '884', 'color': 'GREEN', 'ticker': 'ETHUSD', 'clearing_offset': '3600'} profit_pair=None 2020-10-10 20:06:46 INFO: process init order filled 2020-10-10 20:06:46 INFO: save profit orders to storage stop=4570558bae6d4a799086050e20752a2c take=c4c4df0e25dc46a4bf12b395104920c7 2020-10-10 20:06:46 INFO: place profit orders take_price=386.89999999999980673237587325274944305419921875, stop_price=372.1000000000000227373675443232059478759765625, qty=884, color=GREEN, ticker=ETHUSD 4570558bae6d4a799086050e20752a2c c4c4df0e25dc46a4bf12b395104920c7 2020-10-10 20:06:46 INFO: place stop order ETHUSD: qty=-884, stop_price=372.1000000000000227373675443232059478759765625, stop_uid=4570558bae6d4a799086050e20752a2c 2020-10-10 20:06:46 INFO: process event {'orderID': 'f87fd665-1347-41aa-b38d-42562f9f3ca0', 'clOrdID': '4570558bae6d4a799086050e20752a2c', 'clOrdLinkID': '', 'account': 605536, 'symbol': 'ETHUSD', 'side': 'Sell', 'simpleOrderQty': None, 'orderQty': 884, 'price': None, 'displayQty': None, 'stopPx': 372.1, 'pegOffsetValue': None, 'pegPriceType': '', 'currency': 'USD', 'settlCurrency': 'XBt', 'ordType': 'Stop', 'timeInForce': 'ImmediateOrCancel', 'execInst': 'LastPrice', 'contingencyType': '', 'exDestination': 'XBME', 'ordStatus': 'New', 'triggered': '', 'workingIndicator': False, 'ordRejReason': '', 'simpleLeavesQty': None, 'leavesQty': 884, 'simpleCumQty': None, 'cumQty': 0, 'avgPx': None, 'multiLegReportingType': 'SingleSecurity', 'text': 'Stop order by trader.py', 'transactTime': '2020-10-10T17:06:46.600Z', 'timestamp': '2020-10-10T17:06:46.600Z'} 2020-10-10 20:06:46 INFO: skip event 4570558bae6d4a799086050e20752a2c New 2020-10-10 20:06:46 INFO: exchange resp for stop order={'orderID': 'f87fd665-1347-41aa-b38d-42562f9f3ca0', 'clOrdID': '4570558bae6d4a799086050e20752a2c', 'clOrdLinkID': '', 'account': 605536, 'symbol': 'ETHUSD', 'side': 'Sell', 'simpleOrderQty': None, 'orderQty': 884, 'price': None, 'displayQty': None, 'stopPx': 372.1, 'pegOffsetValue': None, 'pegPriceType': '', 'currency': 'USD', 'settlCurrency': 'XBt', 'ordType': 'Stop', 'timeInForce': 'ImmediateOrCancel', 'execInst': 'LastPrice', 'contingencyType': '', 'exDestination': 'XBME', 'ordStatus': 'New', 'triggered': '', 'workingIndicator': False, 'ordRejReason': '', 'simpleLeavesQty': None, 'leavesQty': 884, 'simpleCumQty': None, 'cumQty': 0, 'avgPx': None, 'multiLegReportingType': 'SingleSecurity', 'text': 'Stop order by trader.py', 'transactTime': datetime.datetime(2020, 10, 10, 17, 6, 46, 600000, tzinfo=tzutc()), 'timestamp': datetime.datetime(2020, 10, 10, 17, 6, 46, 600000, tzinfo=tzutc())} 2020-10-10 20:06:46 INFO: place limit order ETHUSD: qty=-884, price=386.89999999999980673237587325274944305419921875, take_uid=c4c4df0e25dc46a4bf12b395104920c7 2020-10-10 20:06:46 INFO: exchange resp for take profit order={'orderID': '751f71da-4f5e-489b-92fe-e83c33cc0d4c', 'clOrdID': 'c4c4df0e25dc46a4bf12b395104920c7', 'clOrdLinkID': '', 'account': 605536, 'symbol': 'ETHUSD', 'side': 'Sell', 'simpleOrderQty': None, 'orderQty': 884, 'price': 386.9, 'displayQty': None, 'stopPx': None, 'pegOffsetValue': None, 'pegPriceType': '', 'currency': 'USD', 'settlCurrency': 'XBt', 'ordType': 'Limit', 'timeInForce': 'GoodTillCancel', 'execInst': '', 'contingencyType': '', 'exDestination': 'XBME', 'ordStatus': 'New', 'triggered': '', 'workingIndicator': True, 'ordRejReason': '', 'simpleLeavesQty': None, 'leavesQty': 884, 'simpleCumQty': None, 'cumQty': 0, 'avgPx': None, 'multiLegReportingType': 'SingleSecurity', 'text': 'Profit order by trader.py', 'transactTime': datetime.datetime(2020, 10, 10, 17, 6, 46, 634000, tzinfo=tzutc()), 'timestamp': datetime.datetime(2020, 10, 10, 17, 6, 46, 634000, tzinfo=tzutc())} 2020-10-10 20:06:46 INFO: process event {'orderID': '751f71da-4f5e-489b-92fe-e83c33cc0d4c', 'clOrdID': 'c4c4df0e25dc46a4bf12b395104920c7', 'clOrdLinkID': '', 'account': 605536, 'symbol': 'ETHUSD', 'side': 'Sell', 'simpleOrderQty': None, 'orderQty': 884, 'price': 386.9, 'displayQty': None, 'stopPx': None, 'pegOffsetValue': None, 'pegPriceType': '', 'currency': 'USD', 'settlCurrency': 'XBt', 'ordType': 'Limit', 'timeInForce': 'GoodTillCancel', 'execInst': '', 'contingencyType': '', 'exDestination': 'XBME', 'ordStatus': 'New', 'triggered': '', 'workingIndicator': True, 'ordRejReason': '', 'simpleLeavesQty': None, 'leavesQty': 884, 'simpleCumQty': None, 'cumQty': 0, 'avgPx': None, 'multiLegReportingType': 'SingleSecurity', 'text': 'Profit order by trader.py', 'transactTime': '2020-10-10T17:06:46.634Z', 'timestamp': '2020-10-10T17:06:46.634Z'} 2020-10-10 20:06:46 INFO: skip event c4c4df0e25dc46a4bf12b395104920c7 New 2020-10-10 20:06:46 INFO: place profit orders={'stop': {'response': {'orderID': 'f87fd665-1347-41aa-b38d-42562f9f3ca0', 'clOrdID': '4570558bae6d4a799086050e20752a2c', 'clOrdLinkID': '', 'account': 605536, 'symbol': 'ETHUSD', 'side': 'Sell', 'simpleOrderQty': None, 'orderQty': 884, 'price': None, 'displayQty': None, 'stopPx': 372.1, 'pegOffsetValue': None, 'pegPriceType': '', 'currency': 'USD', 'settlCurrency': 'XBt', 'ordType': 'Stop', 'timeInForce': 'ImmediateOrCancel', 'execInst': 'LastPrice', 'contingencyType': '', 'exDestination': 'XBME', 'ordStatus': 'New', 'triggered': '', 'workingIndicator': False, 'ordRejReason': '', 'simpleLeavesQty': None, 'leavesQty': 884, 'simpleCumQty': None, 'cumQty': 0, 'avgPx': None, 'multiLegReportingType': 'SingleSecurity', 'text': 'Stop order by trader.py', 'transactTime': datetime.datetime(2020, 10, 10, 17, 6, 46, 600000, tzinfo=tzutc()), 'timestamp': datetime.datetime(2020, 10, 10, 17, 6, 46, 600000, tzinfo=tzutc())}, 'qty': Decimal('-884'), 'uid': '4570558bae6d4a799086050e20752a2c', 'price': Decimal('372.1000000000000227373675443232059478759765625')}, 'take': {'response': {'orderID': '751f71da-4f5e-489b-92fe-e83c33cc0d4c', 'clOrdID': 'c4c4df0e25dc46a4bf12b395104920c7', 'clOrdLinkID': '', 'account': 605536, 'symbol': 'ETHUSD', 'side': 'Sell', 'simpleOrderQty': None, 'orderQty': 884, 'price': 386.9, 'displayQty': None, 'stopPx': None, 'pegOffsetValue': None, 'pegPriceType': '', 'currency': 'USD', 'settlCurrency': 'XBt', 'ordType': 'Limit', 'timeInForce': 'GoodTillCancel', 'execInst': '', 'contingencyType': '', 'exDestination': 'XBME', 'ordStatus': 'New', 'triggered': '', 'workingIndicator': True, 'ordRejReason': '', 'simpleLeavesQty': None, 'leavesQty': 884, 'simpleCumQty': None, 'cumQty': 0, 'avgPx': None, 'multiLegReportingType': 'SingleSecurity', 'text': 'Profit order by trader.py', 'transactTime': datetime.datetime(2020, 10, 10, 17, 6, 46, 634000, tzinfo=tzutc()), 'timestamp': datetime.datetime(2020, 10, 10, 17, 6, 46, 634000, tzinfo=tzutc())}, 'qty': Decimal('-884'), 'uid': 'c4c4df0e25dc46a4bf12b395104920c7', 'price': Decimal('386.89999999999980673237587325274944305419921875')}} 2020-10-10 20:06:46 INFO: rm init order from db d8681269022f4592be086bad6426381a 2020-10-10 20:06:46 INFO: end process event_processing_result='proceed init order' 2020-10-10 20:06:46 INFO: 2020-10-10 20:06:46 INFO: 2020-10-10 20:06:46 INFO: 2020-10-10 20:06:46 INFO: 2020-10-10 20:17:46 INFO: process event {'orderID': '270f42a6-89cf-4ec5-9b73-f309c7fa3fae', 'price': 375, 'ordStatus': 'Filled', 'triggered': 'StopOrderTriggered', 'leavesQty': 0, 'cumQty': 905, 'avgPx': 374.97, 'text': 'Triggered: Order stop price reached\nStop order by trader.py', 'transactTime': '2020-10-10T17:17:46.196Z', 'timestamp': '2020-10-10T17:17:46.196Z', 'clOrdID': '95ecd92e84854df6943f1e0f5beaa14f', 'account': 605536, 'symbol': 'ETHUSD'} 2020-10-10 20:17:46 INFO: add new event={'uid': '95ecd92e84854df6943f1e0f5beaa14f', 'status': 'Filled'} 2020-10-10 20:17:46 INFO: 2020-10-10 20:17:46 INFO: 2020-10-10 20:17:46 INFO: 2020-10-10 20:17:46 INFO: 2020-10-10 20:17:46 INFO: process event start 2020-10-10 20:17:46 INFO: fetch new order event 95ecd92e84854df6943f1e0f5beaa14f 2020-10-10 20:17:46 INFO: fetch orders by event init=None profit_pair=ca440d3248324125b5a38c281c0c8957 2020-10-10 20:17:46 INFO: process profit order filled 2020-10-10 20:17:46 INFO: process event {'orderID': '1131185d-f08a-400f-986b-5daf2eb6d0c9', 'ordStatus': 'Canceled', 'workingIndicator': False, 'leavesQty': 0, 'text': 'Canceled: Cancel order by trader.py\nProfit order by trader.py', 'timestamp': '2020-10-10T17:17:46.573Z', 'clOrdID': 'ca440d3248324125b5a38c281c0c8957', 'account': 605536, 'symbol': 'ETHUSD'} 2020-10-10 20:17:46 INFO: skip event ca440d3248324125b5a38c281c0c8957 Canceled 2020-10-10 20:17:46 INFO: cancel order=ca440d3248324125b5a38c281c0c8957 [{'orderID': '1131185d-f08a-400f-986b-5daf2eb6d0c9', 'clOrdID': 'ca440d3248324125b5a38c281c0c8957', 'clOrdLinkID': '', 'account': 605536, 'symbol': 'ETHUSD', 'side': 'Buy', 'simpleOrderQty': None, 'orderQty': 905, 'price': 360.45, 'displayQty': None, 'stopPx': None, 'pegOffsetValue': None, 'pegPriceType': '', 'currency': 'USD', 'settlCurrency': 'XBt', 'ordType': 'Limit', 'timeInForce': 'GoodTillCancel', 'execInst': '', 'contingencyType': '', 'exDestination': 'XBME', 'ordStatus': 'Canceled', 'triggered': '', 'workingIndicator': False, 'ordRejReason': '', 'simpleLeavesQty': None, 'leavesQty': 0, 'simpleCumQty': None, 'cumQty': 0, 'avgPx': None, 'multiLegReportingType': 'SingleSecurity', 'text': 'Canceled: Cancel order by trader.py\nProfit order by trader.py', 'transactTime': datetime.datetime(2020, 10, 10, 15, 51, 17, 498000, tzinfo=tzutc()), 'timestamp': datetime.datetime(2020, 10, 10, 17, 17, 46, 573000, tzinfo=tzutc())}] 2020-10-10 20:17:46 INFO: end process event_processing_result='proceed profit order' 2020-10-10 20:17:46 INFO: 2020-10-10 20:17:46 INFO: 2020-10-10 20:17:46 INFO: 2020-10-10 20:17:46 INFO: 2020-10-10 20:27:14 ERROR: Error : Connection is already closed. 2020-10-10 20:27:14 ERROR: error from callback >: Connection is already closed. 2020-10-10 20:27:14 INFO: Websocket Closed 2020-10-10 20:27:15 WARNING: reconnect to socket 2020-10-10 20:27:15 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2020-10-10 20:27:15 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2020-10-10 20:27:15 INFO: Authenticating with API Key. 2020-10-10 20:27:16 INFO: Connected to WS. 2020-10-10 21:00:20 INFO: 2020-10-10 21:00:20 INFO: 2020-10-10 21:00:20 INFO: 2020-10-10 21:00:20 INFO: 2020-10-10 21:00:20 INFO: init new order start 2020-10-10 21:00:20 INFO: fetch buckets [{'timestamp': datetime.datetime(2020, 10, 10, 18, 0, tzinfo=tzutc()), 'symbol': 'ETHUSD', 'open': 373.5, 'high': 375.35, 'low': 372.75, 'close': 373.55, 'trades': 1589, 'volume': 1698352, 'vwap': 373.96, 'lastSize': 7400, 'turnover': 63510016670, 'homeNotional': 19287.686512171524, 'foreignNotional': 7212658.018852122}, {'timestamp': datetime.datetime(2020, 10, 10, 17, 0, tzinfo=tzutc()), 'symbol': 'ETHUSD', 'open': 372.95, 'high': 374.2, 'low': 372.1, 'close': 373.5, 'trades': 2165, 'volume': 1316928, 'vwap': 373.35, 'lastSize': 220, 'turnover': 49167332410, 'homeNotional': 14941.25614103204, 'foreignNotional': 5578301.120349232}, {'timestamp': datetime.datetime(2020, 10, 10, 16, 0, tzinfo=tzutc()), 'symbol': 'ETHUSD', 'open': 374.2, 'high': 376.3, 'low': 372.4, 'close': 372.95, 'trades': 2897, 'volume': 2226681, 'vwap': 374.34, 'lastSize': 238, 'turnover': 83351680970, 'homeNotional': 25313.063747449323, 'foreignNotional': 9475515.3905931}] 2020-10-10 21:00:20 INFO: prepare candles [CandleItem(low=372.75, high=375.35, open=373.5, close=373.55, color='GREEN'), CandleItem(low=372.1, high=374.2, open=372.95, close=373.5, color='GREEN'), CandleItem(low=372.4, high=376.3, open=374.2, close=372.95, color='RED')] 2020-10-10 21:00:20 INFO: skip by colors first_candle=CandleItem(low=372.4, high=376.3, open=374.2, close=372.95, color='RED') second_candle=CandleItem(low=372.1, high=374.2, open=372.95, close=373.5, color='GREEN') last_candle=CandleItem(low=372.75, high=375.35, open=373.5, close=373.55, color='GREEN') 2020-10-10 21:00:20 INFO: check need new order None 2020-10-10 21:00:20 INFO: init new order end 2020-10-10 21:00:20 INFO: 2020-10-10 21:00:20 INFO: 2020-10-10 21:00:20 INFO: 2020-10-10 21:00:20 INFO: 2020-10-10 21:02:00 INFO: 2020-10-10 21:02:00 INFO: 2020-10-10 21:02:00 INFO: 2020-10-10 21:02:00 INFO: 2020-10-10 21:02:00 INFO: clearing start 2020-10-10 21:02:01 INFO: fetch_orders_for_clearing test order {'orderID': '6f76c0d7-c14d-4225-8724-fc5af958530d', 'clOrdID': '6f9d548ef9a34b9ab381d3e514de3371', 'clOrdLinkID': '', 'account': 605536, 'symbol': 'ETHUSD', 'side': 'Buy', 'simpleOrderQty': None, 'orderQty': 905, 'price': None, 'displayQty': None, 'stopPx': 377.75, 'pegOffsetValue': None, 'pegPriceType': '', 'currency': 'USD', 'settlCurrency': 'XBt', 'ordType': 'Stop', 'timeInForce': 'ImmediateOrCancel', 'execInst': 'LastPrice', 'contingencyType': '', 'exDestination': 'XBME', 'ordStatus': 'New', 'triggered': '', 'workingIndicator': False, 'ordRejReason': '', 'simpleLeavesQty': None, 'leavesQty': 905, 'simpleCumQty': None, 'cumQty': 0, 'avgPx': None, 'multiLegReportingType': 'SingleSecurity', 'text': 'Stop order by trader.py', 'transactTime': datetime.datetime(2020, 10, 10, 5, 47, 33, 864000, tzinfo=tzutc()), 'timestamp': datetime.datetime(2020, 10, 10, 5, 47, 33, 864000, tzinfo=tzutc())} 2020-10-10 21:02:01 INFO: skip by not found init order into storage 2020-10-10 21:02:01 INFO: fetch_orders_for_clearing test order {'orderID': 'e31d79bb-e85c-421d-8a0c-500f1fe615c6', 'clOrdID': 'c14133cfedbb4667b72e2fa887fe300a', 'clOrdLinkID': '', 'account': 605536, 'symbol': 'ETHUSD', 'side': 'Buy', 'simpleOrderQty': None, 'orderQty': 905, 'price': 363.3, 'displayQty': None, 'stopPx': None, 'pegOffsetValue': None, 'pegPriceType': '', 'currency': 'USD', 'settlCurrency': 'XBt', 'ordType': 'Limit', 'timeInForce': 'GoodTillCancel', 'execInst': '', 'contingencyType': '', 'exDestination': 'XBME', 'ordStatus': 'New', 'triggered': '', 'workingIndicator': True, 'ordRejReason': '', 'simpleLeavesQty': None, 'leavesQty': 905, 'simpleCumQty': None, 'cumQty': 0, 'avgPx': None, 'multiLegReportingType': 'SingleSecurity', 'text': 'Profit order by trader.py', 'transactTime': datetime.datetime(2020, 10, 10, 5, 47, 33, 902000, tzinfo=tzutc()), 'timestamp': datetime.datetime(2020, 10, 10, 5, 47, 33, 902000, tzinfo=tzutc())} 2020-10-10 21:02:01 INFO: skip by not found init order into storage 2020-10-10 21:02:01 INFO: fetch_orders_for_clearing test order {'orderID': 'f87fd665-1347-41aa-b38d-42562f9f3ca0', 'clOrdID': '4570558bae6d4a799086050e20752a2c', 'clOrdLinkID': '', 'account': 605536, 'symbol': 'ETHUSD', 'side': 'Sell', 'simpleOrderQty': None, 'orderQty': 884, 'price': None, 'displayQty': None, 'stopPx': 372.1, 'pegOffsetValue': None, 'pegPriceType': '', 'currency': 'USD', 'settlCurrency': 'XBt', 'ordType': 'Stop', 'timeInForce': 'ImmediateOrCancel', 'execInst': 'LastPrice', 'contingencyType': '', 'exDestination': 'XBME', 'ordStatus': 'New', 'triggered': '', 'workingIndicator': False, 'ordRejReason': '', 'simpleLeavesQty': None, 'leavesQty': 884, 'simpleCumQty': None, 'cumQty': 0, 'avgPx': None, 'multiLegReportingType': 'SingleSecurity', 'text': 'Stop order by trader.py', 'transactTime': datetime.datetime(2020, 10, 10, 17, 6, 46, 600000, tzinfo=tzutc()), 'timestamp': datetime.datetime(2020, 10, 10, 17, 6, 46, 600000, tzinfo=tzutc())} 2020-10-10 21:02:01 INFO: skip by not found init order into storage 2020-10-10 21:02:01 INFO: fetch_orders_for_clearing test order {'orderID': '751f71da-4f5e-489b-92fe-e83c33cc0d4c', 'clOrdID': 'c4c4df0e25dc46a4bf12b395104920c7', 'clOrdLinkID': '', 'account': 605536, 'symbol': 'ETHUSD', 'side': 'Sell', 'simpleOrderQty': None, 'orderQty': 884, 'price': 386.9, 'displayQty': None, 'stopPx': None, 'pegOffsetValue': None, 'pegPriceType': '', 'currency': 'USD', 'settlCurrency': 'XBt', 'ordType': 'Limit', 'timeInForce': 'GoodTillCancel', 'execInst': '', 'contingencyType': '', 'exDestination': 'XBME', 'ordStatus': 'New', 'triggered': '', 'workingIndicator': True, 'ordRejReason': '', 'simpleLeavesQty': None, 'leavesQty': 884, 'simpleCumQty': None, 'cumQty': 0, 'avgPx': None, 'multiLegReportingType': 'SingleSecurity', 'text': 'Profit order by trader.py', 'transactTime': datetime.datetime(2020, 10, 10, 17, 6, 46, 634000, tzinfo=tzutc()), 'timestamp': datetime.datetime(2020, 10, 10, 17, 6, 46, 634000, tzinfo=tzutc())} 2020-10-10 21:02:01 INFO: skip by not found init order into storage 2020-10-10 21:02:01 INFO: clearing end 2020-10-10 21:02:01 INFO: 2020-10-10 21:02:01 INFO: 2020-10-10 21:02:01 INFO: 2020-10-10 21:02:01 INFO: 2020-10-10 22:00:20 INFO: 2020-10-10 22:00:20 INFO: 2020-10-10 22:00:20 INFO: 2020-10-10 22:00:20 INFO: 2020-10-10 22:00:20 INFO: init new order start 2020-10-10 22:00:20 INFO: fetch buckets [{'timestamp': datetime.datetime(2020, 10, 10, 19, 0, tzinfo=tzutc()), 'symbol': 'ETHUSD', 'open': 373.55, 'high': 375.95, 'low': 373.1, 'close': 374.4, 'trades': 1787, 'volume': 1335819, 'vwap': 374.41, 'lastSize': 27, 'turnover': 50014209060, 'homeNotional': 15180.28769314483, 'foreignNotional': 5683634.798082972}, {'timestamp': datetime.datetime(2020, 10, 10, 18, 0, tzinfo=tzutc()), 'symbol': 'ETHUSD', 'open': 373.5, 'high': 375.35, 'low': 372.75, 'close': 373.55, 'trades': 1589, 'volume': 1698352, 'vwap': 373.96, 'lastSize': 7400, 'turnover': 63510016670, 'homeNotional': 19287.686512171524, 'foreignNotional': 7212658.018852122}, {'timestamp': datetime.datetime(2020, 10, 10, 17, 0, tzinfo=tzutc()), 'symbol': 'ETHUSD', 'open': 372.95, 'high': 374.2, 'low': 372.1, 'close': 373.5, 'trades': 2165, 'volume': 1316928, 'vwap': 373.35, 'lastSize': 220, 'turnover': 49167332410, 'homeNotional': 14941.25614103204, 'foreignNotional': 5578301.120349232}] 2020-10-10 22:00:20 INFO: prepare candles [CandleItem(low=373.1, high=375.95, open=373.55, close=374.4, color='GREEN'), CandleItem(low=372.75, high=375.35, open=373.5, close=373.55, color='GREEN'), CandleItem(low=372.1, high=374.2, open=372.95, close=373.5, color='GREEN')] 2020-10-10 22:00:20 INFO: skip by colors first_candle=CandleItem(low=372.1, high=374.2, open=372.95, close=373.5, color='GREEN') second_candle=CandleItem(low=372.75, high=375.35, open=373.5, close=373.55, color='GREEN') last_candle=CandleItem(low=373.1, high=375.95, open=373.55, close=374.4, color='GREEN') 2020-10-10 22:00:20 INFO: check need new order None 2020-10-10 22:00:20 INFO: init new order end 2020-10-10 22:00:20 INFO: 2020-10-10 22:00:20 INFO: 2020-10-10 22:00:20 INFO: 2020-10-10 22:00:20 INFO: 2020-10-10 22:02:00 INFO: 2020-10-10 22:02:00 INFO: 2020-10-10 22:02:00 INFO: 2020-10-10 22:02:00 INFO: 2020-10-10 22:02:00 INFO: clearing start 2020-10-10 22:02:00 INFO: fetch_orders_for_clearing test order {'orderID': '6f76c0d7-c14d-4225-8724-fc5af958530d', 'clOrdID': '6f9d548ef9a34b9ab381d3e514de3371', 'clOrdLinkID': '', 'account': 605536, 'symbol': 'ETHUSD', 'side': 'Buy', 'simpleOrderQty': None, 'orderQty': 905, 'price': None, 'displayQty': None, 'stopPx': 377.75, 'pegOffsetValue': None, 'pegPriceType': '', 'currency': 'USD', 'settlCurrency': 'XBt', 'ordType': 'Stop', 'timeInForce': 'ImmediateOrCancel', 'execInst': 'LastPrice', 'contingencyType': '', 'exDestination': 'XBME', 'ordStatus': 'New', 'triggered': '', 'workingIndicator': False, 'ordRejReason': '', 'simpleLeavesQty': None, 'leavesQty': 905, 'simpleCumQty': None, 'cumQty': 0, 'avgPx': None, 'multiLegReportingType': 'SingleSecurity', 'text': 'Stop order by trader.py', 'transactTime': datetime.datetime(2020, 10, 10, 5, 47, 33, 864000, tzinfo=tzutc()), 'timestamp': datetime.datetime(2020, 10, 10, 5, 47, 33, 864000, tzinfo=tzutc())} 2020-10-10 22:02:00 INFO: skip by not found init order into storage 2020-10-10 22:02:00 INFO: fetch_orders_for_clearing test order {'orderID': 'e31d79bb-e85c-421d-8a0c-500f1fe615c6', 'clOrdID': 'c14133cfedbb4667b72e2fa887fe300a', 'clOrdLinkID': '', 'account': 605536, 'symbol': 'ETHUSD', 'side': 'Buy', 'simpleOrderQty': None, 'orderQty': 905, 'price': 363.3, 'displayQty': None, 'stopPx': None, 'pegOffsetValue': None, 'pegPriceType': '', 'currency': 'USD', 'settlCurrency': 'XBt', 'ordType': 'Limit', 'timeInForce': 'GoodTillCancel', 'execInst': '', 'contingencyType': '', 'exDestination': 'XBME', 'ordStatus': 'New', 'triggered': '', 'workingIndicator': True, 'ordRejReason': '', 'simpleLeavesQty': None, 'leavesQty': 905, 'simpleCumQty': None, 'cumQty': 0, 'avgPx': None, 'multiLegReportingType': 'SingleSecurity', 'text': 'Profit order by trader.py', 'transactTime': datetime.datetime(2020, 10, 10, 5, 47, 33, 902000, tzinfo=tzutc()), 'timestamp': datetime.datetime(2020, 10, 10, 5, 47, 33, 902000, tzinfo=tzutc())} 2020-10-10 22:02:00 INFO: skip by not found init order into storage 2020-10-10 22:02:00 INFO: fetch_orders_for_clearing test order {'orderID': 'f87fd665-1347-41aa-b38d-42562f9f3ca0', 'clOrdID': '4570558bae6d4a799086050e20752a2c', 'clOrdLinkID': '', 'account': 605536, 'symbol': 'ETHUSD', 'side': 'Sell', 'simpleOrderQty': None, 'orderQty': 884, 'price': None, 'displayQty': None, 'stopPx': 372.1, 'pegOffsetValue': None, 'pegPriceType': '', 'currency': 'USD', 'settlCurrency': 'XBt', 'ordType': 'Stop', 'timeInForce': 'ImmediateOrCancel', 'execInst': 'LastPrice', 'contingencyType': '', 'exDestination': 'XBME', 'ordStatus': 'New', 'triggered': '', 'workingIndicator': False, 'ordRejReason': '', 'simpleLeavesQty': None, 'leavesQty': 884, 'simpleCumQty': None, 'cumQty': 0, 'avgPx': None, 'multiLegReportingType': 'SingleSecurity', 'text': 'Stop order by trader.py', 'transactTime': datetime.datetime(2020, 10, 10, 17, 6, 46, 600000, tzinfo=tzutc()), 'timestamp': datetime.datetime(2020, 10, 10, 17, 6, 46, 600000, tzinfo=tzutc())} 2020-10-10 22:02:00 INFO: skip by not found init order into storage 2020-10-10 22:02:00 INFO: fetch_orders_for_clearing test order {'orderID': '751f71da-4f5e-489b-92fe-e83c33cc0d4c', 'clOrdID': 'c4c4df0e25dc46a4bf12b395104920c7', 'clOrdLinkID': '', 'account': 605536, 'symbol': 'ETHUSD', 'side': 'Sell', 'simpleOrderQty': None, 'orderQty': 884, 'price': 386.9, 'displayQty': None, 'stopPx': None, 'pegOffsetValue': None, 'pegPriceType': '', 'currency': 'USD', 'settlCurrency': 'XBt', 'ordType': 'Limit', 'timeInForce': 'GoodTillCancel', 'execInst': '', 'contingencyType': '', 'exDestination': 'XBME', 'ordStatus': 'New', 'triggered': '', 'workingIndicator': True, 'ordRejReason': '', 'simpleLeavesQty': None, 'leavesQty': 884, 'simpleCumQty': None, 'cumQty': 0, 'avgPx': None, 'multiLegReportingType': 'SingleSecurity', 'text': 'Profit order by trader.py', 'transactTime': datetime.datetime(2020, 10, 10, 17, 6, 46, 634000, tzinfo=tzutc()), 'timestamp': datetime.datetime(2020, 10, 10, 17, 6, 46, 634000, tzinfo=tzutc())} 2020-10-10 22:02:00 INFO: skip by not found init order into storage 2020-10-10 22:02:00 INFO: clearing end 2020-10-10 22:02:00 INFO: 2020-10-10 22:02:00 INFO: 2020-10-10 22:02:00 INFO: 2020-10-10 22:02:00 INFO: 2020-10-10 23:00:20 INFO: 2020-10-10 23:00:20 INFO: 2020-10-10 23:00:20 INFO: 2020-10-10 23:00:20 INFO: 2020-10-10 23:00:20 INFO: init new order start 2020-10-10 23:00:21 INFO: fetch buckets [{'timestamp': datetime.datetime(2020, 10, 10, 20, 0, tzinfo=tzutc()), 'symbol': 'ETHUSD', 'open': 374.4, 'high': 376.25, 'low': 373.85, 'close': 374.6, 'trades': 1649, 'volume': 1575110, 'vwap': 375.3, 'lastSize': 750, 'turnover': 59113358310, 'homeNotional': 17912.41628900555, 'foreignNotional': 6722477.112744182}, {'timestamp': datetime.datetime(2020, 10, 10, 19, 0, tzinfo=tzutc()), 'symbol': 'ETHUSD', 'open': 373.55, 'high': 375.95, 'low': 373.1, 'close': 374.4, 'trades': 1787, 'volume': 1335819, 'vwap': 374.41, 'lastSize': 27, 'turnover': 50014209060, 'homeNotional': 15180.28769314483, 'foreignNotional': 5683634.798082972}, {'timestamp': datetime.datetime(2020, 10, 10, 18, 0, tzinfo=tzutc()), 'symbol': 'ETHUSD', 'open': 373.5, 'high': 375.35, 'low': 372.75, 'close': 373.55, 'trades': 1589, 'volume': 1698352, 'vwap': 373.96, 'lastSize': 7400, 'turnover': 63510016670, 'homeNotional': 19287.686512171524, 'foreignNotional': 7212658.018852122}] 2020-10-10 23:00:21 INFO: prepare candles [CandleItem(low=373.85, high=376.25, open=374.4, close=374.6, color='GREEN'), CandleItem(low=373.1, high=375.95, open=373.55, close=374.4, color='GREEN'), CandleItem(low=372.75, high=375.35, open=373.5, close=373.55, color='GREEN')] 2020-10-10 23:00:21 INFO: skip by colors first_candle=CandleItem(low=372.75, high=375.35, open=373.5, close=373.55, color='GREEN') second_candle=CandleItem(low=373.1, high=375.95, open=373.55, close=374.4, color='GREEN') last_candle=CandleItem(low=373.85, high=376.25, open=374.4, close=374.6, color='GREEN') 2020-10-10 23:00:21 INFO: check need new order None 2020-10-10 23:00:21 INFO: init new order end 2020-10-10 23:00:21 INFO: 2020-10-10 23:00:21 INFO: 2020-10-10 23:00:21 INFO: 2020-10-10 23:00:21 INFO: 2020-10-10 23:02:00 INFO: 2020-10-10 23:02:00 INFO: 2020-10-10 23:02:00 INFO: 2020-10-10 23:02:00 INFO: 2020-10-10 23:02:00 INFO: clearing start 2020-10-10 23:02:00 INFO: fetch_orders_for_clearing test order {'orderID': '6f76c0d7-c14d-4225-8724-fc5af958530d', 'clOrdID': '6f9d548ef9a34b9ab381d3e514de3371', 'clOrdLinkID': '', 'account': 605536, 'symbol': 'ETHUSD', 'side': 'Buy', 'simpleOrderQty': None, 'orderQty': 905, 'price': None, 'displayQty': None, 'stopPx': 377.75, 'pegOffsetValue': None, 'pegPriceType': '', 'currency': 'USD', 'settlCurrency': 'XBt', 'ordType': 'Stop', 'timeInForce': 'ImmediateOrCancel', 'execInst': 'LastPrice', 'contingencyType': '', 'exDestination': 'XBME', 'ordStatus': 'New', 'triggered': '', 'workingIndicator': False, 'ordRejReason': '', 'simpleLeavesQty': None, 'leavesQty': 905, 'simpleCumQty': None, 'cumQty': 0, 'avgPx': None, 'multiLegReportingType': 'SingleSecurity', 'text': 'Stop order by trader.py', 'transactTime': datetime.datetime(2020, 10, 10, 5, 47, 33, 864000, tzinfo=tzutc()), 'timestamp': datetime.datetime(2020, 10, 10, 5, 47, 33, 864000, tzinfo=tzutc())} 2020-10-10 23:02:00 INFO: skip by not found init order into storage 2020-10-10 23:02:00 INFO: fetch_orders_for_clearing test order {'orderID': 'e31d79bb-e85c-421d-8a0c-500f1fe615c6', 'clOrdID': 'c14133cfedbb4667b72e2fa887fe300a', 'clOrdLinkID': '', 'account': 605536, 'symbol': 'ETHUSD', 'side': 'Buy', 'simpleOrderQty': None, 'orderQty': 905, 'price': 363.3, 'displayQty': None, 'stopPx': None, 'pegOffsetValue': None, 'pegPriceType': '', 'currency': 'USD', 'settlCurrency': 'XBt', 'ordType': 'Limit', 'timeInForce': 'GoodTillCancel', 'execInst': '', 'contingencyType': '', 'exDestination': 'XBME', 'ordStatus': 'New', 'triggered': '', 'workingIndicator': True, 'ordRejReason': '', 'simpleLeavesQty': None, 'leavesQty': 905, 'simpleCumQty': None, 'cumQty': 0, 'avgPx': None, 'multiLegReportingType': 'SingleSecurity', 'text': 'Profit order by trader.py', 'transactTime': datetime.datetime(2020, 10, 10, 5, 47, 33, 902000, tzinfo=tzutc()), 'timestamp': datetime.datetime(2020, 10, 10, 5, 47, 33, 902000, tzinfo=tzutc())} 2020-10-10 23:02:00 INFO: skip by not found init order into storage 2020-10-10 23:02:00 INFO: fetch_orders_for_clearing test order {'orderID': 'f87fd665-1347-41aa-b38d-42562f9f3ca0', 'clOrdID': '4570558bae6d4a799086050e20752a2c', 'clOrdLinkID': '', 'account': 605536, 'symbol': 'ETHUSD', 'side': 'Sell', 'simpleOrderQty': None, 'orderQty': 884, 'price': None, 'displayQty': None, 'stopPx': 372.1, 'pegOffsetValue': None, 'pegPriceType': '', 'currency': 'USD', 'settlCurrency': 'XBt', 'ordType': 'Stop', 'timeInForce': 'ImmediateOrCancel', 'execInst': 'LastPrice', 'contingencyType': '', 'exDestination': 'XBME', 'ordStatus': 'New', 'triggered': '', 'workingIndicator': False, 'ordRejReason': '', 'simpleLeavesQty': None, 'leavesQty': 884, 'simpleCumQty': None, 'cumQty': 0, 'avgPx': None, 'multiLegReportingType': 'SingleSecurity', 'text': 'Stop order by trader.py', 'transactTime': datetime.datetime(2020, 10, 10, 17, 6, 46, 600000, tzinfo=tzutc()), 'timestamp': datetime.datetime(2020, 10, 10, 17, 6, 46, 600000, tzinfo=tzutc())} 2020-10-10 23:02:00 INFO: skip by not found init order into storage 2020-10-10 23:02:00 INFO: fetch_orders_for_clearing test order {'orderID': '751f71da-4f5e-489b-92fe-e83c33cc0d4c', 'clOrdID': 'c4c4df0e25dc46a4bf12b395104920c7', 'clOrdLinkID': '', 'account': 605536, 'symbol': 'ETHUSD', 'side': 'Sell', 'simpleOrderQty': None, 'orderQty': 884, 'price': 386.9, 'displayQty': None, 'stopPx': None, 'pegOffsetValue': None, 'pegPriceType': '', 'currency': 'USD', 'settlCurrency': 'XBt', 'ordType': 'Limit', 'timeInForce': 'GoodTillCancel', 'execInst': '', 'contingencyType': '', 'exDestination': 'XBME', 'ordStatus': 'New', 'triggered': '', 'workingIndicator': True, 'ordRejReason': '', 'simpleLeavesQty': None, 'leavesQty': 884, 'simpleCumQty': None, 'cumQty': 0, 'avgPx': None, 'multiLegReportingType': 'SingleSecurity', 'text': 'Profit order by trader.py', 'transactTime': datetime.datetime(2020, 10, 10, 17, 6, 46, 634000, tzinfo=tzutc()), 'timestamp': datetime.datetime(2020, 10, 10, 17, 6, 46, 634000, tzinfo=tzutc())} 2020-10-10 23:02:00 INFO: skip by not found init order into storage 2020-10-10 23:02:00 INFO: clearing end 2020-10-10 23:02:00 INFO: 2020-10-10 23:02:00 INFO: 2020-10-10 23:02:00 INFO: 2020-10-10 23:02:00 INFO: 2020-10-11 00:00:20 INFO: 2020-10-11 00:00:20 INFO: 2020-10-11 00:00:20 INFO: 2020-10-11 00:00:20 INFO: 2020-10-11 00:00:20 INFO: init new order start 2020-10-11 00:00:20 INFO: fetch buckets [{'timestamp': datetime.datetime(2020, 10, 10, 21, 0, tzinfo=tzutc()), 'symbol': 'ETHUSD', 'open': 374.6, 'high': 375.55, 'low': 374.25, 'close': 375.0, 'trades': 936, 'volume': 721405, 'vwap': 374.75, 'lastSize': 207, 'turnover': 27034286930, 'homeNotional': 8196.491330473384, 'foreignNotional': 3071595.168346099}, {'timestamp': datetime.datetime(2020, 10, 10, 20, 0, tzinfo=tzutc()), 'symbol': 'ETHUSD', 'open': 374.4, 'high': 376.25, 'low': 373.85, 'close': 374.6, 'trades': 1649, 'volume': 1575110, 'vwap': 375.3, 'lastSize': 750, 'turnover': 59113358310, 'homeNotional': 17912.41628900555, 'foreignNotional': 6722477.112744182}, {'timestamp': datetime.datetime(2020, 10, 10, 19, 0, tzinfo=tzutc()), 'symbol': 'ETHUSD', 'open': 373.55, 'high': 375.95, 'low': 373.1, 'close': 374.4, 'trades': 1787, 'volume': 1335819, 'vwap': 374.41, 'lastSize': 27, 'turnover': 50014209060, 'homeNotional': 15180.28769314483, 'foreignNotional': 5683634.798082972}] 2020-10-11 00:00:20 INFO: prepare candles [CandleItem(low=374.25, high=375.55, open=374.6, close=375.0, color='GREEN'), CandleItem(low=373.85, high=376.25, open=374.4, close=374.6, color='GREEN'), CandleItem(low=373.1, high=375.95, open=373.55, close=374.4, color='GREEN')] 2020-10-11 00:00:20 INFO: skip by colors first_candle=CandleItem(low=373.1, high=375.95, open=373.55, close=374.4, color='GREEN') second_candle=CandleItem(low=373.85, high=376.25, open=374.4, close=374.6, color='GREEN') last_candle=CandleItem(low=374.25, high=375.55, open=374.6, close=375.0, color='GREEN') 2020-10-11 00:00:20 INFO: check need new order None 2020-10-11 00:00:20 INFO: init new order end 2020-10-11 00:00:20 INFO: 2020-10-11 00:00:20 INFO: 2020-10-11 00:00:20 INFO: 2020-10-11 00:00:20 INFO: 2020-10-11 00:02:00 INFO: 2020-10-11 00:02:00 INFO: 2020-10-11 00:02:00 INFO: 2020-10-11 00:02:00 INFO: 2020-10-11 00:02:00 INFO: clearing start 2020-10-11 00:02:00 INFO: fetch_orders_for_clearing test order {'orderID': '6f76c0d7-c14d-4225-8724-fc5af958530d', 'clOrdID': '6f9d548ef9a34b9ab381d3e514de3371', 'clOrdLinkID': '', 'account': 605536, 'symbol': 'ETHUSD', 'side': 'Buy', 'simpleOrderQty': None, 'orderQty': 905, 'price': None, 'displayQty': None, 'stopPx': 377.75, 'pegOffsetValue': None, 'pegPriceType': '', 'currency': 'USD', 'settlCurrency': 'XBt', 'ordType': 'Stop', 'timeInForce': 'ImmediateOrCancel', 'execInst': 'LastPrice', 'contingencyType': '', 'exDestination': 'XBME', 'ordStatus': 'New', 'triggered': '', 'workingIndicator': False, 'ordRejReason': '', 'simpleLeavesQty': None, 'leavesQty': 905, 'simpleCumQty': None, 'cumQty': 0, 'avgPx': None, 'multiLegReportingType': 'SingleSecurity', 'text': 'Stop order by trader.py', 'transactTime': datetime.datetime(2020, 10, 10, 5, 47, 33, 864000, tzinfo=tzutc()), 'timestamp': datetime.datetime(2020, 10, 10, 5, 47, 33, 864000, tzinfo=tzutc())} 2020-10-11 00:02:00 INFO: skip by not found init order into storage 2020-10-11 00:02:00 INFO: fetch_orders_for_clearing test order {'orderID': 'e31d79bb-e85c-421d-8a0c-500f1fe615c6', 'clOrdID': 'c14133cfedbb4667b72e2fa887fe300a', 'clOrdLinkID': '', 'account': 605536, 'symbol': 'ETHUSD', 'side': 'Buy', 'simpleOrderQty': None, 'orderQty': 905, 'price': 363.3, 'displayQty': None, 'stopPx': None, 'pegOffsetValue': None, 'pegPriceType': '', 'currency': 'USD', 'settlCurrency': 'XBt', 'ordType': 'Limit', 'timeInForce': 'GoodTillCancel', 'execInst': '', 'contingencyType': '', 'exDestination': 'XBME', 'ordStatus': 'New', 'triggered': '', 'workingIndicator': True, 'ordRejReason': '', 'simpleLeavesQty': None, 'leavesQty': 905, 'simpleCumQty': None, 'cumQty': 0, 'avgPx': None, 'multiLegReportingType': 'SingleSecurity', 'text': 'Profit order by trader.py', 'transactTime': datetime.datetime(2020, 10, 10, 5, 47, 33, 902000, tzinfo=tzutc()), 'timestamp': datetime.datetime(2020, 10, 10, 5, 47, 33, 902000, tzinfo=tzutc())} 2020-10-11 00:02:00 INFO: skip by not found init order into storage 2020-10-11 00:02:00 INFO: fetch_orders_for_clearing test order {'orderID': 'f87fd665-1347-41aa-b38d-42562f9f3ca0', 'clOrdID': '4570558bae6d4a799086050e20752a2c', 'clOrdLinkID': '', 'account': 605536, 'symbol': 'ETHUSD', 'side': 'Sell', 'simpleOrderQty': None, 'orderQty': 884, 'price': None, 'displayQty': None, 'stopPx': 372.1, 'pegOffsetValue': None, 'pegPriceType': '', 'currency': 'USD', 'settlCurrency': 'XBt', 'ordType': 'Stop', 'timeInForce': 'ImmediateOrCancel', 'execInst': 'LastPrice', 'contingencyType': '', 'exDestination': 'XBME', 'ordStatus': 'New', 'triggered': '', 'workingIndicator': False, 'ordRejReason': '', 'simpleLeavesQty': None, 'leavesQty': 884, 'simpleCumQty': None, 'cumQty': 0, 'avgPx': None, 'multiLegReportingType': 'SingleSecurity', 'text': 'Stop order by trader.py', 'transactTime': datetime.datetime(2020, 10, 10, 17, 6, 46, 600000, tzinfo=tzutc()), 'timestamp': datetime.datetime(2020, 10, 10, 17, 6, 46, 600000, tzinfo=tzutc())} 2020-10-11 00:02:00 INFO: skip by not found init order into storage 2020-10-11 00:02:00 INFO: fetch_orders_for_clearing test order {'orderID': '751f71da-4f5e-489b-92fe-e83c33cc0d4c', 'clOrdID': 'c4c4df0e25dc46a4bf12b395104920c7', 'clOrdLinkID': '', 'account': 605536, 'symbol': 'ETHUSD', 'side': 'Sell', 'simpleOrderQty': None, 'orderQty': 884, 'price': 386.9, 'displayQty': None, 'stopPx': None, 'pegOffsetValue': None, 'pegPriceType': '', 'currency': 'USD', 'settlCurrency': 'XBt', 'ordType': 'Limit', 'timeInForce': 'GoodTillCancel', 'execInst': '', 'contingencyType': '', 'exDestination': 'XBME', 'ordStatus': 'New', 'triggered': '', 'workingIndicator': True, 'ordRejReason': '', 'simpleLeavesQty': None, 'leavesQty': 884, 'simpleCumQty': None, 'cumQty': 0, 'avgPx': None, 'multiLegReportingType': 'SingleSecurity', 'text': 'Profit order by trader.py', 'transactTime': datetime.datetime(2020, 10, 10, 17, 6, 46, 634000, tzinfo=tzutc()), 'timestamp': datetime.datetime(2020, 10, 10, 17, 6, 46, 634000, tzinfo=tzutc())} 2020-10-11 00:02:00 INFO: skip by not found init order into storage 2020-10-11 00:02:00 INFO: clearing end 2020-10-11 00:02:00 INFO: 2020-10-11 00:02:00 INFO: 2020-10-11 00:02:00 INFO: 2020-10-11 00:02:00 INFO: 2020-10-11 00:04:25 INFO: process event {'orderID': 'f87fd665-1347-41aa-b38d-42562f9f3ca0', 'price': 372.05, 'ordStatus': 'Filled', 'triggered': 'StopOrderTriggered', 'leavesQty': 0, 'cumQty': 884, 'avgPx': 372.05, 'text': 'Triggered: Order stop price reached\nStop order by trader.py', 'transactTime': '2020-10-10T21:04:25.960Z', 'timestamp': '2020-10-10T21:04:25.960Z', 'clOrdID': '4570558bae6d4a799086050e20752a2c', 'account': 605536, 'symbol': 'ETHUSD'} 2020-10-11 00:04:25 INFO: add new event={'uid': '4570558bae6d4a799086050e20752a2c', 'status': 'Filled'} 2020-10-11 00:04:26 INFO: 2020-10-11 00:04:26 INFO: 2020-10-11 00:04:26 INFO: 2020-10-11 00:04:26 INFO: 2020-10-11 00:04:26 INFO: process event start 2020-10-11 00:04:26 INFO: fetch new order event 4570558bae6d4a799086050e20752a2c 2020-10-11 00:04:26 INFO: fetch orders by event init=None profit_pair=c4c4df0e25dc46a4bf12b395104920c7 2020-10-11 00:04:26 INFO: process profit order filled 2020-10-11 00:04:26 INFO: cancel order=c4c4df0e25dc46a4bf12b395104920c7 [{'orderID': '751f71da-4f5e-489b-92fe-e83c33cc0d4c', 'clOrdID': 'c4c4df0e25dc46a4bf12b395104920c7', 'clOrdLinkID': '', 'account': 605536, 'symbol': 'ETHUSD', 'side': 'Sell', 'simpleOrderQty': None, 'orderQty': 884, 'price': 386.9, 'displayQty': None, 'stopPx': None, 'pegOffsetValue': None, 'pegPriceType': '', 'currency': 'USD', 'settlCurrency': 'XBt', 'ordType': 'Limit', 'timeInForce': 'GoodTillCancel', 'execInst': '', 'contingencyType': '', 'exDestination': 'XBME', 'ordStatus': 'Canceled', 'triggered': '', 'workingIndicator': False, 'ordRejReason': '', 'simpleLeavesQty': None, 'leavesQty': 0, 'simpleCumQty': None, 'cumQty': 0, 'avgPx': None, 'multiLegReportingType': 'SingleSecurity', 'text': 'Canceled: Cancel order by trader.py\nProfit order by trader.py', 'transactTime': datetime.datetime(2020, 10, 10, 17, 6, 46, 634000, tzinfo=tzutc()), 'timestamp': datetime.datetime(2020, 10, 10, 21, 4, 26, 602000, tzinfo=tzutc())}] 2020-10-11 00:04:26 INFO: process event {'orderID': '751f71da-4f5e-489b-92fe-e83c33cc0d4c', 'ordStatus': 'Canceled', 'workingIndicator': False, 'leavesQty': 0, 'text': 'Canceled: Cancel order by trader.py\nProfit order by trader.py', 'timestamp': '2020-10-10T21:04:26.602Z', 'clOrdID': 'c4c4df0e25dc46a4bf12b395104920c7', 'account': 605536, 'symbol': 'ETHUSD'} 2020-10-11 00:04:26 INFO: skip event c4c4df0e25dc46a4bf12b395104920c7 Canceled 2020-10-11 00:04:26 INFO: end process event_processing_result='proceed profit order' 2020-10-11 00:04:26 INFO: 2020-10-11 00:04:26 INFO: 2020-10-11 00:04:26 INFO: 2020-10-11 00:04:26 INFO: 2020-10-11 01:00:20 INFO: 2020-10-11 01:00:20 INFO: 2020-10-11 01:00:20 INFO: 2020-10-11 01:00:20 INFO: 2020-10-11 01:00:20 INFO: init new order start 2020-10-11 01:00:20 INFO: fetch buckets [{'timestamp': datetime.datetime(2020, 10, 10, 22, 0, tzinfo=tzutc()), 'symbol': 'ETHUSD', 'open': 375.0, 'high': 376.3, 'low': 370.8, 'close': 375.95, 'trades': 2793, 'volume': 2971999, 'vwap': 373.95, 'lastSize': 4000, 'turnover': 111136572460, 'homeNotional': 33772.13928326464, 'foreignNotional': 12628996.618340122}, {'timestamp': datetime.datetime(2020, 10, 10, 21, 0, tzinfo=tzutc()), 'symbol': 'ETHUSD', 'open': 374.6, 'high': 375.55, 'low': 374.25, 'close': 375.0, 'trades': 936, 'volume': 721405, 'vwap': 374.75, 'lastSize': 207, 'turnover': 27034286930, 'homeNotional': 8196.491330473384, 'foreignNotional': 3071595.168346099}, {'timestamp': datetime.datetime(2020, 10, 10, 20, 0, tzinfo=tzutc()), 'symbol': 'ETHUSD', 'open': 374.4, 'high': 376.25, 'low': 373.85, 'close': 374.6, 'trades': 1649, 'volume': 1575110, 'vwap': 375.3, 'lastSize': 750, 'turnover': 59113358310, 'homeNotional': 17912.41628900555, 'foreignNotional': 6722477.112744182}] 2020-10-11 01:00:20 INFO: prepare candles [CandleItem(low=370.8, high=376.3, open=375.0, close=375.95, color='GREEN'), CandleItem(low=374.25, high=375.55, open=374.6, close=375.0, color='GREEN'), CandleItem(low=373.85, high=376.25, open=374.4, close=374.6, color='GREEN')] 2020-10-11 01:00:20 INFO: skip by colors first_candle=CandleItem(low=373.85, high=376.25, open=374.4, close=374.6, color='GREEN') second_candle=CandleItem(low=374.25, high=375.55, open=374.6, close=375.0, color='GREEN') last_candle=CandleItem(low=370.8, high=376.3, open=375.0, close=375.95, color='GREEN') 2020-10-11 01:00:20 INFO: check need new order None 2020-10-11 01:00:20 INFO: init new order end 2020-10-11 01:00:20 INFO: 2020-10-11 01:00:20 INFO: 2020-10-11 01:00:20 INFO: 2020-10-11 01:00:20 INFO: 2020-10-11 01:02:00 INFO: 2020-10-11 01:02:00 INFO: 2020-10-11 01:02:00 INFO: 2020-10-11 01:02:00 INFO: 2020-10-11 01:02:00 INFO: clearing start 2020-10-11 01:02:00 INFO: fetch_orders_for_clearing test order {'orderID': '6f76c0d7-c14d-4225-8724-fc5af958530d', 'clOrdID': '6f9d548ef9a34b9ab381d3e514de3371', 'clOrdLinkID': '', 'account': 605536, 'symbol': 'ETHUSD', 'side': 'Buy', 'simpleOrderQty': None, 'orderQty': 905, 'price': None, 'displayQty': None, 'stopPx': 377.75, 'pegOffsetValue': None, 'pegPriceType': '', 'currency': 'USD', 'settlCurrency': 'XBt', 'ordType': 'Stop', 'timeInForce': 'ImmediateOrCancel', 'execInst': 'LastPrice', 'contingencyType': '', 'exDestination': 'XBME', 'ordStatus': 'New', 'triggered': '', 'workingIndicator': False, 'ordRejReason': '', 'simpleLeavesQty': None, 'leavesQty': 905, 'simpleCumQty': None, 'cumQty': 0, 'avgPx': None, 'multiLegReportingType': 'SingleSecurity', 'text': 'Stop order by trader.py', 'transactTime': datetime.datetime(2020, 10, 10, 5, 47, 33, 864000, tzinfo=tzutc()), 'timestamp': datetime.datetime(2020, 10, 10, 5, 47, 33, 864000, tzinfo=tzutc())} 2020-10-11 01:02:00 INFO: skip by not found init order into storage 2020-10-11 01:02:00 INFO: fetch_orders_for_clearing test order {'orderID': 'e31d79bb-e85c-421d-8a0c-500f1fe615c6', 'clOrdID': 'c14133cfedbb4667b72e2fa887fe300a', 'clOrdLinkID': '', 'account': 605536, 'symbol': 'ETHUSD', 'side': 'Buy', 'simpleOrderQty': None, 'orderQty': 905, 'price': 363.3, 'displayQty': None, 'stopPx': None, 'pegOffsetValue': None, 'pegPriceType': '', 'currency': 'USD', 'settlCurrency': 'XBt', 'ordType': 'Limit', 'timeInForce': 'GoodTillCancel', 'execInst': '', 'contingencyType': '', 'exDestination': 'XBME', 'ordStatus': 'New', 'triggered': '', 'workingIndicator': True, 'ordRejReason': '', 'simpleLeavesQty': None, 'leavesQty': 905, 'simpleCumQty': None, 'cumQty': 0, 'avgPx': None, 'multiLegReportingType': 'SingleSecurity', 'text': 'Profit order by trader.py', 'transactTime': datetime.datetime(2020, 10, 10, 5, 47, 33, 902000, tzinfo=tzutc()), 'timestamp': datetime.datetime(2020, 10, 10, 5, 47, 33, 902000, tzinfo=tzutc())} 2020-10-11 01:02:00 INFO: skip by not found init order into storage 2020-10-11 01:02:00 INFO: clearing end 2020-10-11 01:02:00 INFO: 2020-10-11 01:02:00 INFO: 2020-10-11 01:02:00 INFO: 2020-10-11 01:02:00 INFO: 2020-10-11 02:00:20 INFO: 2020-10-11 02:00:20 INFO: 2020-10-11 02:00:20 INFO: 2020-10-11 02:00:20 INFO: 2020-10-11 02:00:20 INFO: init new order start 2020-10-11 02:00:20 INFO: fetch buckets [{'timestamp': datetime.datetime(2020, 10, 10, 23, 0, tzinfo=tzutc()), 'symbol': 'ETHUSD', 'open': 375.95, 'high': 375.95, 'low': 373.85, 'close': 374.7, 'trades': 1766, 'volume': 1414153, 'vwap': 374.88, 'lastSize': 27, 'turnover': 53013689515, 'homeNotional': 16059.377095272313, 'foreignNotional': 6020334.214185534}, {'timestamp': datetime.datetime(2020, 10, 10, 22, 0, tzinfo=tzutc()), 'symbol': 'ETHUSD', 'open': 375.0, 'high': 376.3, 'low': 370.8, 'close': 375.95, 'trades': 2793, 'volume': 2971999, 'vwap': 373.95, 'lastSize': 4000, 'turnover': 111136572460, 'homeNotional': 33772.13928326464, 'foreignNotional': 12628996.618340122}, {'timestamp': datetime.datetime(2020, 10, 10, 21, 0, tzinfo=tzutc()), 'symbol': 'ETHUSD', 'open': 374.6, 'high': 375.55, 'low': 374.25, 'close': 375.0, 'trades': 936, 'volume': 721405, 'vwap': 374.75, 'lastSize': 207, 'turnover': 27034286930, 'homeNotional': 8196.491330473384, 'foreignNotional': 3071595.168346099}] 2020-10-11 02:00:20 INFO: prepare candles [CandleItem(low=373.85, high=375.95, open=375.95, close=374.7, color='RED'), CandleItem(low=370.8, high=376.3, open=375.0, close=375.95, color='GREEN'), CandleItem(low=374.25, high=375.55, open=374.6, close=375.0, color='GREEN')] 2020-10-11 02:00:20 INFO: last_candle=CandleItem(low=373.85, high=375.95, open=375.95, close=374.7, color='RED') 2020-10-11 02:00:20 INFO: apply filters to candles filter_config=InitOrderConfig(take_profit_factor=6.0, clearing_interval=3600, first_candle=CandleFilter(size=None, body=MinMaxFilter(min=0.0, max=100.0)), second_candle=CandleFilter(size=None, body=MinMaxFilter(min=0.0, max=100.0)), last_candle=CandleFilter(size=MinMaxFilter(min=0.4, max=0.59), body=MinMaxFilter(min=0.0, max=100.0))) 2020-10-11 02:00:20 INFO: apply filter CandleFilter(size=MinMaxFilter(min=0.4, max=0.59), body=MinMaxFilter(min=0.0, max=100.0)) to candle=CandleItem(low=373.85, high=375.95, open=375.95, close=374.7, color='RED') 2020-10-11 02:00:20 INFO: apply filter CandleFilter(size=None, body=MinMaxFilter(min=0.0, max=100.0)) to candle=CandleItem(low=370.8, high=376.3, open=375.0, close=375.95, color='GREEN') 2020-10-11 02:00:20 INFO: apply filter CandleFilter(size=None, body=MinMaxFilter(min=0.0, max=100.0)) to candle=CandleItem(low=374.25, high=375.55, open=374.6, close=375.0, color='GREEN') 2020-10-11 02:00:20 INFO: hit candle order=OrderProperties(candle=CandleItem(low=373.85, high=375.95, open=375.95, close=374.7, color='RED'), take_profit_factor=6.0, clearing_interval=3600) 2020-10-11 02:00:20 INFO: check need new order OrderProperties(candle=CandleItem(low=373.85, high=375.95, open=375.95, close=374.7, color='RED'), take_profit_factor=6.0, clearing_interval=3600) 2020-10-11 02:00:20 INFO: place order: start candle=CandleItem(low=373.85, high=375.95, open=375.95, close=374.7, color='RED') ticker='ETHUSD' price_offset=0.1 2020-10-11 02:00:20 INFO: place order: side_factor=1 init_trigger_price=373.8 init_order_price=373.75 stop_price_offset=0.0 candle.size=2.099999999999966 stop_price=375.95 take_price=361.1500000000002 2020-10-11 02:00:20 INFO: place order round: side_factor=1 init_trigger_price=Decimal('373.80000000000001136868377216160297393798828125') init_order_price=Decimal('373.75') stop_price_offset=0.0 candle.size=2.099999999999966 stop_price=Decimal('375.94999999999998863131622783839702606201171875') take_price=Decimal('361.1500000000002046363078989088535308837890625') 2020-10-11 02:00:20 INFO: place order: compute qty=-884 2020-10-11 02:00:20 INFO: place order: save order to db 27fa59835b75489c91cb8dfc5ee60dbf; response=True 2020-10-11 02:00:20 INFO: process event {'orderID': '1fd3496a-d3db-4d5d-a1ee-3e1571ec9fba', 'clOrdID': '27fa59835b75489c91cb8dfc5ee60dbf', 'clOrdLinkID': '', 'account': 605536, 'symbol': 'ETHUSD', 'side': 'Sell', 'simpleOrderQty': None, 'orderQty': 884, 'price': 373.75, 'displayQty': None, 'stopPx': 373.8, 'pegOffsetValue': None, 'pegPriceType': '', 'currency': 'USD', 'settlCurrency': 'XBt', 'ordType': 'StopLimit', 'timeInForce': 'GoodTillCancel', 'execInst': 'LastPrice', 'contingencyType': '', 'exDestination': 'XBME', 'ordStatus': 'New', 'triggered': '', 'workingIndicator': False, 'ordRejReason': '', 'simpleLeavesQty': None, 'leavesQty': 884, 'simpleCumQty': None, 'cumQty': 0, 'avgPx': None, 'multiLegReportingType': 'SingleSecurity', 'text': 'Init order by supervisor.py', 'transactTime': '2020-10-10T23:00:20.262Z', 'timestamp': '2020-10-10T23:00:20.262Z'} 2020-10-11 02:00:20 INFO: skip event 27fa59835b75489c91cb8dfc5ee60dbf New 2020-10-11 02:00:20 INFO: post order to exchange resp={'orderID': '1fd3496a-d3db-4d5d-a1ee-3e1571ec9fba', 'clOrdID': '27fa59835b75489c91cb8dfc5ee60dbf', 'clOrdLinkID': '', 'account': 605536, 'symbol': 'ETHUSD', 'side': 'Sell', 'simpleOrderQty': None, 'orderQty': 884, 'price': 373.75, 'displayQty': None, 'stopPx': 373.8, 'pegOffsetValue': None, 'pegPriceType': '', 'currency': 'USD', 'settlCurrency': 'XBt', 'ordType': 'StopLimit', 'timeInForce': 'GoodTillCancel', 'execInst': 'LastPrice', 'contingencyType': '', 'exDestination': 'XBME', 'ordStatus': 'New', 'triggered': '', 'workingIndicator': False, 'ordRejReason': '', 'simpleLeavesQty': None, 'leavesQty': 884, 'simpleCumQty': None, 'cumQty': 0, 'avgPx': None, 'multiLegReportingType': 'SingleSecurity', 'text': 'Init order by supervisor.py', 'transactTime': datetime.datetime(2020, 10, 10, 23, 0, 20, 262000, tzinfo=tzutc()), 'timestamp': datetime.datetime(2020, 10, 10, 23, 0, 20, 262000, tzinfo=tzutc())} 2020-10-11 02:00:20 INFO: place new init order {'qty': -884, 'init_price': Decimal('373.80000000000001136868377216160297393798828125'), 'stop_price': Decimal('375.94999999999998863131622783839702606201171875'), 'take_price': Decimal('361.1500000000002046363078989088535308837890625'), 'order_uid': '27fa59835b75489c91cb8dfc5ee60dbf', 'response': {'orderID': '1fd3496a-d3db-4d5d-a1ee-3e1571ec9fba', 'clOrdID': '27fa59835b75489c91cb8dfc5ee60dbf', 'clOrdLinkID': '', 'account': 605536, 'symbol': 'ETHUSD', 'side': 'Sell', 'simpleOrderQty': None, 'orderQty': 884, 'price': 373.75, 'displayQty': None, 'stopPx': 373.8, 'pegOffsetValue': None, 'pegPriceType': '', 'currency': 'USD', 'settlCurrency': 'XBt', 'ordType': 'StopLimit', 'timeInForce': 'GoodTillCancel', 'execInst': 'LastPrice', 'contingencyType': '', 'exDestination': 'XBME', 'ordStatus': 'New', 'triggered': '', 'workingIndicator': False, 'ordRejReason': '', 'simpleLeavesQty': None, 'leavesQty': 884, 'simpleCumQty': None, 'cumQty': 0, 'avgPx': None, 'multiLegReportingType': 'SingleSecurity', 'text': 'Init order by supervisor.py', 'transactTime': datetime.datetime(2020, 10, 10, 23, 0, 20, 262000, tzinfo=tzutc()), 'timestamp': datetime.datetime(2020, 10, 10, 23, 0, 20, 262000, tzinfo=tzutc())}} 2020-10-11 02:00:20 INFO: init new order end 2020-10-11 02:00:20 INFO: 2020-10-11 02:00:20 INFO: 2020-10-11 02:00:20 INFO: 2020-10-11 02:00:20 INFO: 2020-10-11 02:02:00 INFO: 2020-10-11 02:02:00 INFO: 2020-10-11 02:02:00 INFO: 2020-10-11 02:02:00 INFO: 2020-10-11 02:02:00 INFO: clearing start 2020-10-11 02:02:00 INFO: fetch_orders_for_clearing test order {'orderID': '6f76c0d7-c14d-4225-8724-fc5af958530d', 'clOrdID': '6f9d548ef9a34b9ab381d3e514de3371', 'clOrdLinkID': '', 'account': 605536, 'symbol': 'ETHUSD', 'side': 'Buy', 'simpleOrderQty': None, 'orderQty': 905, 'price': None, 'displayQty': None, 'stopPx': 377.75, 'pegOffsetValue': None, 'pegPriceType': '', 'currency': 'USD', 'settlCurrency': 'XBt', 'ordType': 'Stop', 'timeInForce': 'ImmediateOrCancel', 'execInst': 'LastPrice', 'contingencyType': '', 'exDestination': 'XBME', 'ordStatus': 'New', 'triggered': '', 'workingIndicator': False, 'ordRejReason': '', 'simpleLeavesQty': None, 'leavesQty': 905, 'simpleCumQty': None, 'cumQty': 0, 'avgPx': None, 'multiLegReportingType': 'SingleSecurity', 'text': 'Stop order by trader.py', 'transactTime': datetime.datetime(2020, 10, 10, 5, 47, 33, 864000, tzinfo=tzutc()), 'timestamp': datetime.datetime(2020, 10, 10, 5, 47, 33, 864000, tzinfo=tzutc())} 2020-10-11 02:02:00 INFO: skip by not found init order into storage 2020-10-11 02:02:00 INFO: fetch_orders_for_clearing test order {'orderID': 'e31d79bb-e85c-421d-8a0c-500f1fe615c6', 'clOrdID': 'c14133cfedbb4667b72e2fa887fe300a', 'clOrdLinkID': '', 'account': 605536, 'symbol': 'ETHUSD', 'side': 'Buy', 'simpleOrderQty': None, 'orderQty': 905, 'price': 363.3, 'displayQty': None, 'stopPx': None, 'pegOffsetValue': None, 'pegPriceType': '', 'currency': 'USD', 'settlCurrency': 'XBt', 'ordType': 'Limit', 'timeInForce': 'GoodTillCancel', 'execInst': '', 'contingencyType': '', 'exDestination': 'XBME', 'ordStatus': 'New', 'triggered': '', 'workingIndicator': True, 'ordRejReason': '', 'simpleLeavesQty': None, 'leavesQty': 905, 'simpleCumQty': None, 'cumQty': 0, 'avgPx': None, 'multiLegReportingType': 'SingleSecurity', 'text': 'Profit order by trader.py', 'transactTime': datetime.datetime(2020, 10, 10, 5, 47, 33, 902000, tzinfo=tzutc()), 'timestamp': datetime.datetime(2020, 10, 10, 5, 47, 33, 902000, tzinfo=tzutc())} 2020-10-11 02:02:00 INFO: skip by not found init order into storage 2020-10-11 02:02:00 INFO: fetch_orders_for_clearing test order {'orderID': '1fd3496a-d3db-4d5d-a1ee-3e1571ec9fba', 'clOrdID': '27fa59835b75489c91cb8dfc5ee60dbf', 'clOrdLinkID': '', 'account': 605536, 'symbol': 'ETHUSD', 'side': 'Sell', 'simpleOrderQty': None, 'orderQty': 884, 'price': 373.75, 'displayQty': None, 'stopPx': 373.8, 'pegOffsetValue': None, 'pegPriceType': '', 'currency': 'USD', 'settlCurrency': 'XBt', 'ordType': 'StopLimit', 'timeInForce': 'GoodTillCancel', 'execInst': 'LastPrice', 'contingencyType': '', 'exDestination': 'XBME', 'ordStatus': 'New', 'triggered': '', 'workingIndicator': False, 'ordRejReason': '', 'simpleLeavesQty': None, 'leavesQty': 884, 'simpleCumQty': None, 'cumQty': 0, 'avgPx': None, 'multiLegReportingType': 'SingleSecurity', 'text': 'Init order by supervisor.py', 'transactTime': datetime.datetime(2020, 10, 10, 23, 0, 20, 262000, tzinfo=tzutc()), 'timestamp': datetime.datetime(2020, 10, 10, 23, 0, 20, 262000, tzinfo=tzutc())} 2020-10-11 02:02:00 INFO: order time=2020-10-10 23:00:20.262000+00:00; delta from now UTC=0:01:40.180300 time_delta.total_seconds()=100.1803; time_diff_offset='3600' 2020-10-11 02:02:00 INFO: skip by time diff 2020-10-10 23:00:20.262000+00:00 2020-10-11 02:02:00 INFO: clearing end 2020-10-11 02:02:00 INFO: 2020-10-11 02:02:00 INFO: 2020-10-11 02:02:00 INFO: 2020-10-11 02:02:00 INFO: 2020-10-11 02:09:58 INFO: process event {'orderID': '1fd3496a-d3db-4d5d-a1ee-3e1571ec9fba', 'triggered': 'StopOrderTriggered', 'workingIndicator': True, 'text': 'Triggered: Order stop price reached\nInit order by supervisor.py', 'transactTime': '2020-10-10T23:09:58.956Z', 'timestamp': '2020-10-10T23:09:58.956Z', 'clOrdID': '27fa59835b75489c91cb8dfc5ee60dbf', 'account': 605536, 'symbol': 'ETHUSD'} 2020-10-11 02:09:58 INFO: skip event 27fa59835b75489c91cb8dfc5ee60dbf 2020-10-11 03:00:20 INFO: 2020-10-11 03:00:20 INFO: 2020-10-11 03:00:20 INFO: 2020-10-11 03:00:20 INFO: 2020-10-11 03:00:20 INFO: init new order start 2020-10-11 03:00:20 INFO: fetch buckets [{'timestamp': datetime.datetime(2020, 10, 11, 0, 0, tzinfo=tzutc()), 'symbol': 'ETHUSD', 'open': 374.7, 'high': 374.65, 'low': 369.2, 'close': 371.05, 'trades': 4235, 'volume': 3004988, 'vwap': 371.39, 'lastSize': 50, 'turnover': 111600988850, 'homeNotional': 33970.75315509126, 'foreignNotional': 12616301.93650259}, {'timestamp': datetime.datetime(2020, 10, 10, 23, 0, tzinfo=tzutc()), 'symbol': 'ETHUSD', 'open': 375.95, 'high': 375.95, 'low': 373.85, 'close': 374.7, 'trades': 1766, 'volume': 1414153, 'vwap': 374.88, 'lastSize': 27, 'turnover': 53013689515, 'homeNotional': 16059.377095272313, 'foreignNotional': 6020334.214185534}, {'timestamp': datetime.datetime(2020, 10, 10, 22, 0, tzinfo=tzutc()), 'symbol': 'ETHUSD', 'open': 375.0, 'high': 376.3, 'low': 370.8, 'close': 375.95, 'trades': 2793, 'volume': 2971999, 'vwap': 373.95, 'lastSize': 4000, 'turnover': 111136572460, 'homeNotional': 33772.13928326464, 'foreignNotional': 12628996.618340122}] 2020-10-11 03:00:20 INFO: prepare candles [CandleItem(low=369.2, high=374.65, open=374.7, close=371.05, color='RED'), CandleItem(low=373.85, high=375.95, open=375.95, close=374.7, color='RED'), CandleItem(low=370.8, high=376.3, open=375.0, close=375.95, color='GREEN')] 2020-10-11 03:00:20 INFO: skip by colors first_candle=CandleItem(low=370.8, high=376.3, open=375.0, close=375.95, color='GREEN') second_candle=CandleItem(low=373.85, high=375.95, open=375.95, close=374.7, color='RED') last_candle=CandleItem(low=369.2, high=374.65, open=374.7, close=371.05, color='RED') 2020-10-11 03:00:20 INFO: check need new order None 2020-10-11 03:00:20 INFO: init new order end 2020-10-11 03:00:20 INFO: 2020-10-11 03:00:20 INFO: 2020-10-11 03:00:20 INFO: 2020-10-11 03:00:20 INFO: 2020-10-11 03:02:00 INFO: 2020-10-11 03:02:00 INFO: 2020-10-11 03:02:00 INFO: 2020-10-11 03:02:00 INFO: 2020-10-11 03:02:00 INFO: clearing start 2020-10-11 03:02:00 INFO: fetch_orders_for_clearing test order {'orderID': '6f76c0d7-c14d-4225-8724-fc5af958530d', 'clOrdID': '6f9d548ef9a34b9ab381d3e514de3371', 'clOrdLinkID': '', 'account': 605536, 'symbol': 'ETHUSD', 'side': 'Buy', 'simpleOrderQty': None, 'orderQty': 905, 'price': None, 'displayQty': None, 'stopPx': 377.75, 'pegOffsetValue': None, 'pegPriceType': '', 'currency': 'USD', 'settlCurrency': 'XBt', 'ordType': 'Stop', 'timeInForce': 'ImmediateOrCancel', 'execInst': 'LastPrice', 'contingencyType': '', 'exDestination': 'XBME', 'ordStatus': 'New', 'triggered': '', 'workingIndicator': False, 'ordRejReason': '', 'simpleLeavesQty': None, 'leavesQty': 905, 'simpleCumQty': None, 'cumQty': 0, 'avgPx': None, 'multiLegReportingType': 'SingleSecurity', 'text': 'Stop order by trader.py', 'transactTime': datetime.datetime(2020, 10, 10, 5, 47, 33, 864000, tzinfo=tzutc()), 'timestamp': datetime.datetime(2020, 10, 10, 5, 47, 33, 864000, tzinfo=tzutc())} 2020-10-11 03:02:00 INFO: skip by not found init order into storage 2020-10-11 03:02:00 INFO: fetch_orders_for_clearing test order {'orderID': 'e31d79bb-e85c-421d-8a0c-500f1fe615c6', 'clOrdID': 'c14133cfedbb4667b72e2fa887fe300a', 'clOrdLinkID': '', 'account': 605536, 'symbol': 'ETHUSD', 'side': 'Buy', 'simpleOrderQty': None, 'orderQty': 905, 'price': 363.3, 'displayQty': None, 'stopPx': None, 'pegOffsetValue': None, 'pegPriceType': '', 'currency': 'USD', 'settlCurrency': 'XBt', 'ordType': 'Limit', 'timeInForce': 'GoodTillCancel', 'execInst': '', 'contingencyType': '', 'exDestination': 'XBME', 'ordStatus': 'New', 'triggered': '', 'workingIndicator': True, 'ordRejReason': '', 'simpleLeavesQty': None, 'leavesQty': 905, 'simpleCumQty': None, 'cumQty': 0, 'avgPx': None, 'multiLegReportingType': 'SingleSecurity', 'text': 'Profit order by trader.py', 'transactTime': datetime.datetime(2020, 10, 10, 5, 47, 33, 902000, tzinfo=tzutc()), 'timestamp': datetime.datetime(2020, 10, 10, 5, 47, 33, 902000, tzinfo=tzutc())} 2020-10-11 03:02:00 INFO: skip by not found init order into storage 2020-10-11 03:02:00 INFO: fetch_orders_for_clearing test order {'orderID': '1fd3496a-d3db-4d5d-a1ee-3e1571ec9fba', 'clOrdID': '27fa59835b75489c91cb8dfc5ee60dbf', 'clOrdLinkID': '', 'account': 605536, 'symbol': 'ETHUSD', 'side': 'Sell', 'simpleOrderQty': None, 'orderQty': 884, 'price': 373.75, 'displayQty': None, 'stopPx': 373.8, 'pegOffsetValue': None, 'pegPriceType': '', 'currency': 'USD', 'settlCurrency': 'XBt', 'ordType': 'StopLimit', 'timeInForce': 'GoodTillCancel', 'execInst': 'LastPrice', 'contingencyType': '', 'exDestination': 'XBME', 'ordStatus': 'New', 'triggered': 'StopOrderTriggered', 'workingIndicator': True, 'ordRejReason': '', 'simpleLeavesQty': None, 'leavesQty': 884, 'simpleCumQty': None, 'cumQty': 0, 'avgPx': None, 'multiLegReportingType': 'SingleSecurity', 'text': 'Triggered: Order stop price reached\nInit order by supervisor.py', 'transactTime': datetime.datetime(2020, 10, 10, 23, 9, 58, 956000, tzinfo=tzutc()), 'timestamp': datetime.datetime(2020, 10, 10, 23, 9, 58, 956000, tzinfo=tzutc())} 2020-10-11 03:02:00 INFO: order time=2020-10-10 23:09:58.956000+00:00; delta from now UTC=0:52:01.807528 time_delta.total_seconds()=3121.807528; time_diff_offset='3600' 2020-10-11 03:02:00 INFO: skip by time diff 2020-10-10 23:09:58.956000+00:00 2020-10-11 03:02:00 INFO: clearing end 2020-10-11 03:02:00 INFO: 2020-10-11 03:02:00 INFO: 2020-10-11 03:02:00 INFO: 2020-10-11 03:02:00 INFO: 2020-10-11 04:00:20 INFO: 2020-10-11 04:00:20 INFO: 2020-10-11 04:00:20 INFO: 2020-10-11 04:00:20 INFO: 2020-10-11 04:00:20 INFO: init new order start 2020-10-11 04:00:20 INFO: fetch buckets [{'timestamp': datetime.datetime(2020, 10, 11, 1, 0, tzinfo=tzutc()), 'symbol': 'ETHUSD', 'open': 371.05, 'high': 372.35, 'low': 369.1, 'close': 370.75, 'trades': 2285, 'volume': 1587650, 'vwap': 370.87, 'lastSize': 210, 'turnover': 58880949280, 'homeNotional': 17946.10629823458, 'foreignNotional': 6655656.800527793}, {'timestamp': datetime.datetime(2020, 10, 11, 0, 0, tzinfo=tzutc()), 'symbol': 'ETHUSD', 'open': 374.7, 'high': 374.65, 'low': 369.2, 'close': 371.05, 'trades': 4235, 'volume': 3004988, 'vwap': 371.39, 'lastSize': 50, 'turnover': 111600988850, 'homeNotional': 33970.75315509126, 'foreignNotional': 12616301.93650259}, {'timestamp': datetime.datetime(2020, 10, 10, 23, 0, tzinfo=tzutc()), 'symbol': 'ETHUSD', 'open': 375.95, 'high': 375.95, 'low': 373.85, 'close': 374.7, 'trades': 1766, 'volume': 1414153, 'vwap': 374.88, 'lastSize': 27, 'turnover': 53013689515, 'homeNotional': 16059.377095272313, 'foreignNotional': 6020334.214185534}] 2020-10-11 04:00:20 INFO: prepare candles [CandleItem(low=369.1, high=372.35, open=371.05, close=370.75, color='RED'), CandleItem(low=369.2, high=374.65, open=374.7, close=371.05, color='RED'), CandleItem(low=373.85, high=375.95, open=375.95, close=374.7, color='RED')] 2020-10-11 04:00:20 INFO: skip by colors first_candle=CandleItem(low=373.85, high=375.95, open=375.95, close=374.7, color='RED') second_candle=CandleItem(low=369.2, high=374.65, open=374.7, close=371.05, color='RED') last_candle=CandleItem(low=369.1, high=372.35, open=371.05, close=370.75, color='RED') 2020-10-11 04:00:20 INFO: check need new order None 2020-10-11 04:00:20 INFO: init new order end 2020-10-11 04:00:20 INFO: 2020-10-11 04:00:20 INFO: 2020-10-11 04:00:20 INFO: 2020-10-11 04:00:20 INFO: 2020-10-11 04:02:00 INFO: 2020-10-11 04:02:00 INFO: 2020-10-11 04:02:00 INFO: 2020-10-11 04:02:00 INFO: 2020-10-11 04:02:00 INFO: clearing start 2020-10-11 04:02:00 INFO: fetch_orders_for_clearing test order {'orderID': '6f76c0d7-c14d-4225-8724-fc5af958530d', 'clOrdID': '6f9d548ef9a34b9ab381d3e514de3371', 'clOrdLinkID': '', 'account': 605536, 'symbol': 'ETHUSD', 'side': 'Buy', 'simpleOrderQty': None, 'orderQty': 905, 'price': None, 'displayQty': None, 'stopPx': 377.75, 'pegOffsetValue': None, 'pegPriceType': '', 'currency': 'USD', 'settlCurrency': 'XBt', 'ordType': 'Stop', 'timeInForce': 'ImmediateOrCancel', 'execInst': 'LastPrice', 'contingencyType': '', 'exDestination': 'XBME', 'ordStatus': 'New', 'triggered': '', 'workingIndicator': False, 'ordRejReason': '', 'simpleLeavesQty': None, 'leavesQty': 905, 'simpleCumQty': None, 'cumQty': 0, 'avgPx': None, 'multiLegReportingType': 'SingleSecurity', 'text': 'Stop order by trader.py', 'transactTime': datetime.datetime(2020, 10, 10, 5, 47, 33, 864000, tzinfo=tzutc()), 'timestamp': datetime.datetime(2020, 10, 10, 5, 47, 33, 864000, tzinfo=tzutc())} 2020-10-11 04:02:00 INFO: skip by not found init order into storage 2020-10-11 04:02:00 INFO: fetch_orders_for_clearing test order {'orderID': 'e31d79bb-e85c-421d-8a0c-500f1fe615c6', 'clOrdID': 'c14133cfedbb4667b72e2fa887fe300a', 'clOrdLinkID': '', 'account': 605536, 'symbol': 'ETHUSD', 'side': 'Buy', 'simpleOrderQty': None, 'orderQty': 905, 'price': 363.3, 'displayQty': None, 'stopPx': None, 'pegOffsetValue': None, 'pegPriceType': '', 'currency': 'USD', 'settlCurrency': 'XBt', 'ordType': 'Limit', 'timeInForce': 'GoodTillCancel', 'execInst': '', 'contingencyType': '', 'exDestination': 'XBME', 'ordStatus': 'New', 'triggered': '', 'workingIndicator': True, 'ordRejReason': '', 'simpleLeavesQty': None, 'leavesQty': 905, 'simpleCumQty': None, 'cumQty': 0, 'avgPx': None, 'multiLegReportingType': 'SingleSecurity', 'text': 'Profit order by trader.py', 'transactTime': datetime.datetime(2020, 10, 10, 5, 47, 33, 902000, tzinfo=tzutc()), 'timestamp': datetime.datetime(2020, 10, 10, 5, 47, 33, 902000, tzinfo=tzutc())} 2020-10-11 04:02:00 INFO: skip by not found init order into storage 2020-10-11 04:02:00 INFO: fetch_orders_for_clearing test order {'orderID': '1fd3496a-d3db-4d5d-a1ee-3e1571ec9fba', 'clOrdID': '27fa59835b75489c91cb8dfc5ee60dbf', 'clOrdLinkID': '', 'account': 605536, 'symbol': 'ETHUSD', 'side': 'Sell', 'simpleOrderQty': None, 'orderQty': 884, 'price': 373.75, 'displayQty': None, 'stopPx': 373.8, 'pegOffsetValue': None, 'pegPriceType': '', 'currency': 'USD', 'settlCurrency': 'XBt', 'ordType': 'StopLimit', 'timeInForce': 'GoodTillCancel', 'execInst': 'LastPrice', 'contingencyType': '', 'exDestination': 'XBME', 'ordStatus': 'New', 'triggered': 'StopOrderTriggered', 'workingIndicator': True, 'ordRejReason': '', 'simpleLeavesQty': None, 'leavesQty': 884, 'simpleCumQty': None, 'cumQty': 0, 'avgPx': None, 'multiLegReportingType': 'SingleSecurity', 'text': 'Triggered: Order stop price reached\nInit order by supervisor.py', 'transactTime': datetime.datetime(2020, 10, 10, 23, 9, 58, 956000, tzinfo=tzutc()), 'timestamp': datetime.datetime(2020, 10, 10, 23, 9, 58, 956000, tzinfo=tzutc())} 2020-10-11 04:02:00 INFO: order time=2020-10-10 23:09:58.956000+00:00; delta from now UTC=1:52:01.084369 time_delta.total_seconds()=6721.084369; time_diff_offset='3600' 2020-10-11 04:02:00 INFO: clear order 27fa59835b75489c91cb8dfc5ee60dbf 2020-10-11 04:02:00 INFO: cancel order resp=[{'orderID': '1fd3496a-d3db-4d5d-a1ee-3e1571ec9fba', 'clOrdID': '27fa59835b75489c91cb8dfc5ee60dbf', 'clOrdLinkID': '', 'account': 605536, 'symbol': 'ETHUSD', 'side': 'Sell', 'simpleOrderQty': None, 'orderQty': 884, 'price': 373.75, 'displayQty': None, 'stopPx': 373.8, 'pegOffsetValue': None, 'pegPriceType': '', 'currency': 'USD', 'settlCurrency': 'XBt', 'ordType': 'StopLimit', 'timeInForce': 'GoodTillCancel', 'execInst': 'LastPrice', 'contingencyType': '', 'exDestination': 'XBME', 'ordStatus': 'Canceled', 'triggered': 'StopOrderTriggered', 'workingIndicator': False, 'ordRejReason': '', 'simpleLeavesQty': None, 'leavesQty': 0, 'simpleCumQty': None, 'cumQty': 0, 'avgPx': None, 'multiLegReportingType': 'SingleSecurity', 'text': 'Canceled: cancelled by clearing\nInit order by supervisor.py', 'transactTime': datetime.datetime(2020, 10, 10, 23, 9, 58, 956000, tzinfo=tzutc()), 'timestamp': datetime.datetime(2020, 10, 11, 1, 2, 0, 64000, tzinfo=tzutc())}] 2020-10-11 04:02:00 INFO: process event {'orderID': '1fd3496a-d3db-4d5d-a1ee-3e1571ec9fba', 'ordStatus': 'Canceled', 'workingIndicator': False, 'leavesQty': 0, 'text': 'Canceled: cancelled by clearing\nInit order by supervisor.py', 'timestamp': '2020-10-11T01:02:00.064Z', 'clOrdID': '27fa59835b75489c91cb8dfc5ee60dbf', 'account': 605536, 'symbol': 'ETHUSD'} 2020-10-11 04:02:00 INFO: skip event 27fa59835b75489c91cb8dfc5ee60dbf Canceled 2020-10-11 04:02:00 INFO: clearing end 2020-10-11 04:02:00 INFO: 2020-10-11 04:02:00 INFO: 2020-10-11 04:02:00 INFO: 2020-10-11 04:02:00 INFO: 2020-10-11 05:00:20 INFO: 2020-10-11 05:00:20 INFO: 2020-10-11 05:00:20 INFO: 2020-10-11 05:00:20 INFO: 2020-10-11 05:00:20 INFO: init new order start 2020-10-11 05:00:20 INFO: fetch buckets [{'timestamp': datetime.datetime(2020, 10, 11, 2, 0, tzinfo=tzutc()), 'symbol': 'ETHUSD', 'open': 370.75, 'high': 373.45, 'low': 370.45, 'close': 372.95, 'trades': 2135, 'volume': 1587291, 'vwap': 372.12, 'lastSize': 800, 'turnover': 59064981935, 'homeNotional': 17992.06227058316, 'foreignNotional': 6695082.939209088}, {'timestamp': datetime.datetime(2020, 10, 11, 1, 0, tzinfo=tzutc()), 'symbol': 'ETHUSD', 'open': 371.05, 'high': 372.35, 'low': 369.1, 'close': 370.75, 'trades': 2285, 'volume': 1587650, 'vwap': 370.87, 'lastSize': 210, 'turnover': 58880949280, 'homeNotional': 17946.10629823458, 'foreignNotional': 6655656.800527793}, {'timestamp': datetime.datetime(2020, 10, 11, 0, 0, tzinfo=tzutc()), 'symbol': 'ETHUSD', 'open': 374.7, 'high': 374.65, 'low': 369.2, 'close': 371.05, 'trades': 4235, 'volume': 3004988, 'vwap': 371.39, 'lastSize': 50, 'turnover': 111600988850, 'homeNotional': 33970.75315509126, 'foreignNotional': 12616301.93650259}] 2020-10-11 05:00:20 INFO: prepare candles [CandleItem(low=370.45, high=373.45, open=370.75, close=372.95, color='GREEN'), CandleItem(low=369.1, high=372.35, open=371.05, close=370.75, color='RED'), CandleItem(low=369.2, high=374.65, open=374.7, close=371.05, color='RED')] 2020-10-11 05:00:20 INFO: last_candle=CandleItem(low=370.45, high=373.45, open=370.75, close=372.95, color='GREEN') 2020-10-11 05:00:20 INFO: apply filters to candles filter_config=InitOrderConfig(take_profit_factor=6.0, clearing_interval=3600, first_candle=CandleFilter(size=None, body=MinMaxFilter(min=0.0, max=100.0)), second_candle=CandleFilter(size=None, body=MinMaxFilter(min=0.0, max=100.0)), last_candle=CandleFilter(size=MinMaxFilter(min=0.4, max=0.59), body=MinMaxFilter(min=0.0, max=100.0))) 2020-10-11 05:00:20 INFO: apply filter CandleFilter(size=MinMaxFilter(min=0.4, max=0.59), body=MinMaxFilter(min=0.0, max=100.0)) to candle=CandleItem(low=370.45, high=373.45, open=370.75, close=372.95, color='GREEN') 2020-10-11 05:00:20 INFO: skip by CandleItem(low=370.45, high=373.45, open=370.75, close=372.95, color='GREEN') and CandleFilter(size=MinMaxFilter(min=0.4, max=0.59), body=MinMaxFilter(min=0.0, max=100.0)) 2020-10-11 05:00:20 INFO: apply filters to candles filter_config=InitOrderConfig(take_profit_factor=5.0, clearing_interval=3600, first_candle=None, second_candle=None, last_candle=CandleFilter(size=MinMaxFilter(min=1.6, max=1.99), body=MinMaxFilter(min=0.0, max=100.0))) 2020-10-11 05:00:20 INFO: apply filter CandleFilter(size=MinMaxFilter(min=1.6, max=1.99), body=MinMaxFilter(min=0.0, max=100.0)) to candle=CandleItem(low=370.45, high=373.45, open=370.75, close=372.95, color='GREEN') 2020-10-11 05:00:20 INFO: skip by CandleItem(low=370.45, high=373.45, open=370.75, close=372.95, color='GREEN') and CandleFilter(size=MinMaxFilter(min=1.6, max=1.99), body=MinMaxFilter(min=0.0, max=100.0)) 2020-10-11 05:00:20 INFO: not found applicable config for candle 2020-10-11 05:00:20 INFO: check need new order None 2020-10-11 05:00:20 INFO: init new order end 2020-10-11 05:00:20 INFO: 2020-10-11 05:00:20 INFO: 2020-10-11 05:00:20 INFO: 2020-10-11 05:00:20 INFO: 2020-10-11 05:02:00 INFO: 2020-10-11 05:02:00 INFO: 2020-10-11 05:02:00 INFO: 2020-10-11 05:02:00 INFO: 2020-10-11 05:02:00 INFO: clearing start 2020-10-11 05:02:00 INFO: fetch_orders_for_clearing test order {'orderID': '6f76c0d7-c14d-4225-8724-fc5af958530d', 'clOrdID': '6f9d548ef9a34b9ab381d3e514de3371', 'clOrdLinkID': '', 'account': 605536, 'symbol': 'ETHUSD', 'side': 'Buy', 'simpleOrderQty': None, 'orderQty': 905, 'price': None, 'displayQty': None, 'stopPx': 377.75, 'pegOffsetValue': None, 'pegPriceType': '', 'currency': 'USD', 'settlCurrency': 'XBt', 'ordType': 'Stop', 'timeInForce': 'ImmediateOrCancel', 'execInst': 'LastPrice', 'contingencyType': '', 'exDestination': 'XBME', 'ordStatus': 'New', 'triggered': '', 'workingIndicator': False, 'ordRejReason': '', 'simpleLeavesQty': None, 'leavesQty': 905, 'simpleCumQty': None, 'cumQty': 0, 'avgPx': None, 'multiLegReportingType': 'SingleSecurity', 'text': 'Stop order by trader.py', 'transactTime': datetime.datetime(2020, 10, 10, 5, 47, 33, 864000, tzinfo=tzutc()), 'timestamp': datetime.datetime(2020, 10, 10, 5, 47, 33, 864000, tzinfo=tzutc())} 2020-10-11 05:02:00 INFO: skip by not found init order into storage 2020-10-11 05:02:00 INFO: fetch_orders_for_clearing test order {'orderID': 'e31d79bb-e85c-421d-8a0c-500f1fe615c6', 'clOrdID': 'c14133cfedbb4667b72e2fa887fe300a', 'clOrdLinkID': '', 'account': 605536, 'symbol': 'ETHUSD', 'side': 'Buy', 'simpleOrderQty': None, 'orderQty': 905, 'price': 363.3, 'displayQty': None, 'stopPx': None, 'pegOffsetValue': None, 'pegPriceType': '', 'currency': 'USD', 'settlCurrency': 'XBt', 'ordType': 'Limit', 'timeInForce': 'GoodTillCancel', 'execInst': '', 'contingencyType': '', 'exDestination': 'XBME', 'ordStatus': 'New', 'triggered': '', 'workingIndicator': True, 'ordRejReason': '', 'simpleLeavesQty': None, 'leavesQty': 905, 'simpleCumQty': None, 'cumQty': 0, 'avgPx': None, 'multiLegReportingType': 'SingleSecurity', 'text': 'Profit order by trader.py', 'transactTime': datetime.datetime(2020, 10, 10, 5, 47, 33, 902000, tzinfo=tzutc()), 'timestamp': datetime.datetime(2020, 10, 10, 5, 47, 33, 902000, tzinfo=tzutc())} 2020-10-11 05:02:00 INFO: skip by not found init order into storage 2020-10-11 05:02:00 INFO: clearing end 2020-10-11 05:02:00 INFO: 2020-10-11 05:02:00 INFO: 2020-10-11 05:02:00 INFO: 2020-10-11 05:02:00 INFO: 2020-10-11 06:00:20 INFO: 2020-10-11 06:00:20 INFO: 2020-10-11 06:00:20 INFO: 2020-10-11 06:00:20 INFO: 2020-10-11 06:00:20 INFO: init new order start 2020-10-11 06:00:20 INFO: fetch buckets [{'timestamp': datetime.datetime(2020, 10, 11, 3, 0, tzinfo=tzutc()), 'symbol': 'ETHUSD', 'open': 372.95, 'high': 373.25, 'low': 372.3, 'close': 373.15, 'trades': 1180, 'volume': 966294, 'vwap': 372.83, 'lastSize': 3000, 'turnover': 36025800795, 'homeNotional': 10979.030726776318, 'foreignNotional': 4093251.48880217}, {'timestamp': datetime.datetime(2020, 10, 11, 2, 0, tzinfo=tzutc()), 'symbol': 'ETHUSD', 'open': 370.75, 'high': 373.45, 'low': 370.45, 'close': 372.95, 'trades': 2135, 'volume': 1587291, 'vwap': 372.12, 'lastSize': 800, 'turnover': 59064981935, 'homeNotional': 17992.06227058316, 'foreignNotional': 6695082.939209088}, {'timestamp': datetime.datetime(2020, 10, 11, 1, 0, tzinfo=tzutc()), 'symbol': 'ETHUSD', 'open': 371.05, 'high': 372.35, 'low': 369.1, 'close': 370.75, 'trades': 2285, 'volume': 1587650, 'vwap': 370.87, 'lastSize': 210, 'turnover': 58880949280, 'homeNotional': 17946.10629823458, 'foreignNotional': 6655656.800527793}] 2020-10-11 06:00:20 INFO: prepare candles [CandleItem(low=372.3, high=373.25, open=372.95, close=373.15, color='GREEN'), CandleItem(low=370.45, high=373.45, open=370.75, close=372.95, color='GREEN'), CandleItem(low=369.1, high=372.35, open=371.05, close=370.75, color='RED')] 2020-10-11 06:00:20 INFO: skip by colors first_candle=CandleItem(low=369.1, high=372.35, open=371.05, close=370.75, color='RED') second_candle=CandleItem(low=370.45, high=373.45, open=370.75, close=372.95, color='GREEN') last_candle=CandleItem(low=372.3, high=373.25, open=372.95, close=373.15, color='GREEN') 2020-10-11 06:00:20 INFO: check need new order None 2020-10-11 06:00:20 INFO: init new order end 2020-10-11 06:00:20 INFO: 2020-10-11 06:00:20 INFO: 2020-10-11 06:00:20 INFO: 2020-10-11 06:00:20 INFO: 2020-10-11 06:02:00 INFO: 2020-10-11 06:02:00 INFO: 2020-10-11 06:02:00 INFO: 2020-10-11 06:02:00 INFO: 2020-10-11 06:02:00 INFO: clearing start 2020-10-11 06:02:00 INFO: fetch_orders_for_clearing test order {'orderID': '6f76c0d7-c14d-4225-8724-fc5af958530d', 'clOrdID': '6f9d548ef9a34b9ab381d3e514de3371', 'clOrdLinkID': '', 'account': 605536, 'symbol': 'ETHUSD', 'side': 'Buy', 'simpleOrderQty': None, 'orderQty': 905, 'price': None, 'displayQty': None, 'stopPx': 377.75, 'pegOffsetValue': None, 'pegPriceType': '', 'currency': 'USD', 'settlCurrency': 'XBt', 'ordType': 'Stop', 'timeInForce': 'ImmediateOrCancel', 'execInst': 'LastPrice', 'contingencyType': '', 'exDestination': 'XBME', 'ordStatus': 'New', 'triggered': '', 'workingIndicator': False, 'ordRejReason': '', 'simpleLeavesQty': None, 'leavesQty': 905, 'simpleCumQty': None, 'cumQty': 0, 'avgPx': None, 'multiLegReportingType': 'SingleSecurity', 'text': 'Stop order by trader.py', 'transactTime': datetime.datetime(2020, 10, 10, 5, 47, 33, 864000, tzinfo=tzutc()), 'timestamp': datetime.datetime(2020, 10, 10, 5, 47, 33, 864000, tzinfo=tzutc())} 2020-10-11 06:02:00 INFO: skip by not found init order into storage 2020-10-11 06:02:00 INFO: fetch_orders_for_clearing test order {'orderID': 'e31d79bb-e85c-421d-8a0c-500f1fe615c6', 'clOrdID': 'c14133cfedbb4667b72e2fa887fe300a', 'clOrdLinkID': '', 'account': 605536, 'symbol': 'ETHUSD', 'side': 'Buy', 'simpleOrderQty': None, 'orderQty': 905, 'price': 363.3, 'displayQty': None, 'stopPx': None, 'pegOffsetValue': None, 'pegPriceType': '', 'currency': 'USD', 'settlCurrency': 'XBt', 'ordType': 'Limit', 'timeInForce': 'GoodTillCancel', 'execInst': '', 'contingencyType': '', 'exDestination': 'XBME', 'ordStatus': 'New', 'triggered': '', 'workingIndicator': True, 'ordRejReason': '', 'simpleLeavesQty': None, 'leavesQty': 905, 'simpleCumQty': None, 'cumQty': 0, 'avgPx': None, 'multiLegReportingType': 'SingleSecurity', 'text': 'Profit order by trader.py', 'transactTime': datetime.datetime(2020, 10, 10, 5, 47, 33, 902000, tzinfo=tzutc()), 'timestamp': datetime.datetime(2020, 10, 10, 5, 47, 33, 902000, tzinfo=tzutc())} 2020-10-11 06:02:00 INFO: skip by not found init order into storage 2020-10-11 06:02:00 INFO: clearing end 2020-10-11 06:02:00 INFO: 2020-10-11 06:02:00 INFO: 2020-10-11 06:02:00 INFO: 2020-10-11 06:02:00 INFO: 2020-10-11 06:04:12 ERROR: Error : Connection is already closed. 2020-10-11 06:04:12 ERROR: error from callback >: Connection is already closed. 2020-10-11 06:04:12 INFO: Websocket Closed 2020-10-11 06:04:13 WARNING: reconnect to socket 2020-10-11 06:04:13 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2020-10-11 06:04:13 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2020-10-11 06:04:13 INFO: Authenticating with API Key. 2020-10-11 06:04:14 INFO: Connected to WS. 2020-10-11 07:00:20 INFO: 2020-10-11 07:00:20 INFO: 2020-10-11 07:00:20 INFO: 2020-10-11 07:00:20 INFO: 2020-10-11 07:00:20 INFO: init new order start 2020-10-11 07:00:20 INFO: fetch buckets [{'timestamp': datetime.datetime(2020, 10, 11, 4, 0, tzinfo=tzutc()), 'symbol': 'ETHUSD', 'open': 373.15, 'high': 373.2, 'low': 369.8, 'close': 370.9, 'trades': 1757, 'volume': 1710991, 'vwap': 371.37, 'lastSize': 35, 'turnover': 63541011460, 'homeNotional': 19397.323442703888, 'foreignNotional': 7203589.968375307}, {'timestamp': datetime.datetime(2020, 10, 11, 3, 0, tzinfo=tzutc()), 'symbol': 'ETHUSD', 'open': 372.95, 'high': 373.25, 'low': 372.3, 'close': 373.15, 'trades': 1180, 'volume': 966294, 'vwap': 372.83, 'lastSize': 3000, 'turnover': 36025800795, 'homeNotional': 10979.030726776318, 'foreignNotional': 4093251.48880217}, {'timestamp': datetime.datetime(2020, 10, 11, 2, 0, tzinfo=tzutc()), 'symbol': 'ETHUSD', 'open': 370.75, 'high': 373.45, 'low': 370.45, 'close': 372.95, 'trades': 2135, 'volume': 1587291, 'vwap': 372.12, 'lastSize': 800, 'turnover': 59064981935, 'homeNotional': 17992.06227058316, 'foreignNotional': 6695082.939209088}] 2020-10-11 07:00:20 INFO: prepare candles [CandleItem(low=369.8, high=373.2, open=373.15, close=370.9, color='RED'), CandleItem(low=372.3, high=373.25, open=372.95, close=373.15, color='GREEN'), CandleItem(low=370.45, high=373.45, open=370.75, close=372.95, color='GREEN')] 2020-10-11 07:00:20 INFO: last_candle=CandleItem(low=369.8, high=373.2, open=373.15, close=370.9, color='RED') 2020-10-11 07:00:20 INFO: apply filters to candles filter_config=InitOrderConfig(take_profit_factor=6.0, clearing_interval=3600, first_candle=CandleFilter(size=None, body=MinMaxFilter(min=0.0, max=100.0)), second_candle=CandleFilter(size=None, body=MinMaxFilter(min=0.0, max=100.0)), last_candle=CandleFilter(size=MinMaxFilter(min=0.4, max=0.59), body=MinMaxFilter(min=0.0, max=100.0))) 2020-10-11 07:00:20 INFO: apply filter CandleFilter(size=MinMaxFilter(min=0.4, max=0.59), body=MinMaxFilter(min=0.0, max=100.0)) to candle=CandleItem(low=369.8, high=373.2, open=373.15, close=370.9, color='RED') 2020-10-11 07:00:20 INFO: skip by CandleItem(low=369.8, high=373.2, open=373.15, close=370.9, color='RED') and CandleFilter(size=MinMaxFilter(min=0.4, max=0.59), body=MinMaxFilter(min=0.0, max=100.0)) 2020-10-11 07:00:20 INFO: apply filters to candles filter_config=InitOrderConfig(take_profit_factor=5.0, clearing_interval=3600, first_candle=None, second_candle=None, last_candle=CandleFilter(size=MinMaxFilter(min=1.6, max=1.99), body=MinMaxFilter(min=0.0, max=100.0))) 2020-10-11 07:00:20 INFO: apply filter CandleFilter(size=MinMaxFilter(min=1.6, max=1.99), body=MinMaxFilter(min=0.0, max=100.0)) to candle=CandleItem(low=369.8, high=373.2, open=373.15, close=370.9, color='RED') 2020-10-11 07:00:20 INFO: skip by CandleItem(low=369.8, high=373.2, open=373.15, close=370.9, color='RED') and CandleFilter(size=MinMaxFilter(min=1.6, max=1.99), body=MinMaxFilter(min=0.0, max=100.0)) 2020-10-11 07:00:20 INFO: not found applicable config for candle 2020-10-11 07:00:20 INFO: check need new order None 2020-10-11 07:00:20 INFO: init new order end 2020-10-11 07:00:20 INFO: 2020-10-11 07:00:20 INFO: 2020-10-11 07:00:20 INFO: 2020-10-11 07:00:20 INFO: 2020-10-11 07:02:00 INFO: 2020-10-11 07:02:00 INFO: 2020-10-11 07:02:00 INFO: 2020-10-11 07:02:00 INFO: 2020-10-11 07:02:00 INFO: clearing start 2020-10-11 07:02:00 INFO: fetch_orders_for_clearing test order {'orderID': '6f76c0d7-c14d-4225-8724-fc5af958530d', 'clOrdID': '6f9d548ef9a34b9ab381d3e514de3371', 'clOrdLinkID': '', 'account': 605536, 'symbol': 'ETHUSD', 'side': 'Buy', 'simpleOrderQty': None, 'orderQty': 905, 'price': None, 'displayQty': None, 'stopPx': 377.75, 'pegOffsetValue': None, 'pegPriceType': '', 'currency': 'USD', 'settlCurrency': 'XBt', 'ordType': 'Stop', 'timeInForce': 'ImmediateOrCancel', 'execInst': 'LastPrice', 'contingencyType': '', 'exDestination': 'XBME', 'ordStatus': 'New', 'triggered': '', 'workingIndicator': False, 'ordRejReason': '', 'simpleLeavesQty': None, 'leavesQty': 905, 'simpleCumQty': None, 'cumQty': 0, 'avgPx': None, 'multiLegReportingType': 'SingleSecurity', 'text': 'Stop order by trader.py', 'transactTime': datetime.datetime(2020, 10, 10, 5, 47, 33, 864000, tzinfo=tzutc()), 'timestamp': datetime.datetime(2020, 10, 10, 5, 47, 33, 864000, tzinfo=tzutc())} 2020-10-11 07:02:00 INFO: skip by not found init order into storage 2020-10-11 07:02:00 INFO: fetch_orders_for_clearing test order {'orderID': 'e31d79bb-e85c-421d-8a0c-500f1fe615c6', 'clOrdID': 'c14133cfedbb4667b72e2fa887fe300a', 'clOrdLinkID': '', 'account': 605536, 'symbol': 'ETHUSD', 'side': 'Buy', 'simpleOrderQty': None, 'orderQty': 905, 'price': 363.3, 'displayQty': None, 'stopPx': None, 'pegOffsetValue': None, 'pegPriceType': '', 'currency': 'USD', 'settlCurrency': 'XBt', 'ordType': 'Limit', 'timeInForce': 'GoodTillCancel', 'execInst': '', 'contingencyType': '', 'exDestination': 'XBME', 'ordStatus': 'New', 'triggered': '', 'workingIndicator': True, 'ordRejReason': '', 'simpleLeavesQty': None, 'leavesQty': 905, 'simpleCumQty': None, 'cumQty': 0, 'avgPx': None, 'multiLegReportingType': 'SingleSecurity', 'text': 'Profit order by trader.py', 'transactTime': datetime.datetime(2020, 10, 10, 5, 47, 33, 902000, tzinfo=tzutc()), 'timestamp': datetime.datetime(2020, 10, 10, 5, 47, 33, 902000, tzinfo=tzutc())} 2020-10-11 07:02:00 INFO: skip by not found init order into storage 2020-10-11 07:02:00 INFO: clearing end 2020-10-11 07:02:00 INFO: 2020-10-11 07:02:00 INFO: 2020-10-11 07:02:00 INFO: 2020-10-11 07:02:00 INFO: 2020-10-11 07:34:56 ERROR: Error : Connection is already closed. 2020-10-11 07:34:56 ERROR: error from callback >: Connection is already closed. 2020-10-11 07:34:56 INFO: Websocket Closed 2020-10-11 07:34:57 WARNING: reconnect to socket 2020-10-11 07:34:57 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2020-10-11 07:34:57 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2020-10-11 07:34:57 INFO: Authenticating with API Key. 2020-10-11 07:34:58 INFO: Connected to WS. 2020-10-11 08:00:20 INFO: 2020-10-11 08:00:20 INFO: 2020-10-11 08:00:20 INFO: 2020-10-11 08:00:20 INFO: 2020-10-11 08:00:20 INFO: init new order start 2020-10-11 08:00:20 INFO: fetch buckets [{'timestamp': datetime.datetime(2020, 10, 11, 5, 0, tzinfo=tzutc()), 'symbol': 'ETHUSD', 'open': 370.9, 'high': 371.95, 'low': 370.05, 'close': 371.7, 'trades': 1616, 'volume': 1430244, 'vwap': 371.07, 'lastSize': 486, 'turnover': 53071543250, 'homeNotional': 16194.903938832169, 'foreignNotional': 6009390.215363079}, {'timestamp': datetime.datetime(2020, 10, 11, 4, 0, tzinfo=tzutc()), 'symbol': 'ETHUSD', 'open': 373.15, 'high': 373.2, 'low': 369.8, 'close': 370.9, 'trades': 1757, 'volume': 1710991, 'vwap': 371.37, 'lastSize': 35, 'turnover': 63541011460, 'homeNotional': 19397.323442703888, 'foreignNotional': 7203589.968375307}, {'timestamp': datetime.datetime(2020, 10, 11, 3, 0, tzinfo=tzutc()), 'symbol': 'ETHUSD', 'open': 372.95, 'high': 373.25, 'low': 372.3, 'close': 373.15, 'trades': 1180, 'volume': 966294, 'vwap': 372.83, 'lastSize': 3000, 'turnover': 36025800795, 'homeNotional': 10979.030726776318, 'foreignNotional': 4093251.48880217}] 2020-10-11 08:00:20 INFO: prepare candles [CandleItem(low=370.05, high=371.95, open=370.9, close=371.7, color='GREEN'), CandleItem(low=369.8, high=373.2, open=373.15, close=370.9, color='RED'), CandleItem(low=372.3, high=373.25, open=372.95, close=373.15, color='GREEN')] 2020-10-11 08:00:20 INFO: skip by colors first_candle=CandleItem(low=372.3, high=373.25, open=372.95, close=373.15, color='GREEN') second_candle=CandleItem(low=369.8, high=373.2, open=373.15, close=370.9, color='RED') last_candle=CandleItem(low=370.05, high=371.95, open=370.9, close=371.7, color='GREEN') 2020-10-11 08:00:20 INFO: check need new order None 2020-10-11 08:00:20 INFO: init new order end 2020-10-11 08:00:20 INFO: 2020-10-11 08:00:20 INFO: 2020-10-11 08:00:20 INFO: 2020-10-11 08:00:20 INFO: 2020-10-11 08:02:00 INFO: 2020-10-11 08:02:00 INFO: 2020-10-11 08:02:00 INFO: 2020-10-11 08:02:00 INFO: 2020-10-11 08:02:00 INFO: clearing start 2020-10-11 08:02:00 INFO: fetch_orders_for_clearing test order {'orderID': '6f76c0d7-c14d-4225-8724-fc5af958530d', 'clOrdID': '6f9d548ef9a34b9ab381d3e514de3371', 'clOrdLinkID': '', 'account': 605536, 'symbol': 'ETHUSD', 'side': 'Buy', 'simpleOrderQty': None, 'orderQty': 905, 'price': None, 'displayQty': None, 'stopPx': 377.75, 'pegOffsetValue': None, 'pegPriceType': '', 'currency': 'USD', 'settlCurrency': 'XBt', 'ordType': 'Stop', 'timeInForce': 'ImmediateOrCancel', 'execInst': 'LastPrice', 'contingencyType': '', 'exDestination': 'XBME', 'ordStatus': 'New', 'triggered': '', 'workingIndicator': False, 'ordRejReason': '', 'simpleLeavesQty': None, 'leavesQty': 905, 'simpleCumQty': None, 'cumQty': 0, 'avgPx': None, 'multiLegReportingType': 'SingleSecurity', 'text': 'Stop order by trader.py', 'transactTime': datetime.datetime(2020, 10, 10, 5, 47, 33, 864000, tzinfo=tzutc()), 'timestamp': datetime.datetime(2020, 10, 10, 5, 47, 33, 864000, tzinfo=tzutc())} 2020-10-11 08:02:00 INFO: skip by not found init order into storage 2020-10-11 08:02:00 INFO: fetch_orders_for_clearing test order {'orderID': 'e31d79bb-e85c-421d-8a0c-500f1fe615c6', 'clOrdID': 'c14133cfedbb4667b72e2fa887fe300a', 'clOrdLinkID': '', 'account': 605536, 'symbol': 'ETHUSD', 'side': 'Buy', 'simpleOrderQty': None, 'orderQty': 905, 'price': 363.3, 'displayQty': None, 'stopPx': None, 'pegOffsetValue': None, 'pegPriceType': '', 'currency': 'USD', 'settlCurrency': 'XBt', 'ordType': 'Limit', 'timeInForce': 'GoodTillCancel', 'execInst': '', 'contingencyType': '', 'exDestination': 'XBME', 'ordStatus': 'New', 'triggered': '', 'workingIndicator': True, 'ordRejReason': '', 'simpleLeavesQty': None, 'leavesQty': 905, 'simpleCumQty': None, 'cumQty': 0, 'avgPx': None, 'multiLegReportingType': 'SingleSecurity', 'text': 'Profit order by trader.py', 'transactTime': datetime.datetime(2020, 10, 10, 5, 47, 33, 902000, tzinfo=tzutc()), 'timestamp': datetime.datetime(2020, 10, 10, 5, 47, 33, 902000, tzinfo=tzutc())} 2020-10-11 08:02:00 INFO: skip by not found init order into storage 2020-10-11 08:02:00 INFO: clearing end 2020-10-11 08:02:00 INFO: 2020-10-11 08:02:00 INFO: 2020-10-11 08:02:00 INFO: 2020-10-11 08:02:00 INFO: 2020-10-11 09:00:20 INFO: 2020-10-11 09:00:20 INFO: 2020-10-11 09:00:20 INFO: 2020-10-11 09:00:20 INFO: 2020-10-11 09:00:20 INFO: init new order start 2020-10-11 09:00:21 INFO: fetch buckets [{'timestamp': datetime.datetime(2020, 10, 11, 6, 0, tzinfo=tzutc()), 'symbol': 'ETHUSD', 'open': 371.7, 'high': 373.2, 'low': 370.95, 'close': 372.25, 'trades': 1976, 'volume': 1733567, 'vwap': 372.08, 'lastSize': 1, 'turnover': 64502150415, 'homeNotional': 19637.01593219942, 'foreignNotional': 7306501.237963818}, {'timestamp': datetime.datetime(2020, 10, 11, 5, 0, tzinfo=tzutc()), 'symbol': 'ETHUSD', 'open': 370.9, 'high': 371.95, 'low': 370.05, 'close': 371.7, 'trades': 1616, 'volume': 1430244, 'vwap': 371.07, 'lastSize': 486, 'turnover': 53071543250, 'homeNotional': 16194.903938832169, 'foreignNotional': 6009390.215363079}, {'timestamp': datetime.datetime(2020, 10, 11, 4, 0, tzinfo=tzutc()), 'symbol': 'ETHUSD', 'open': 373.15, 'high': 373.2, 'low': 369.8, 'close': 370.9, 'trades': 1757, 'volume': 1710991, 'vwap': 371.37, 'lastSize': 35, 'turnover': 63541011460, 'homeNotional': 19397.323442703888, 'foreignNotional': 7203589.968375307}] 2020-10-11 09:00:21 INFO: prepare candles [CandleItem(low=370.95, high=373.2, open=371.7, close=372.25, color='GREEN'), CandleItem(low=370.05, high=371.95, open=370.9, close=371.7, color='GREEN'), CandleItem(low=369.8, high=373.2, open=373.15, close=370.9, color='RED')] 2020-10-11 09:00:21 INFO: skip by colors first_candle=CandleItem(low=369.8, high=373.2, open=373.15, close=370.9, color='RED') second_candle=CandleItem(low=370.05, high=371.95, open=370.9, close=371.7, color='GREEN') last_candle=CandleItem(low=370.95, high=373.2, open=371.7, close=372.25, color='GREEN') 2020-10-11 09:00:21 INFO: check need new order None 2020-10-11 09:00:21 INFO: init new order end 2020-10-11 09:00:21 INFO: 2020-10-11 09:00:21 INFO: 2020-10-11 09:00:21 INFO: 2020-10-11 09:00:21 INFO: 2020-10-11 09:02:00 INFO: 2020-10-11 09:02:00 INFO: 2020-10-11 09:02:00 INFO: 2020-10-11 09:02:00 INFO: 2020-10-11 09:02:00 INFO: clearing start 2020-10-11 09:02:00 INFO: fetch_orders_for_clearing test order {'orderID': '6f76c0d7-c14d-4225-8724-fc5af958530d', 'clOrdID': '6f9d548ef9a34b9ab381d3e514de3371', 'clOrdLinkID': '', 'account': 605536, 'symbol': 'ETHUSD', 'side': 'Buy', 'simpleOrderQty': None, 'orderQty': 905, 'price': None, 'displayQty': None, 'stopPx': 377.75, 'pegOffsetValue': None, 'pegPriceType': '', 'currency': 'USD', 'settlCurrency': 'XBt', 'ordType': 'Stop', 'timeInForce': 'ImmediateOrCancel', 'execInst': 'LastPrice', 'contingencyType': '', 'exDestination': 'XBME', 'ordStatus': 'New', 'triggered': '', 'workingIndicator': False, 'ordRejReason': '', 'simpleLeavesQty': None, 'leavesQty': 905, 'simpleCumQty': None, 'cumQty': 0, 'avgPx': None, 'multiLegReportingType': 'SingleSecurity', 'text': 'Stop order by trader.py', 'transactTime': datetime.datetime(2020, 10, 10, 5, 47, 33, 864000, tzinfo=tzutc()), 'timestamp': datetime.datetime(2020, 10, 10, 5, 47, 33, 864000, tzinfo=tzutc())} 2020-10-11 09:02:00 INFO: skip by not found init order into storage 2020-10-11 09:02:00 INFO: fetch_orders_for_clearing test order {'orderID': 'e31d79bb-e85c-421d-8a0c-500f1fe615c6', 'clOrdID': 'c14133cfedbb4667b72e2fa887fe300a', 'clOrdLinkID': '', 'account': 605536, 'symbol': 'ETHUSD', 'side': 'Buy', 'simpleOrderQty': None, 'orderQty': 905, 'price': 363.3, 'displayQty': None, 'stopPx': None, 'pegOffsetValue': None, 'pegPriceType': '', 'currency': 'USD', 'settlCurrency': 'XBt', 'ordType': 'Limit', 'timeInForce': 'GoodTillCancel', 'execInst': '', 'contingencyType': '', 'exDestination': 'XBME', 'ordStatus': 'New', 'triggered': '', 'workingIndicator': True, 'ordRejReason': '', 'simpleLeavesQty': None, 'leavesQty': 905, 'simpleCumQty': None, 'cumQty': 0, 'avgPx': None, 'multiLegReportingType': 'SingleSecurity', 'text': 'Profit order by trader.py', 'transactTime': datetime.datetime(2020, 10, 10, 5, 47, 33, 902000, tzinfo=tzutc()), 'timestamp': datetime.datetime(2020, 10, 10, 5, 47, 33, 902000, tzinfo=tzutc())} 2020-10-11 09:02:00 INFO: skip by not found init order into storage 2020-10-11 09:02:00 INFO: clearing end 2020-10-11 09:02:00 INFO: 2020-10-11 09:02:00 INFO: 2020-10-11 09:02:00 INFO: 2020-10-11 09:02:00 INFO: 2020-10-11 10:00:20 INFO: 2020-10-11 10:00:20 INFO: 2020-10-11 10:00:20 INFO: 2020-10-11 10:00:20 INFO: 2020-10-11 10:00:20 INFO: init new order start 2020-10-11 10:00:20 INFO: fetch buckets [{'timestamp': datetime.datetime(2020, 10, 11, 7, 0, tzinfo=tzutc()), 'symbol': 'ETHUSD', 'open': 372.25, 'high': 373.25, 'low': 371.95, 'close': 373.2, 'trades': 1815, 'volume': 1847190, 'vwap': 372.56, 'lastSize': 35, 'turnover': 68818554715, 'homeNotional': 20969.803885562367, 'foreignNotional': 7812470.834345982}, {'timestamp': datetime.datetime(2020, 10, 11, 6, 0, tzinfo=tzutc()), 'symbol': 'ETHUSD', 'open': 371.7, 'high': 373.2, 'low': 370.95, 'close': 372.25, 'trades': 1976, 'volume': 1733567, 'vwap': 372.08, 'lastSize': 1, 'turnover': 64502150415, 'homeNotional': 19637.01593219942, 'foreignNotional': 7306501.237963818}, {'timestamp': datetime.datetime(2020, 10, 11, 5, 0, tzinfo=tzutc()), 'symbol': 'ETHUSD', 'open': 370.9, 'high': 371.95, 'low': 370.05, 'close': 371.7, 'trades': 1616, 'volume': 1430244, 'vwap': 371.07, 'lastSize': 486, 'turnover': 53071543250, 'homeNotional': 16194.903938832169, 'foreignNotional': 6009390.215363079}] 2020-10-11 10:00:20 INFO: prepare candles [CandleItem(low=371.95, high=373.25, open=372.25, close=373.2, color='GREEN'), CandleItem(low=370.95, high=373.2, open=371.7, close=372.25, color='GREEN'), CandleItem(low=370.05, high=371.95, open=370.9, close=371.7, color='GREEN')] 2020-10-11 10:00:20 INFO: skip by colors first_candle=CandleItem(low=370.05, high=371.95, open=370.9, close=371.7, color='GREEN') second_candle=CandleItem(low=370.95, high=373.2, open=371.7, close=372.25, color='GREEN') last_candle=CandleItem(low=371.95, high=373.25, open=372.25, close=373.2, color='GREEN') 2020-10-11 10:00:20 INFO: check need new order None 2020-10-11 10:00:20 INFO: init new order end 2020-10-11 10:00:20 INFO: 2020-10-11 10:00:20 INFO: 2020-10-11 10:00:20 INFO: 2020-10-11 10:00:20 INFO: 2020-10-11 10:02:00 INFO: 2020-10-11 10:02:00 INFO: 2020-10-11 10:02:00 INFO: 2020-10-11 10:02:00 INFO: 2020-10-11 10:02:00 INFO: clearing start 2020-10-11 10:02:00 INFO: fetch_orders_for_clearing test order {'orderID': '6f76c0d7-c14d-4225-8724-fc5af958530d', 'clOrdID': '6f9d548ef9a34b9ab381d3e514de3371', 'clOrdLinkID': '', 'account': 605536, 'symbol': 'ETHUSD', 'side': 'Buy', 'simpleOrderQty': None, 'orderQty': 905, 'price': None, 'displayQty': None, 'stopPx': 377.75, 'pegOffsetValue': None, 'pegPriceType': '', 'currency': 'USD', 'settlCurrency': 'XBt', 'ordType': 'Stop', 'timeInForce': 'ImmediateOrCancel', 'execInst': 'LastPrice', 'contingencyType': '', 'exDestination': 'XBME', 'ordStatus': 'New', 'triggered': '', 'workingIndicator': False, 'ordRejReason': '', 'simpleLeavesQty': None, 'leavesQty': 905, 'simpleCumQty': None, 'cumQty': 0, 'avgPx': None, 'multiLegReportingType': 'SingleSecurity', 'text': 'Stop order by trader.py', 'transactTime': datetime.datetime(2020, 10, 10, 5, 47, 33, 864000, tzinfo=tzutc()), 'timestamp': datetime.datetime(2020, 10, 10, 5, 47, 33, 864000, tzinfo=tzutc())} 2020-10-11 10:02:00 INFO: skip by not found init order into storage 2020-10-11 10:02:00 INFO: fetch_orders_for_clearing test order {'orderID': 'e31d79bb-e85c-421d-8a0c-500f1fe615c6', 'clOrdID': 'c14133cfedbb4667b72e2fa887fe300a', 'clOrdLinkID': '', 'account': 605536, 'symbol': 'ETHUSD', 'side': 'Buy', 'simpleOrderQty': None, 'orderQty': 905, 'price': 363.3, 'displayQty': None, 'stopPx': None, 'pegOffsetValue': None, 'pegPriceType': '', 'currency': 'USD', 'settlCurrency': 'XBt', 'ordType': 'Limit', 'timeInForce': 'GoodTillCancel', 'execInst': '', 'contingencyType': '', 'exDestination': 'XBME', 'ordStatus': 'New', 'triggered': '', 'workingIndicator': True, 'ordRejReason': '', 'simpleLeavesQty': None, 'leavesQty': 905, 'simpleCumQty': None, 'cumQty': 0, 'avgPx': None, 'multiLegReportingType': 'SingleSecurity', 'text': 'Profit order by trader.py', 'transactTime': datetime.datetime(2020, 10, 10, 5, 47, 33, 902000, tzinfo=tzutc()), 'timestamp': datetime.datetime(2020, 10, 10, 5, 47, 33, 902000, tzinfo=tzutc())} 2020-10-11 10:02:00 INFO: skip by not found init order into storage 2020-10-11 10:02:00 INFO: clearing end 2020-10-11 10:02:00 INFO: 2020-10-11 10:02:00 INFO: 2020-10-11 10:02:00 INFO: 2020-10-11 10:02:00 INFO: 2020-10-11 11:00:20 INFO: 2020-10-11 11:00:20 INFO: 2020-10-11 11:00:20 INFO: 2020-10-11 11:00:20 INFO: 2020-10-11 11:00:20 INFO: init new order start 2020-10-11 11:00:20 INFO: fetch buckets [{'timestamp': datetime.datetime(2020, 10, 11, 8, 0, tzinfo=tzutc()), 'symbol': 'ETHUSD', 'open': 373.2, 'high': 374.05, 'low': 372.2, 'close': 372.2, 'trades': 1365, 'volume': 1013048, 'vwap': 373.21, 'lastSize': 1, 'turnover': 37807752855, 'homeNotional': 11511.325246675853, 'foreignNotional': 4296119.858776417}, {'timestamp': datetime.datetime(2020, 10, 11, 7, 0, tzinfo=tzutc()), 'symbol': 'ETHUSD', 'open': 372.25, 'high': 373.25, 'low': 371.95, 'close': 373.2, 'trades': 1815, 'volume': 1847190, 'vwap': 372.56, 'lastSize': 35, 'turnover': 68818554715, 'homeNotional': 20969.803885562367, 'foreignNotional': 7812470.834345982}, {'timestamp': datetime.datetime(2020, 10, 11, 6, 0, tzinfo=tzutc()), 'symbol': 'ETHUSD', 'open': 371.7, 'high': 373.2, 'low': 370.95, 'close': 372.25, 'trades': 1976, 'volume': 1733567, 'vwap': 372.08, 'lastSize': 1, 'turnover': 64502150415, 'homeNotional': 19637.01593219942, 'foreignNotional': 7306501.237963818}] 2020-10-11 11:00:20 INFO: prepare candles [CandleItem(low=372.2, high=374.05, open=373.2, close=372.2, color='RED'), CandleItem(low=371.95, high=373.25, open=372.25, close=373.2, color='GREEN'), CandleItem(low=370.95, high=373.2, open=371.7, close=372.25, color='GREEN')] 2020-10-11 11:00:20 INFO: last_candle=CandleItem(low=372.2, high=374.05, open=373.2, close=372.2, color='RED') 2020-10-11 11:00:20 INFO: apply filters to candles filter_config=InitOrderConfig(take_profit_factor=6.0, clearing_interval=3600, first_candle=CandleFilter(size=None, body=MinMaxFilter(min=0.0, max=100.0)), second_candle=CandleFilter(size=None, body=MinMaxFilter(min=0.0, max=100.0)), last_candle=CandleFilter(size=MinMaxFilter(min=0.4, max=0.59), body=MinMaxFilter(min=0.0, max=100.0))) 2020-10-11 11:00:20 INFO: apply filter CandleFilter(size=MinMaxFilter(min=0.4, max=0.59), body=MinMaxFilter(min=0.0, max=100.0)) to candle=CandleItem(low=372.2, high=374.05, open=373.2, close=372.2, color='RED') 2020-10-11 11:00:20 INFO: apply filter CandleFilter(size=None, body=MinMaxFilter(min=0.0, max=100.0)) to candle=CandleItem(low=371.95, high=373.25, open=372.25, close=373.2, color='GREEN') 2020-10-11 11:00:20 INFO: apply filter CandleFilter(size=None, body=MinMaxFilter(min=0.0, max=100.0)) to candle=CandleItem(low=370.95, high=373.2, open=371.7, close=372.25, color='GREEN') 2020-10-11 11:00:20 INFO: hit candle order=OrderProperties(candle=CandleItem(low=372.2, high=374.05, open=373.2, close=372.2, color='RED'), take_profit_factor=6.0, clearing_interval=3600) 2020-10-11 11:00:20 INFO: check need new order OrderProperties(candle=CandleItem(low=372.2, high=374.05, open=373.2, close=372.2, color='RED'), take_profit_factor=6.0, clearing_interval=3600) 2020-10-11 11:00:20 INFO: place order: start candle=CandleItem(low=372.2, high=374.05, open=373.2, close=372.2, color='RED') ticker='ETHUSD' price_offset=0.1 2020-10-11 11:00:20 INFO: place order: side_factor=1 init_trigger_price=372.15 init_order_price=372.09999999999997 stop_price_offset=0.0 candle.size=1.8500000000000227 stop_price=374.05 take_price=360.99999999999983 2020-10-11 11:00:20 INFO: place order round: side_factor=1 init_trigger_price=Decimal('372.1499999999999772626324556767940521240234375') init_order_price=Decimal('372.09999999999996589394868351519107818603515625') stop_price_offset=0.0 candle.size=1.8500000000000227 stop_price=Decimal('374.05000000000001136868377216160297393798828125') take_price=Decimal('360.99999999999982946974341757595539093017578125') 2020-10-11 11:00:20 INFO: place order: compute qty=-1000 2020-10-11 11:00:20 INFO: place order: save order to db c294b1822c0943dfa099c17f4350e4ce; response=True 2020-10-11 11:00:20 INFO: post order to exchange resp={'orderID': '6d22bcf5-ac84-4d8c-9411-ad81866422be', 'clOrdID': 'c294b1822c0943dfa099c17f4350e4ce', 'clOrdLinkID': '', 'account': 605536, 'symbol': 'ETHUSD', 'side': 'Sell', 'simpleOrderQty': None, 'orderQty': 1000, 'price': 372.1, 'displayQty': None, 'stopPx': 372.15, 'pegOffsetValue': None, 'pegPriceType': '', 'currency': 'USD', 'settlCurrency': 'XBt', 'ordType': 'StopLimit', 'timeInForce': 'GoodTillCancel', 'execInst': 'LastPrice', 'contingencyType': '', 'exDestination': 'XBME', 'ordStatus': 'New', 'triggered': '', 'workingIndicator': False, 'ordRejReason': '', 'simpleLeavesQty': None, 'leavesQty': 1000, 'simpleCumQty': None, 'cumQty': 0, 'avgPx': None, 'multiLegReportingType': 'SingleSecurity', 'text': 'Init order by supervisor.py', 'transactTime': datetime.datetime(2020, 10, 11, 8, 0, 20, 681000, tzinfo=tzutc()), 'timestamp': datetime.datetime(2020, 10, 11, 8, 0, 20, 681000, tzinfo=tzutc())} 2020-10-11 11:00:20 INFO: place new init order {'qty': -1000, 'init_price': Decimal('372.1499999999999772626324556767940521240234375'), 'stop_price': Decimal('374.05000000000001136868377216160297393798828125'), 'take_price': Decimal('360.99999999999982946974341757595539093017578125'), 'order_uid': 'c294b1822c0943dfa099c17f4350e4ce', 'response': {'orderID': '6d22bcf5-ac84-4d8c-9411-ad81866422be', 'clOrdID': 'c294b1822c0943dfa099c17f4350e4ce', 'clOrdLinkID': '', 'account': 605536, 'symbol': 'ETHUSD', 'side': 'Sell', 'simpleOrderQty': None, 'orderQty': 1000, 'price': 372.1, 'displayQty': None, 'stopPx': 372.15, 'pegOffsetValue': None, 'pegPriceType': '', 'currency': 'USD', 'settlCurrency': 'XBt', 'ordType': 'StopLimit', 'timeInForce': 'GoodTillCancel', 'execInst': 'LastPrice', 'contingencyType': '', 'exDestination': 'XBME', 'ordStatus': 'New', 'triggered': '', 'workingIndicator': False, 'ordRejReason': '', 'simpleLeavesQty': None, 'leavesQty': 1000, 'simpleCumQty': None, 'cumQty': 0, 'avgPx': None, 'multiLegReportingType': 'SingleSecurity', 'text': 'Init order by supervisor.py', 'transactTime': datetime.datetime(2020, 10, 11, 8, 0, 20, 681000, tzinfo=tzutc()), 'timestamp': datetime.datetime(2020, 10, 11, 8, 0, 20, 681000, tzinfo=tzutc())}} 2020-10-11 11:00:20 INFO: init new order end 2020-10-11 11:00:20 INFO: 2020-10-11 11:00:20 INFO: 2020-10-11 11:00:20 INFO: 2020-10-11 11:00:20 INFO: 2020-10-11 11:00:20 INFO: process event {'orderID': '6d22bcf5-ac84-4d8c-9411-ad81866422be', 'clOrdID': 'c294b1822c0943dfa099c17f4350e4ce', 'clOrdLinkID': '', 'account': 605536, 'symbol': 'ETHUSD', 'side': 'Sell', 'simpleOrderQty': None, 'orderQty': 1000, 'price': 372.1, 'displayQty': None, 'stopPx': 372.15, 'pegOffsetValue': None, 'pegPriceType': '', 'currency': 'USD', 'settlCurrency': 'XBt', 'ordType': 'StopLimit', 'timeInForce': 'GoodTillCancel', 'execInst': 'LastPrice', 'contingencyType': '', 'exDestination': 'XBME', 'ordStatus': 'New', 'triggered': '', 'workingIndicator': False, 'ordRejReason': '', 'simpleLeavesQty': None, 'leavesQty': 1000, 'simpleCumQty': None, 'cumQty': 0, 'avgPx': None, 'multiLegReportingType': 'SingleSecurity', 'text': 'Init order by supervisor.py', 'transactTime': '2020-10-11T08:00:20.681Z', 'timestamp': '2020-10-11T08:00:20.681Z'} 2020-10-11 11:00:20 INFO: skip event c294b1822c0943dfa099c17f4350e4ce New 2020-10-11 11:02:00 INFO: 2020-10-11 11:02:00 INFO: 2020-10-11 11:02:00 INFO: 2020-10-11 11:02:00 INFO: 2020-10-11 11:02:00 INFO: clearing start 2020-10-11 11:02:00 INFO: fetch_orders_for_clearing test order {'orderID': '6f76c0d7-c14d-4225-8724-fc5af958530d', 'clOrdID': '6f9d548ef9a34b9ab381d3e514de3371', 'clOrdLinkID': '', 'account': 605536, 'symbol': 'ETHUSD', 'side': 'Buy', 'simpleOrderQty': None, 'orderQty': 905, 'price': None, 'displayQty': None, 'stopPx': 377.75, 'pegOffsetValue': None, 'pegPriceType': '', 'currency': 'USD', 'settlCurrency': 'XBt', 'ordType': 'Stop', 'timeInForce': 'ImmediateOrCancel', 'execInst': 'LastPrice', 'contingencyType': '', 'exDestination': 'XBME', 'ordStatus': 'New', 'triggered': '', 'workingIndicator': False, 'ordRejReason': '', 'simpleLeavesQty': None, 'leavesQty': 905, 'simpleCumQty': None, 'cumQty': 0, 'avgPx': None, 'multiLegReportingType': 'SingleSecurity', 'text': 'Stop order by trader.py', 'transactTime': datetime.datetime(2020, 10, 10, 5, 47, 33, 864000, tzinfo=tzutc()), 'timestamp': datetime.datetime(2020, 10, 10, 5, 47, 33, 864000, tzinfo=tzutc())} 2020-10-11 11:02:00 INFO: skip by not found init order into storage 2020-10-11 11:02:00 INFO: fetch_orders_for_clearing test order {'orderID': 'e31d79bb-e85c-421d-8a0c-500f1fe615c6', 'clOrdID': 'c14133cfedbb4667b72e2fa887fe300a', 'clOrdLinkID': '', 'account': 605536, 'symbol': 'ETHUSD', 'side': 'Buy', 'simpleOrderQty': None, 'orderQty': 905, 'price': 363.3, 'displayQty': None, 'stopPx': None, 'pegOffsetValue': None, 'pegPriceType': '', 'currency': 'USD', 'settlCurrency': 'XBt', 'ordType': 'Limit', 'timeInForce': 'GoodTillCancel', 'execInst': '', 'contingencyType': '', 'exDestination': 'XBME', 'ordStatus': 'New', 'triggered': '', 'workingIndicator': True, 'ordRejReason': '', 'simpleLeavesQty': None, 'leavesQty': 905, 'simpleCumQty': None, 'cumQty': 0, 'avgPx': None, 'multiLegReportingType': 'SingleSecurity', 'text': 'Profit order by trader.py', 'transactTime': datetime.datetime(2020, 10, 10, 5, 47, 33, 902000, tzinfo=tzutc()), 'timestamp': datetime.datetime(2020, 10, 10, 5, 47, 33, 902000, tzinfo=tzutc())} 2020-10-11 11:02:00 INFO: skip by not found init order into storage 2020-10-11 11:02:00 INFO: fetch_orders_for_clearing test order {'orderID': '6d22bcf5-ac84-4d8c-9411-ad81866422be', 'clOrdID': 'c294b1822c0943dfa099c17f4350e4ce', 'clOrdLinkID': '', 'account': 605536, 'symbol': 'ETHUSD', 'side': 'Sell', 'simpleOrderQty': None, 'orderQty': 1000, 'price': 372.1, 'displayQty': None, 'stopPx': 372.15, 'pegOffsetValue': None, 'pegPriceType': '', 'currency': 'USD', 'settlCurrency': 'XBt', 'ordType': 'StopLimit', 'timeInForce': 'GoodTillCancel', 'execInst': 'LastPrice', 'contingencyType': '', 'exDestination': 'XBME', 'ordStatus': 'New', 'triggered': '', 'workingIndicator': False, 'ordRejReason': '', 'simpleLeavesQty': None, 'leavesQty': 1000, 'simpleCumQty': None, 'cumQty': 0, 'avgPx': None, 'multiLegReportingType': 'SingleSecurity', 'text': 'Init order by supervisor.py', 'transactTime': datetime.datetime(2020, 10, 11, 8, 0, 20, 681000, tzinfo=tzutc()), 'timestamp': datetime.datetime(2020, 10, 11, 8, 0, 20, 681000, tzinfo=tzutc())} 2020-10-11 11:02:00 INFO: order time=2020-10-11 08:00:20.681000+00:00; delta from now UTC=0:01:40.203335 time_delta.total_seconds()=100.203335; time_diff_offset='3600' 2020-10-11 11:02:00 INFO: skip by time diff 2020-10-11 08:00:20.681000+00:00 2020-10-11 11:02:00 INFO: clearing end 2020-10-11 11:02:00 INFO: 2020-10-11 11:02:00 INFO: 2020-10-11 11:02:00 INFO: 2020-10-11 11:02:00 INFO: 2020-10-11 11:06:04 INFO: process event {'orderID': '6d22bcf5-ac84-4d8c-9411-ad81866422be', 'ordStatus': 'Filled', 'triggered': 'StopOrderTriggered', 'leavesQty': 0, 'cumQty': 1000, 'avgPx': 372.15, 'text': 'Triggered: Order stop price reached\nInit order by supervisor.py', 'transactTime': '2020-10-11T08:06:04.126Z', 'timestamp': '2020-10-11T08:06:04.126Z', 'clOrdID': 'c294b1822c0943dfa099c17f4350e4ce', 'account': 605536, 'symbol': 'ETHUSD'} 2020-10-11 11:06:04 INFO: add new event={'uid': 'c294b1822c0943dfa099c17f4350e4ce', 'status': 'Filled'} 2020-10-11 11:06:04 INFO: 2020-10-11 11:06:04 INFO: 2020-10-11 11:06:04 INFO: 2020-10-11 11:06:04 INFO: 2020-10-11 11:06:04 INFO: process event start 2020-10-11 11:06:04 INFO: fetch new order event c294b1822c0943dfa099c17f4350e4ce 2020-10-11 11:06:04 INFO: fetch orders by event init={'stop': '374.05000000000001136868377216160297393798828125', 'take': '360.99999999999982946974341757595539093017578125', 'qty': '1000', 'color': 'RED', 'ticker': 'ETHUSD', 'clearing_offset': '3600'} profit_pair=None 2020-10-11 11:06:04 INFO: process init order filled 2020-10-11 11:06:04 INFO: save profit orders to storage stop=0893ef3b832b43fe8079e7765d210ec4 take=7763071a2a884ebd865f04b7d0285af6 2020-10-11 11:06:04 INFO: place profit orders take_price=360.99999999999982946974341757595539093017578125, stop_price=374.05000000000001136868377216160297393798828125, qty=1000, color=RED, ticker=ETHUSD 0893ef3b832b43fe8079e7765d210ec4 7763071a2a884ebd865f04b7d0285af6 2020-10-11 11:06:04 INFO: place stop order ETHUSD: qty=1000, stop_price=374.05000000000001136868377216160297393798828125, stop_uid=0893ef3b832b43fe8079e7765d210ec4 2020-10-11 11:06:04 INFO: exchange resp for stop order={'orderID': 'fdd81632-8499-434b-a93d-f0cc35c5e1ad', 'clOrdID': '0893ef3b832b43fe8079e7765d210ec4', 'clOrdLinkID': '', 'account': 605536, 'symbol': 'ETHUSD', 'side': 'Buy', 'simpleOrderQty': None, 'orderQty': 1000, 'price': None, 'displayQty': None, 'stopPx': 374.05, 'pegOffsetValue': None, 'pegPriceType': '', 'currency': 'USD', 'settlCurrency': 'XBt', 'ordType': 'Stop', 'timeInForce': 'ImmediateOrCancel', 'execInst': 'LastPrice', 'contingencyType': '', 'exDestination': 'XBME', 'ordStatus': 'New', 'triggered': '', 'workingIndicator': False, 'ordRejReason': '', 'simpleLeavesQty': None, 'leavesQty': 1000, 'simpleCumQty': None, 'cumQty': 0, 'avgPx': None, 'multiLegReportingType': 'SingleSecurity', 'text': 'Stop order by trader.py', 'transactTime': datetime.datetime(2020, 10, 11, 8, 6, 4, 606000, tzinfo=tzutc()), 'timestamp': datetime.datetime(2020, 10, 11, 8, 6, 4, 606000, tzinfo=tzutc())} 2020-10-11 11:06:04 INFO: process event {'orderID': 'fdd81632-8499-434b-a93d-f0cc35c5e1ad', 'clOrdID': '0893ef3b832b43fe8079e7765d210ec4', 'clOrdLinkID': '', 'account': 605536, 'symbol': 'ETHUSD', 'side': 'Buy', 'simpleOrderQty': None, 'orderQty': 1000, 'price': None, 'displayQty': None, 'stopPx': 374.05, 'pegOffsetValue': None, 'pegPriceType': '', 'currency': 'USD', 'settlCurrency': 'XBt', 'ordType': 'Stop', 'timeInForce': 'ImmediateOrCancel', 'execInst': 'LastPrice', 'contingencyType': '', 'exDestination': 'XBME', 'ordStatus': 'New', 'triggered': '', 'workingIndicator': False, 'ordRejReason': '', 'simpleLeavesQty': None, 'leavesQty': 1000, 'simpleCumQty': None, 'cumQty': 0, 'avgPx': None, 'multiLegReportingType': 'SingleSecurity', 'text': 'Stop order by trader.py', 'transactTime': '2020-10-11T08:06:04.606Z', 'timestamp': '2020-10-11T08:06:04.606Z'} 2020-10-11 11:06:04 INFO: place limit order ETHUSD: qty=1000, price=360.99999999999982946974341757595539093017578125, take_uid=7763071a2a884ebd865f04b7d0285af6 2020-10-11 11:06:04 INFO: skip event 0893ef3b832b43fe8079e7765d210ec4 New 2020-10-11 11:06:04 INFO: exchange resp for take profit order={'orderID': '6cbc4bbf-0b94-4b41-98a9-7581384cc929', 'clOrdID': '7763071a2a884ebd865f04b7d0285af6', 'clOrdLinkID': '', 'account': 605536, 'symbol': 'ETHUSD', 'side': 'Buy', 'simpleOrderQty': None, 'orderQty': 1000, 'price': 361.0, 'displayQty': None, 'stopPx': None, 'pegOffsetValue': None, 'pegPriceType': '', 'currency': 'USD', 'settlCurrency': 'XBt', 'ordType': 'Limit', 'timeInForce': 'GoodTillCancel', 'execInst': '', 'contingencyType': '', 'exDestination': 'XBME', 'ordStatus': 'New', 'triggered': '', 'workingIndicator': True, 'ordRejReason': '', 'simpleLeavesQty': None, 'leavesQty': 1000, 'simpleCumQty': None, 'cumQty': 0, 'avgPx': None, 'multiLegReportingType': 'SingleSecurity', 'text': 'Profit order by trader.py', 'transactTime': datetime.datetime(2020, 10, 11, 8, 6, 4, 856000, tzinfo=tzutc()), 'timestamp': datetime.datetime(2020, 10, 11, 8, 6, 4, 856000, tzinfo=tzutc())} 2020-10-11 11:06:04 INFO: place profit orders={'stop': {'response': {'orderID': 'fdd81632-8499-434b-a93d-f0cc35c5e1ad', 'clOrdID': '0893ef3b832b43fe8079e7765d210ec4', 'clOrdLinkID': '', 'account': 605536, 'symbol': 'ETHUSD', 'side': 'Buy', 'simpleOrderQty': None, 'orderQty': 1000, 'price': None, 'displayQty': None, 'stopPx': 374.05, 'pegOffsetValue': None, 'pegPriceType': '', 'currency': 'USD', 'settlCurrency': 'XBt', 'ordType': 'Stop', 'timeInForce': 'ImmediateOrCancel', 'execInst': 'LastPrice', 'contingencyType': '', 'exDestination': 'XBME', 'ordStatus': 'New', 'triggered': '', 'workingIndicator': False, 'ordRejReason': '', 'simpleLeavesQty': None, 'leavesQty': 1000, 'simpleCumQty': None, 'cumQty': 0, 'avgPx': None, 'multiLegReportingType': 'SingleSecurity', 'text': 'Stop order by trader.py', 'transactTime': datetime.datetime(2020, 10, 11, 8, 6, 4, 606000, tzinfo=tzutc()), 'timestamp': datetime.datetime(2020, 10, 11, 8, 6, 4, 606000, tzinfo=tzutc())}, 'qty': Decimal('1000'), 'uid': '0893ef3b832b43fe8079e7765d210ec4', 'price': Decimal('374.05000000000001136868377216160297393798828125')}, 'take': {'response': {'orderID': '6cbc4bbf-0b94-4b41-98a9-7581384cc929', 'clOrdID': '7763071a2a884ebd865f04b7d0285af6', 'clOrdLinkID': '', 'account': 605536, 'symbol': 'ETHUSD', 'side': 'Buy', 'simpleOrderQty': None, 'orderQty': 1000, 'price': 361.0, 'displayQty': None, 'stopPx': None, 'pegOffsetValue': None, 'pegPriceType': '', 'currency': 'USD', 'settlCurrency': 'XBt', 'ordType': 'Limit', 'timeInForce': 'GoodTillCancel', 'execInst': '', 'contingencyType': '', 'exDestination': 'XBME', 'ordStatus': 'New', 'triggered': '', 'workingIndicator': True, 'ordRejReason': '', 'simpleLeavesQty': None, 'leavesQty': 1000, 'simpleCumQty': None, 'cumQty': 0, 'avgPx': None, 'multiLegReportingType': 'SingleSecurity', 'text': 'Profit order by trader.py', 'transactTime': datetime.datetime(2020, 10, 11, 8, 6, 4, 856000, tzinfo=tzutc()), 'timestamp': datetime.datetime(2020, 10, 11, 8, 6, 4, 856000, tzinfo=tzutc())}, 'qty': Decimal('1000'), 'uid': '7763071a2a884ebd865f04b7d0285af6', 'price': Decimal('360.99999999999982946974341757595539093017578125')}} 2020-10-11 11:06:04 INFO: rm init order from db c294b1822c0943dfa099c17f4350e4ce 2020-10-11 11:06:04 INFO: end process event_processing_result='proceed init order' 2020-10-11 11:06:04 INFO: 2020-10-11 11:06:04 INFO: 2020-10-11 11:06:04 INFO: 2020-10-11 11:06:04 INFO: 2020-10-11 11:06:04 INFO: process event {'orderID': '6cbc4bbf-0b94-4b41-98a9-7581384cc929', 'clOrdID': '7763071a2a884ebd865f04b7d0285af6', 'clOrdLinkID': '', 'account': 605536, 'symbol': 'ETHUSD', 'side': 'Buy', 'simpleOrderQty': None, 'orderQty': 1000, 'price': 361, 'displayQty': None, 'stopPx': None, 'pegOffsetValue': None, 'pegPriceType': '', 'currency': 'USD', 'settlCurrency': 'XBt', 'ordType': 'Limit', 'timeInForce': 'GoodTillCancel', 'execInst': '', 'contingencyType': '', 'exDestination': 'XBME', 'ordStatus': 'New', 'triggered': '', 'workingIndicator': True, 'ordRejReason': '', 'simpleLeavesQty': None, 'leavesQty': 1000, 'simpleCumQty': None, 'cumQty': 0, 'avgPx': None, 'multiLegReportingType': 'SingleSecurity', 'text': 'Profit order by trader.py', 'transactTime': '2020-10-11T08:06:04.856Z', 'timestamp': '2020-10-11T08:06:04.856Z'} 2020-10-11 11:06:04 INFO: skip event 7763071a2a884ebd865f04b7d0285af6 New 2020-10-11 12:00:20 INFO: 2020-10-11 12:00:20 INFO: 2020-10-11 12:00:20 INFO: 2020-10-11 12:00:20 INFO: 2020-10-11 12:00:20 INFO: init new order start 2020-10-11 12:00:21 INFO: fetch buckets [{'timestamp': datetime.datetime(2020, 10, 11, 9, 0, tzinfo=tzutc()), 'symbol': 'ETHUSD', 'open': 372.2, 'high': 373.5, 'low': 371.7, 'close': 372.45, 'trades': 1660, 'volume': 1501756, 'vwap': 372.48, 'lastSize': 5856, 'turnover': 55937164450, 'homeNotional': 17051.698744524245, 'foreignNotional': 6351392.080602312}, {'timestamp': datetime.datetime(2020, 10, 11, 8, 0, tzinfo=tzutc()), 'symbol': 'ETHUSD', 'open': 373.2, 'high': 374.05, 'low': 372.2, 'close': 372.2, 'trades': 1365, 'volume': 1013048, 'vwap': 373.21, 'lastSize': 1, 'turnover': 37807752855, 'homeNotional': 11511.325246675853, 'foreignNotional': 4296119.858776417}, {'timestamp': datetime.datetime(2020, 10, 11, 7, 0, tzinfo=tzutc()), 'symbol': 'ETHUSD', 'open': 372.25, 'high': 373.25, 'low': 371.95, 'close': 373.2, 'trades': 1815, 'volume': 1847190, 'vwap': 372.56, 'lastSize': 35, 'turnover': 68818554715, 'homeNotional': 20969.803885562367, 'foreignNotional': 7812470.834345982}] 2020-10-11 12:00:21 INFO: prepare candles [CandleItem(low=371.7, high=373.5, open=372.2, close=372.45, color='GREEN'), CandleItem(low=372.2, high=374.05, open=373.2, close=372.2, color='RED'), CandleItem(low=371.95, high=373.25, open=372.25, close=373.2, color='GREEN')] 2020-10-11 12:00:21 INFO: skip by colors first_candle=CandleItem(low=371.95, high=373.25, open=372.25, close=373.2, color='GREEN') second_candle=CandleItem(low=372.2, high=374.05, open=373.2, close=372.2, color='RED') last_candle=CandleItem(low=371.7, high=373.5, open=372.2, close=372.45, color='GREEN') 2020-10-11 12:00:21 INFO: check need new order None 2020-10-11 12:00:21 INFO: init new order end 2020-10-11 12:00:21 INFO: 2020-10-11 12:00:21 INFO: 2020-10-11 12:00:21 INFO: 2020-10-11 12:00:21 INFO: 2020-10-11 12:02:00 INFO: 2020-10-11 12:02:00 INFO: 2020-10-11 12:02:00 INFO: 2020-10-11 12:02:00 INFO: 2020-10-11 12:02:00 INFO: clearing start 2020-10-11 12:02:00 INFO: fetch_orders_for_clearing test order {'orderID': '6f76c0d7-c14d-4225-8724-fc5af958530d', 'clOrdID': '6f9d548ef9a34b9ab381d3e514de3371', 'clOrdLinkID': '', 'account': 605536, 'symbol': 'ETHUSD', 'side': 'Buy', 'simpleOrderQty': None, 'orderQty': 905, 'price': None, 'displayQty': None, 'stopPx': 377.75, 'pegOffsetValue': None, 'pegPriceType': '', 'currency': 'USD', 'settlCurrency': 'XBt', 'ordType': 'Stop', 'timeInForce': 'ImmediateOrCancel', 'execInst': 'LastPrice', 'contingencyType': '', 'exDestination': 'XBME', 'ordStatus': 'New', 'triggered': '', 'workingIndicator': False, 'ordRejReason': '', 'simpleLeavesQty': None, 'leavesQty': 905, 'simpleCumQty': None, 'cumQty': 0, 'avgPx': None, 'multiLegReportingType': 'SingleSecurity', 'text': 'Stop order by trader.py', 'transactTime': datetime.datetime(2020, 10, 10, 5, 47, 33, 864000, tzinfo=tzutc()), 'timestamp': datetime.datetime(2020, 10, 10, 5, 47, 33, 864000, tzinfo=tzutc())} 2020-10-11 12:02:00 INFO: skip by not found init order into storage 2020-10-11 12:02:00 INFO: fetch_orders_for_clearing test order {'orderID': 'e31d79bb-e85c-421d-8a0c-500f1fe615c6', 'clOrdID': 'c14133cfedbb4667b72e2fa887fe300a', 'clOrdLinkID': '', 'account': 605536, 'symbol': 'ETHUSD', 'side': 'Buy', 'simpleOrderQty': None, 'orderQty': 905, 'price': 363.3, 'displayQty': None, 'stopPx': None, 'pegOffsetValue': None, 'pegPriceType': '', 'currency': 'USD', 'settlCurrency': 'XBt', 'ordType': 'Limit', 'timeInForce': 'GoodTillCancel', 'execInst': '', 'contingencyType': '', 'exDestination': 'XBME', 'ordStatus': 'New', 'triggered': '', 'workingIndicator': True, 'ordRejReason': '', 'simpleLeavesQty': None, 'leavesQty': 905, 'simpleCumQty': None, 'cumQty': 0, 'avgPx': None, 'multiLegReportingType': 'SingleSecurity', 'text': 'Profit order by trader.py', 'transactTime': datetime.datetime(2020, 10, 10, 5, 47, 33, 902000, tzinfo=tzutc()), 'timestamp': datetime.datetime(2020, 10, 10, 5, 47, 33, 902000, tzinfo=tzutc())} 2020-10-11 12:02:00 INFO: skip by not found init order into storage 2020-10-11 12:02:00 INFO: fetch_orders_for_clearing test order {'orderID': 'fdd81632-8499-434b-a93d-f0cc35c5e1ad', 'clOrdID': '0893ef3b832b43fe8079e7765d210ec4', 'clOrdLinkID': '', 'account': 605536, 'symbol': 'ETHUSD', 'side': 'Buy', 'simpleOrderQty': None, 'orderQty': 1000, 'price': None, 'displayQty': None, 'stopPx': 374.05, 'pegOffsetValue': None, 'pegPriceType': '', 'currency': 'USD', 'settlCurrency': 'XBt', 'ordType': 'Stop', 'timeInForce': 'ImmediateOrCancel', 'execInst': 'LastPrice', 'contingencyType': '', 'exDestination': 'XBME', 'ordStatus': 'New', 'triggered': '', 'workingIndicator': False, 'ordRejReason': '', 'simpleLeavesQty': None, 'leavesQty': 1000, 'simpleCumQty': None, 'cumQty': 0, 'avgPx': None, 'multiLegReportingType': 'SingleSecurity', 'text': 'Stop order by trader.py', 'transactTime': datetime.datetime(2020, 10, 11, 8, 6, 4, 606000, tzinfo=tzutc()), 'timestamp': datetime.datetime(2020, 10, 11, 8, 6, 4, 606000, tzinfo=tzutc())} 2020-10-11 12:02:00 INFO: skip by not found init order into storage 2020-10-11 12:02:00 INFO: fetch_orders_for_clearing test order {'orderID': '6cbc4bbf-0b94-4b41-98a9-7581384cc929', 'clOrdID': '7763071a2a884ebd865f04b7d0285af6', 'clOrdLinkID': '', 'account': 605536, 'symbol': 'ETHUSD', 'side': 'Buy', 'simpleOrderQty': None, 'orderQty': 1000, 'price': 361.0, 'displayQty': None, 'stopPx': None, 'pegOffsetValue': None, 'pegPriceType': '', 'currency': 'USD', 'settlCurrency': 'XBt', 'ordType': 'Limit', 'timeInForce': 'GoodTillCancel', 'execInst': '', 'contingencyType': '', 'exDestination': 'XBME', 'ordStatus': 'New', 'triggered': '', 'workingIndicator': True, 'ordRejReason': '', 'simpleLeavesQty': None, 'leavesQty': 1000, 'simpleCumQty': None, 'cumQty': 0, 'avgPx': None, 'multiLegReportingType': 'SingleSecurity', 'text': 'Profit order by trader.py', 'transactTime': datetime.datetime(2020, 10, 11, 8, 6, 4, 856000, tzinfo=tzutc()), 'timestamp': datetime.datetime(2020, 10, 11, 8, 6, 4, 856000, tzinfo=tzutc())} 2020-10-11 12:02:00 INFO: skip by not found init order into storage 2020-10-11 12:02:00 INFO: clearing end 2020-10-11 12:02:00 INFO: 2020-10-11 12:02:00 INFO: 2020-10-11 12:02:00 INFO: 2020-10-11 12:02:00 INFO: 2020-10-11 13:00:20 INFO: 2020-10-11 13:00:20 INFO: 2020-10-11 13:00:20 INFO: 2020-10-11 13:00:20 INFO: 2020-10-11 13:00:20 INFO: init new order start 2020-10-11 13:00:20 INFO: fetch buckets [{'timestamp': datetime.datetime(2020, 10, 11, 10, 0, tzinfo=tzutc()), 'symbol': 'ETHUSD', 'open': 372.45, 'high': 373.0, 'low': 371.5, 'close': 372.8, 'trades': 1602, 'volume': 1941056, 'vwap': 372.17, 'lastSize': 200, 'turnover': 72239007565, 'homeNotional': 22024.109676457476, 'foreignNotional': 8196571.761892788}, {'timestamp': datetime.datetime(2020, 10, 11, 9, 0, tzinfo=tzutc()), 'symbol': 'ETHUSD', 'open': 372.2, 'high': 373.5, 'low': 371.7, 'close': 372.45, 'trades': 1660, 'volume': 1501756, 'vwap': 372.48, 'lastSize': 5856, 'turnover': 55937164450, 'homeNotional': 17051.698744524245, 'foreignNotional': 6351392.080602312}, {'timestamp': datetime.datetime(2020, 10, 11, 8, 0, tzinfo=tzutc()), 'symbol': 'ETHUSD', 'open': 373.2, 'high': 374.05, 'low': 372.2, 'close': 372.2, 'trades': 1365, 'volume': 1013048, 'vwap': 373.21, 'lastSize': 1, 'turnover': 37807752855, 'homeNotional': 11511.325246675853, 'foreignNotional': 4296119.858776417}] 2020-10-11 13:00:20 INFO: prepare candles [CandleItem(low=371.5, high=373.0, open=372.45, close=372.8, color='GREEN'), CandleItem(low=371.7, high=373.5, open=372.2, close=372.45, color='GREEN'), CandleItem(low=372.2, high=374.05, open=373.2, close=372.2, color='RED')] 2020-10-11 13:00:20 INFO: skip by colors first_candle=CandleItem(low=372.2, high=374.05, open=373.2, close=372.2, color='RED') second_candle=CandleItem(low=371.7, high=373.5, open=372.2, close=372.45, color='GREEN') last_candle=CandleItem(low=371.5, high=373.0, open=372.45, close=372.8, color='GREEN') 2020-10-11 13:00:20 INFO: check need new order None 2020-10-11 13:00:20 INFO: init new order end 2020-10-11 13:00:20 INFO: 2020-10-11 13:00:20 INFO: 2020-10-11 13:00:20 INFO: 2020-10-11 13:00:20 INFO: 2020-10-11 13:02:00 INFO: 2020-10-11 13:02:00 INFO: 2020-10-11 13:02:00 INFO: 2020-10-11 13:02:00 INFO: 2020-10-11 13:02:00 INFO: clearing start 2020-10-11 13:02:00 INFO: fetch_orders_for_clearing test order {'orderID': '6f76c0d7-c14d-4225-8724-fc5af958530d', 'clOrdID': '6f9d548ef9a34b9ab381d3e514de3371', 'clOrdLinkID': '', 'account': 605536, 'symbol': 'ETHUSD', 'side': 'Buy', 'simpleOrderQty': None, 'orderQty': 905, 'price': None, 'displayQty': None, 'stopPx': 377.75, 'pegOffsetValue': None, 'pegPriceType': '', 'currency': 'USD', 'settlCurrency': 'XBt', 'ordType': 'Stop', 'timeInForce': 'ImmediateOrCancel', 'execInst': 'LastPrice', 'contingencyType': '', 'exDestination': 'XBME', 'ordStatus': 'New', 'triggered': '', 'workingIndicator': False, 'ordRejReason': '', 'simpleLeavesQty': None, 'leavesQty': 905, 'simpleCumQty': None, 'cumQty': 0, 'avgPx': None, 'multiLegReportingType': 'SingleSecurity', 'text': 'Stop order by trader.py', 'transactTime': datetime.datetime(2020, 10, 10, 5, 47, 33, 864000, tzinfo=tzutc()), 'timestamp': datetime.datetime(2020, 10, 10, 5, 47, 33, 864000, tzinfo=tzutc())} 2020-10-11 13:02:00 INFO: skip by not found init order into storage 2020-10-11 13:02:00 INFO: fetch_orders_for_clearing test order {'orderID': 'e31d79bb-e85c-421d-8a0c-500f1fe615c6', 'clOrdID': 'c14133cfedbb4667b72e2fa887fe300a', 'clOrdLinkID': '', 'account': 605536, 'symbol': 'ETHUSD', 'side': 'Buy', 'simpleOrderQty': None, 'orderQty': 905, 'price': 363.3, 'displayQty': None, 'stopPx': None, 'pegOffsetValue': None, 'pegPriceType': '', 'currency': 'USD', 'settlCurrency': 'XBt', 'ordType': 'Limit', 'timeInForce': 'GoodTillCancel', 'execInst': '', 'contingencyType': '', 'exDestination': 'XBME', 'ordStatus': 'New', 'triggered': '', 'workingIndicator': True, 'ordRejReason': '', 'simpleLeavesQty': None, 'leavesQty': 905, 'simpleCumQty': None, 'cumQty': 0, 'avgPx': None, 'multiLegReportingType': 'SingleSecurity', 'text': 'Profit order by trader.py', 'transactTime': datetime.datetime(2020, 10, 10, 5, 47, 33, 902000, tzinfo=tzutc()), 'timestamp': datetime.datetime(2020, 10, 10, 5, 47, 33, 902000, tzinfo=tzutc())} 2020-10-11 13:02:00 INFO: skip by not found init order into storage 2020-10-11 13:02:00 INFO: fetch_orders_for_clearing test order {'orderID': 'fdd81632-8499-434b-a93d-f0cc35c5e1ad', 'clOrdID': '0893ef3b832b43fe8079e7765d210ec4', 'clOrdLinkID': '', 'account': 605536, 'symbol': 'ETHUSD', 'side': 'Buy', 'simpleOrderQty': None, 'orderQty': 1000, 'price': None, 'displayQty': None, 'stopPx': 374.05, 'pegOffsetValue': None, 'pegPriceType': '', 'currency': 'USD', 'settlCurrency': 'XBt', 'ordType': 'Stop', 'timeInForce': 'ImmediateOrCancel', 'execInst': 'LastPrice', 'contingencyType': '', 'exDestination': 'XBME', 'ordStatus': 'New', 'triggered': '', 'workingIndicator': False, 'ordRejReason': '', 'simpleLeavesQty': None, 'leavesQty': 1000, 'simpleCumQty': None, 'cumQty': 0, 'avgPx': None, 'multiLegReportingType': 'SingleSecurity', 'text': 'Stop order by trader.py', 'transactTime': datetime.datetime(2020, 10, 11, 8, 6, 4, 606000, tzinfo=tzutc()), 'timestamp': datetime.datetime(2020, 10, 11, 8, 6, 4, 606000, tzinfo=tzutc())} 2020-10-11 13:02:00 INFO: skip by not found init order into storage 2020-10-11 13:02:00 INFO: fetch_orders_for_clearing test order {'orderID': '6cbc4bbf-0b94-4b41-98a9-7581384cc929', 'clOrdID': '7763071a2a884ebd865f04b7d0285af6', 'clOrdLinkID': '', 'account': 605536, 'symbol': 'ETHUSD', 'side': 'Buy', 'simpleOrderQty': None, 'orderQty': 1000, 'price': 361.0, 'displayQty': None, 'stopPx': None, 'pegOffsetValue': None, 'pegPriceType': '', 'currency': 'USD', 'settlCurrency': 'XBt', 'ordType': 'Limit', 'timeInForce': 'GoodTillCancel', 'execInst': '', 'contingencyType': '', 'exDestination': 'XBME', 'ordStatus': 'New', 'triggered': '', 'workingIndicator': True, 'ordRejReason': '', 'simpleLeavesQty': None, 'leavesQty': 1000, 'simpleCumQty': None, 'cumQty': 0, 'avgPx': None, 'multiLegReportingType': 'SingleSecurity', 'text': 'Profit order by trader.py', 'transactTime': datetime.datetime(2020, 10, 11, 8, 6, 4, 856000, tzinfo=tzutc()), 'timestamp': datetime.datetime(2020, 10, 11, 8, 6, 4, 856000, tzinfo=tzutc())} 2020-10-11 13:02:00 INFO: skip by not found init order into storage 2020-10-11 13:02:00 INFO: clearing end 2020-10-11 13:02:00 INFO: 2020-10-11 13:02:00 INFO: 2020-10-11 13:02:00 INFO: 2020-10-11 13:02:00 INFO: 2020-10-11 13:33:41 INFO: process event {'orderID': 'fdd81632-8499-434b-a93d-f0cc35c5e1ad', 'price': 374.1, 'ordStatus': 'Filled', 'triggered': 'StopOrderTriggered', 'leavesQty': 0, 'cumQty': 1000, 'avgPx': 374.1, 'text': 'Triggered: Order stop price reached\nStop order by trader.py', 'transactTime': '2020-10-11T10:33:41.121Z', 'timestamp': '2020-10-11T10:33:41.121Z', 'clOrdID': '0893ef3b832b43fe8079e7765d210ec4', 'account': 605536, 'symbol': 'ETHUSD'} 2020-10-11 13:33:41 INFO: add new event={'uid': '0893ef3b832b43fe8079e7765d210ec4', 'status': 'Filled'} 2020-10-11 13:33:41 INFO: 2020-10-11 13:33:41 INFO: 2020-10-11 13:33:41 INFO: 2020-10-11 13:33:41 INFO: 2020-10-11 13:33:41 INFO: process event start 2020-10-11 13:33:41 INFO: fetch new order event 0893ef3b832b43fe8079e7765d210ec4 2020-10-11 13:33:41 INFO: fetch orders by event init=None profit_pair=7763071a2a884ebd865f04b7d0285af6 2020-10-11 13:33:41 INFO: process profit order filled 2020-10-11 13:33:41 INFO: cancel order=7763071a2a884ebd865f04b7d0285af6 [{'orderID': '6cbc4bbf-0b94-4b41-98a9-7581384cc929', 'clOrdID': '7763071a2a884ebd865f04b7d0285af6', 'clOrdLinkID': '', 'account': 605536, 'symbol': 'ETHUSD', 'side': 'Buy', 'simpleOrderQty': None, 'orderQty': 1000, 'price': 361.0, 'displayQty': None, 'stopPx': None, 'pegOffsetValue': None, 'pegPriceType': '', 'currency': 'USD', 'settlCurrency': 'XBt', 'ordType': 'Limit', 'timeInForce': 'GoodTillCancel', 'execInst': '', 'contingencyType': '', 'exDestination': 'XBME', 'ordStatus': 'Canceled', 'triggered': '', 'workingIndicator': False, 'ordRejReason': '', 'simpleLeavesQty': None, 'leavesQty': 0, 'simpleCumQty': None, 'cumQty': 0, 'avgPx': None, 'multiLegReportingType': 'SingleSecurity', 'text': 'Canceled: Cancel order by trader.py\nProfit order by trader.py', 'transactTime': datetime.datetime(2020, 10, 11, 8, 6, 4, 856000, tzinfo=tzutc()), 'timestamp': datetime.datetime(2020, 10, 11, 10, 33, 41, 755000, tzinfo=tzutc())}] 2020-10-11 13:33:41 INFO: process event {'orderID': '6cbc4bbf-0b94-4b41-98a9-7581384cc929', 'ordStatus': 'Canceled', 'workingIndicator': False, 'leavesQty': 0, 'text': 'Canceled: Cancel order by trader.py\nProfit order by trader.py', 'timestamp': '2020-10-11T10:33:41.755Z', 'clOrdID': '7763071a2a884ebd865f04b7d0285af6', 'account': 605536, 'symbol': 'ETHUSD'} 2020-10-11 13:33:41 INFO: skip event 7763071a2a884ebd865f04b7d0285af6 Canceled 2020-10-11 13:33:41 INFO: end process event_processing_result='proceed profit order' 2020-10-11 13:33:41 INFO: 2020-10-11 13:33:41 INFO: 2020-10-11 13:33:41 INFO: 2020-10-11 13:33:41 INFO: 2020-10-11 13:58:54 INFO: process event {'orderID': '6f76c0d7-c14d-4225-8724-fc5af958530d', 'price': 377.75, 'ordStatus': 'Filled', 'triggered': 'StopOrderTriggered', 'leavesQty': 0, 'cumQty': 905, 'avgPx': 377.75, 'text': 'Triggered: Order stop price reached\nStop order by trader.py', 'transactTime': '2020-10-11T10:58:54.510Z', 'timestamp': '2020-10-11T10:58:54.510Z', 'clOrdID': '6f9d548ef9a34b9ab381d3e514de3371', 'account': 605536, 'symbol': 'ETHUSD'} 2020-10-11 13:58:54 INFO: add new event={'uid': '6f9d548ef9a34b9ab381d3e514de3371', 'status': 'Filled'} 2020-10-11 13:58:54 INFO: 2020-10-11 13:58:54 INFO: 2020-10-11 13:58:54 INFO: 2020-10-11 13:58:54 INFO: 2020-10-11 13:58:54 INFO: process event start 2020-10-11 13:58:54 INFO: fetch new order event 6f9d548ef9a34b9ab381d3e514de3371 2020-10-11 13:58:54 INFO: fetch orders by event init=None profit_pair=c14133cfedbb4667b72e2fa887fe300a 2020-10-11 13:58:54 INFO: process profit order filled 2020-10-11 13:58:54 INFO: cancel order=c14133cfedbb4667b72e2fa887fe300a [{'orderID': 'e31d79bb-e85c-421d-8a0c-500f1fe615c6', 'clOrdID': 'c14133cfedbb4667b72e2fa887fe300a', 'clOrdLinkID': '', 'account': 605536, 'symbol': 'ETHUSD', 'side': 'Buy', 'simpleOrderQty': None, 'orderQty': 905, 'price': 363.3, 'displayQty': None, 'stopPx': None, 'pegOffsetValue': None, 'pegPriceType': '', 'currency': 'USD', 'settlCurrency': 'XBt', 'ordType': 'Limit', 'timeInForce': 'GoodTillCancel', 'execInst': '', 'contingencyType': '', 'exDestination': 'XBME', 'ordStatus': 'Canceled', 'triggered': '', 'workingIndicator': False, 'ordRejReason': '', 'simpleLeavesQty': None, 'leavesQty': 0, 'simpleCumQty': None, 'cumQty': 0, 'avgPx': None, 'multiLegReportingType': 'SingleSecurity', 'text': 'Canceled: Cancel order by trader.py\nProfit order by trader.py', 'transactTime': datetime.datetime(2020, 10, 10, 5, 47, 33, 902000, tzinfo=tzutc()), 'timestamp': datetime.datetime(2020, 10, 11, 10, 58, 54, 730000, tzinfo=tzutc())}] 2020-10-11 13:58:54 INFO: process event {'orderID': 'e31d79bb-e85c-421d-8a0c-500f1fe615c6', 'ordStatus': 'Canceled', 'workingIndicator': False, 'leavesQty': 0, 'text': 'Canceled: Cancel order by trader.py\nProfit order by trader.py', 'timestamp': '2020-10-11T10:58:54.730Z', 'clOrdID': 'c14133cfedbb4667b72e2fa887fe300a', 'account': 605536, 'symbol': 'ETHUSD'} 2020-10-11 13:58:54 INFO: skip event c14133cfedbb4667b72e2fa887fe300a Canceled 2020-10-11 13:58:54 INFO: end process event_processing_result='proceed profit order' 2020-10-11 13:58:54 INFO: 2020-10-11 13:58:54 INFO: 2020-10-11 13:58:54 INFO: 2020-10-11 13:58:54 INFO: 2020-10-11 14:00:20 INFO: 2020-10-11 14:00:20 INFO: 2020-10-11 14:00:20 INFO: 2020-10-11 14:00:20 INFO: 2020-10-11 14:00:20 INFO: init new order start 2020-10-11 14:00:20 INFO: fetch buckets [{'timestamp': datetime.datetime(2020, 10, 11, 11, 0, tzinfo=tzutc()), 'symbol': 'ETHUSD', 'open': 372.8, 'high': 378.4, 'low': 372.25, 'close': 377.5, 'trades': 4293, 'volume': 3819185, 'vwap': 375.17, 'lastSize': 1, 'turnover': 143281423505, 'homeNotional': 43441.27688733905, 'foreignNotional': 16297601.063611632}, {'timestamp': datetime.datetime(2020, 10, 11, 10, 0, tzinfo=tzutc()), 'symbol': 'ETHUSD', 'open': 372.45, 'high': 373.0, 'low': 371.5, 'close': 372.8, 'trades': 1602, 'volume': 1941056, 'vwap': 372.17, 'lastSize': 200, 'turnover': 72239007565, 'homeNotional': 22024.109676457476, 'foreignNotional': 8196571.761892788}, {'timestamp': datetime.datetime(2020, 10, 11, 9, 0, tzinfo=tzutc()), 'symbol': 'ETHUSD', 'open': 372.2, 'high': 373.5, 'low': 371.7, 'close': 372.45, 'trades': 1660, 'volume': 1501756, 'vwap': 372.48, 'lastSize': 5856, 'turnover': 55937164450, 'homeNotional': 17051.698744524245, 'foreignNotional': 6351392.080602312}] 2020-10-11 14:00:20 INFO: prepare candles [CandleItem(low=372.25, high=378.4, open=372.8, close=377.5, color='GREEN'), CandleItem(low=371.5, high=373.0, open=372.45, close=372.8, color='GREEN'), CandleItem(low=371.7, high=373.5, open=372.2, close=372.45, color='GREEN')] 2020-10-11 14:00:20 INFO: skip by colors first_candle=CandleItem(low=371.7, high=373.5, open=372.2, close=372.45, color='GREEN') second_candle=CandleItem(low=371.5, high=373.0, open=372.45, close=372.8, color='GREEN') last_candle=CandleItem(low=372.25, high=378.4, open=372.8, close=377.5, color='GREEN') 2020-10-11 14:00:20 INFO: check need new order None 2020-10-11 14:00:20 INFO: init new order end 2020-10-11 14:00:20 INFO: 2020-10-11 14:00:20 INFO: 2020-10-11 14:00:20 INFO: 2020-10-11 14:00:20 INFO: 2020-10-11 14:02:00 INFO: 2020-10-11 14:02:00 INFO: 2020-10-11 14:02:00 INFO: 2020-10-11 14:02:00 INFO: 2020-10-11 14:02:00 INFO: clearing start 2020-10-11 14:02:00 INFO: clearing end 2020-10-11 14:02:00 INFO: 2020-10-11 14:02:00 INFO: 2020-10-11 14:02:00 INFO: 2020-10-11 14:02:00 INFO: 2020-10-11 15:00:20 INFO: 2020-10-11 15:00:20 INFO: 2020-10-11 15:00:20 INFO: 2020-10-11 15:00:20 INFO: 2020-10-11 15:00:20 INFO: init new order start 2020-10-11 15:00:20 INFO: fetch buckets [{'timestamp': datetime.datetime(2020, 10, 11, 12, 0, tzinfo=tzutc()), 'symbol': 'ETHUSD', 'open': 377.5, 'high': 378.35, 'low': 373.55, 'close': 374.95, 'trades': 3793, 'volume': 3970008, 'vwap': 376.25, 'lastSize': 60, 'turnover': 149370032360, 'homeNotional': 45192.92891567223, 'foreignNotional': 17003739.68965519}, {'timestamp': datetime.datetime(2020, 10, 11, 11, 0, tzinfo=tzutc()), 'symbol': 'ETHUSD', 'open': 372.8, 'high': 378.4, 'low': 372.25, 'close': 377.5, 'trades': 4293, 'volume': 3819185, 'vwap': 375.17, 'lastSize': 1, 'turnover': 143281423505, 'homeNotional': 43441.27688733905, 'foreignNotional': 16297601.063611632}, {'timestamp': datetime.datetime(2020, 10, 11, 10, 0, tzinfo=tzutc()), 'symbol': 'ETHUSD', 'open': 372.45, 'high': 373.0, 'low': 371.5, 'close': 372.8, 'trades': 1602, 'volume': 1941056, 'vwap': 372.17, 'lastSize': 200, 'turnover': 72239007565, 'homeNotional': 22024.109676457476, 'foreignNotional': 8196571.761892788}] 2020-10-11 15:00:20 INFO: prepare candles [CandleItem(low=373.55, high=378.35, open=377.5, close=374.95, color='RED'), CandleItem(low=372.25, high=378.4, open=372.8, close=377.5, color='GREEN'), CandleItem(low=371.5, high=373.0, open=372.45, close=372.8, color='GREEN')] 2020-10-11 15:00:20 INFO: last_candle=CandleItem(low=373.55, high=378.35, open=377.5, close=374.95, color='RED') 2020-10-11 15:00:20 INFO: apply filters to candles filter_config=InitOrderConfig(take_profit_factor=6.0, clearing_interval=3600, first_candle=CandleFilter(size=None, body=MinMaxFilter(min=0.0, max=100.0)), second_candle=CandleFilter(size=None, body=MinMaxFilter(min=0.0, max=100.0)), last_candle=CandleFilter(size=MinMaxFilter(min=0.4, max=0.59), body=MinMaxFilter(min=0.0, max=100.0))) 2020-10-11 15:00:20 INFO: apply filter CandleFilter(size=MinMaxFilter(min=0.4, max=0.59), body=MinMaxFilter(min=0.0, max=100.0)) to candle=CandleItem(low=373.55, high=378.35, open=377.5, close=374.95, color='RED') 2020-10-11 15:00:20 INFO: skip by CandleItem(low=373.55, high=378.35, open=377.5, close=374.95, color='RED') and CandleFilter(size=MinMaxFilter(min=0.4, max=0.59), body=MinMaxFilter(min=0.0, max=100.0)) 2020-10-11 15:00:20 INFO: apply filters to candles filter_config=InitOrderConfig(take_profit_factor=5.0, clearing_interval=3600, first_candle=None, second_candle=None, last_candle=CandleFilter(size=MinMaxFilter(min=1.6, max=1.99), body=MinMaxFilter(min=0.0, max=100.0))) 2020-10-11 15:00:20 INFO: apply filter CandleFilter(size=MinMaxFilter(min=1.6, max=1.99), body=MinMaxFilter(min=0.0, max=100.0)) to candle=CandleItem(low=373.55, high=378.35, open=377.5, close=374.95, color='RED') 2020-10-11 15:00:20 INFO: skip by CandleItem(low=373.55, high=378.35, open=377.5, close=374.95, color='RED') and CandleFilter(size=MinMaxFilter(min=1.6, max=1.99), body=MinMaxFilter(min=0.0, max=100.0)) 2020-10-11 15:00:20 INFO: not found applicable config for candle 2020-10-11 15:00:20 INFO: check need new order None 2020-10-11 15:00:20 INFO: init new order end 2020-10-11 15:00:20 INFO: 2020-10-11 15:00:20 INFO: 2020-10-11 15:00:20 INFO: 2020-10-11 15:00:20 INFO: 2020-10-11 15:02:00 INFO: 2020-10-11 15:02:00 INFO: 2020-10-11 15:02:00 INFO: 2020-10-11 15:02:00 INFO: 2020-10-11 15:02:00 INFO: clearing start 2020-10-11 15:02:00 INFO: clearing end 2020-10-11 15:02:00 INFO: 2020-10-11 15:02:00 INFO: 2020-10-11 15:02:00 INFO: 2020-10-11 15:02:00 INFO: 2020-10-11 16:00:20 INFO: 2020-10-11 16:00:20 INFO: 2020-10-11 16:00:20 INFO: 2020-10-11 16:00:20 INFO: 2020-10-11 16:00:20 INFO: init new order start 2020-10-11 16:00:20 INFO: fetch buckets [{'timestamp': datetime.datetime(2020, 10, 11, 13, 0, tzinfo=tzutc()), 'symbol': 'ETHUSD', 'open': 374.95, 'high': 375.4, 'low': 371.35, 'close': 373.05, 'trades': 2885, 'volume': 2880243, 'vwap': 373.0, 'lastSize': 27, 'turnover': 107431957785, 'homeNotional': 32730.904182853985, 'foreignNotional': 12208516.065529533}, {'timestamp': datetime.datetime(2020, 10, 11, 12, 0, tzinfo=tzutc()), 'symbol': 'ETHUSD', 'open': 377.5, 'high': 378.35, 'low': 373.55, 'close': 374.95, 'trades': 3793, 'volume': 3970008, 'vwap': 376.25, 'lastSize': 60, 'turnover': 149370032360, 'homeNotional': 45192.92891567223, 'foreignNotional': 17003739.68965519}, {'timestamp': datetime.datetime(2020, 10, 11, 11, 0, tzinfo=tzutc()), 'symbol': 'ETHUSD', 'open': 372.8, 'high': 378.4, 'low': 372.25, 'close': 377.5, 'trades': 4293, 'volume': 3819185, 'vwap': 375.17, 'lastSize': 1, 'turnover': 143281423505, 'homeNotional': 43441.27688733905, 'foreignNotional': 16297601.063611632}] 2020-10-11 16:00:20 INFO: prepare candles [CandleItem(low=371.35, high=375.4, open=374.95, close=373.05, color='RED'), CandleItem(low=373.55, high=378.35, open=377.5, close=374.95, color='RED'), CandleItem(low=372.25, high=378.4, open=372.8, close=377.5, color='GREEN')] 2020-10-11 16:00:20 INFO: skip by colors first_candle=CandleItem(low=372.25, high=378.4, open=372.8, close=377.5, color='GREEN') second_candle=CandleItem(low=373.55, high=378.35, open=377.5, close=374.95, color='RED') last_candle=CandleItem(low=371.35, high=375.4, open=374.95, close=373.05, color='RED') 2020-10-11 16:00:20 INFO: check need new order None 2020-10-11 16:00:20 INFO: init new order end 2020-10-11 16:00:20 INFO: 2020-10-11 16:00:20 INFO: 2020-10-11 16:00:20 INFO: 2020-10-11 16:00:20 INFO: 2020-10-11 16:02:00 INFO: 2020-10-11 16:02:00 INFO: 2020-10-11 16:02:00 INFO: 2020-10-11 16:02:00 INFO: 2020-10-11 16:02:00 INFO: clearing start 2020-10-11 16:02:00 INFO: clearing end 2020-10-11 16:02:00 INFO: 2020-10-11 16:02:00 INFO: 2020-10-11 16:02:00 INFO: 2020-10-11 16:02:00 INFO: 2020-10-11 17:00:20 INFO: 2020-10-11 17:00:20 INFO: 2020-10-11 17:00:20 INFO: 2020-10-11 17:00:20 INFO: 2020-10-11 17:00:20 INFO: init new order start 2020-10-11 17:00:20 INFO: fetch buckets [{'timestamp': datetime.datetime(2020, 10, 11, 14, 0, tzinfo=tzutc()), 'symbol': 'ETHUSD', 'open': 373.05, 'high': 373.55, 'low': 372.05, 'close': 373.05, 'trades': 1635, 'volume': 1573625, 'vwap': 372.9, 'lastSize': 500, 'turnover': 58678989615, 'homeNotional': 17887.309955012744, 'foreignNotional': 6670010.62020505}, {'timestamp': datetime.datetime(2020, 10, 11, 13, 0, tzinfo=tzutc()), 'symbol': 'ETHUSD', 'open': 374.95, 'high': 375.4, 'low': 371.35, 'close': 373.05, 'trades': 2885, 'volume': 2880243, 'vwap': 373.0, 'lastSize': 27, 'turnover': 107431957785, 'homeNotional': 32730.904182853985, 'foreignNotional': 12208516.065529533}, {'timestamp': datetime.datetime(2020, 10, 11, 12, 0, tzinfo=tzutc()), 'symbol': 'ETHUSD', 'open': 377.5, 'high': 378.35, 'low': 373.55, 'close': 374.95, 'trades': 3793, 'volume': 3970008, 'vwap': 376.25, 'lastSize': 60, 'turnover': 149370032360, 'homeNotional': 45192.92891567223, 'foreignNotional': 17003739.68965519}] 2020-10-11 17:00:20 INFO: skip by found empty buckets 2020-10-11 17:00:20 INFO: check need new order None 2020-10-11 17:00:20 INFO: init new order end 2020-10-11 17:00:20 INFO: 2020-10-11 17:00:20 INFO: 2020-10-11 17:00:20 INFO: 2020-10-11 17:00:20 INFO: 2020-10-11 17:02:00 INFO: 2020-10-11 17:02:00 INFO: 2020-10-11 17:02:00 INFO: 2020-10-11 17:02:00 INFO: 2020-10-11 17:02:00 INFO: clearing start 2020-10-11 17:02:00 INFO: clearing end 2020-10-11 17:02:00 INFO: 2020-10-11 17:02:00 INFO: 2020-10-11 17:02:00 INFO: 2020-10-11 17:02:00 INFO: 2020-10-11 18:00:20 INFO: 2020-10-11 18:00:20 INFO: 2020-10-11 18:00:20 INFO: 2020-10-11 18:00:20 INFO: 2020-10-11 18:00:20 INFO: init new order start 2020-10-11 18:00:21 INFO: fetch buckets [{'timestamp': datetime.datetime(2020, 10, 11, 15, 0, tzinfo=tzutc()), 'symbol': 'ETHUSD', 'open': 373.05, 'high': 376.6, 'low': 372.0, 'close': 373.35, 'trades': 3582, 'volume': 3326303, 'vwap': 374.01, 'lastSize': 30, 'turnover': 124405368185, 'homeNotional': 37887.13163919298, 'foreignNotional': 14170011.989227904}, {'timestamp': datetime.datetime(2020, 10, 11, 14, 0, tzinfo=tzutc()), 'symbol': 'ETHUSD', 'open': 373.05, 'high': 373.55, 'low': 372.05, 'close': 373.05, 'trades': 1635, 'volume': 1573625, 'vwap': 372.9, 'lastSize': 500, 'turnover': 58678989615, 'homeNotional': 17887.309955012744, 'foreignNotional': 6670010.62020505}, {'timestamp': datetime.datetime(2020, 10, 11, 13, 0, tzinfo=tzutc()), 'symbol': 'ETHUSD', 'open': 374.95, 'high': 375.4, 'low': 371.35, 'close': 373.05, 'trades': 2885, 'volume': 2880243, 'vwap': 373.0, 'lastSize': 27, 'turnover': 107431957785, 'homeNotional': 32730.904182853985, 'foreignNotional': 12208516.065529533}] 2020-10-11 18:00:21 INFO: skip by found empty buckets 2020-10-11 18:00:21 INFO: check need new order None 2020-10-11 18:00:21 INFO: init new order end 2020-10-11 18:00:21 INFO: 2020-10-11 18:00:21 INFO: 2020-10-11 18:00:21 INFO: 2020-10-11 18:00:21 INFO: 2020-10-11 18:02:00 INFO: 2020-10-11 18:02:00 INFO: 2020-10-11 18:02:00 INFO: 2020-10-11 18:02:00 INFO: 2020-10-11 18:02:00 INFO: clearing start 2020-10-11 18:02:00 INFO: clearing end 2020-10-11 18:02:00 INFO: 2020-10-11 18:02:00 INFO: 2020-10-11 18:02:00 INFO: 2020-10-11 18:02:00 INFO: 2020-10-11 19:00:20 INFO: 2020-10-11 19:00:20 INFO: 2020-10-11 19:00:20 INFO: 2020-10-11 19:00:20 INFO: 2020-10-11 19:00:20 INFO: init new order start 2020-10-11 19:00:21 INFO: fetch buckets [{'timestamp': datetime.datetime(2020, 10, 11, 16, 0, tzinfo=tzutc()), 'symbol': 'ETHUSD', 'open': 373.35, 'high': 376.25, 'low': 373.4, 'close': 375.7, 'trades': 3541, 'volume': 3472180, 'vwap': 375.33, 'lastSize': 545, 'turnover': 130317898525, 'homeNotional': 39626.36541771635, 'foreignNotional': 14872589.385660697}, {'timestamp': datetime.datetime(2020, 10, 11, 15, 0, tzinfo=tzutc()), 'symbol': 'ETHUSD', 'open': 373.05, 'high': 376.6, 'low': 372.0, 'close': 373.35, 'trades': 3582, 'volume': 3326303, 'vwap': 374.01, 'lastSize': 30, 'turnover': 124405368185, 'homeNotional': 37887.13163919298, 'foreignNotional': 14170011.989227904}, {'timestamp': datetime.datetime(2020, 10, 11, 14, 0, tzinfo=tzutc()), 'symbol': 'ETHUSD', 'open': 373.05, 'high': 373.55, 'low': 372.05, 'close': 373.05, 'trades': 1635, 'volume': 1573625, 'vwap': 372.9, 'lastSize': 500, 'turnover': 58678989615, 'homeNotional': 17887.309955012744, 'foreignNotional': 6670010.62020505}] 2020-10-11 19:00:21 INFO: skip by found empty buckets 2020-10-11 19:00:21 INFO: check need new order None 2020-10-11 19:00:21 INFO: init new order end 2020-10-11 19:00:21 INFO: 2020-10-11 19:00:21 INFO: 2020-10-11 19:00:21 INFO: 2020-10-11 19:00:21 INFO: 2020-10-11 19:02:00 INFO: 2020-10-11 19:02:00 INFO: 2020-10-11 19:02:00 INFO: 2020-10-11 19:02:00 INFO: 2020-10-11 19:02:00 INFO: clearing start 2020-10-11 19:02:00 INFO: clearing end 2020-10-11 19:02:00 INFO: 2020-10-11 19:02:00 INFO: 2020-10-11 19:02:00 INFO: 2020-10-11 19:02:00 INFO: 2020-10-11 20:00:20 INFO: 2020-10-11 20:00:20 INFO: 2020-10-11 20:00:20 INFO: 2020-10-11 20:00:20 INFO: 2020-10-11 20:00:20 INFO: init new order start 2020-10-11 20:00:21 INFO: fetch buckets [{'timestamp': datetime.datetime(2020, 10, 11, 17, 0, tzinfo=tzutc()), 'symbol': 'ETHUSD', 'open': 375.7, 'high': 377.0, 'low': 374.3, 'close': 375.45, 'trades': 2973, 'volume': 2720133, 'vwap': 375.95, 'lastSize': 1400, 'turnover': 102262685160, 'homeNotional': 31026.32758312122, 'foreignNotional': 11664279.63184251}, {'timestamp': datetime.datetime(2020, 10, 11, 16, 0, tzinfo=tzutc()), 'symbol': 'ETHUSD', 'open': 373.35, 'high': 376.25, 'low': 373.4, 'close': 375.7, 'trades': 3541, 'volume': 3472180, 'vwap': 375.33, 'lastSize': 545, 'turnover': 130317898525, 'homeNotional': 39626.36541771635, 'foreignNotional': 14872589.385660697}, {'timestamp': datetime.datetime(2020, 10, 11, 15, 0, tzinfo=tzutc()), 'symbol': 'ETHUSD', 'open': 373.05, 'high': 376.6, 'low': 372.0, 'close': 373.35, 'trades': 3582, 'volume': 3326303, 'vwap': 374.01, 'lastSize': 30, 'turnover': 124405368185, 'homeNotional': 37887.13163919298, 'foreignNotional': 14170011.989227904}] 2020-10-11 20:00:21 INFO: prepare candles [CandleItem(low=374.3, high=377.0, open=375.7, close=375.45, color='RED'), CandleItem(low=373.4, high=376.25, open=373.35, close=375.7, color='GREEN'), CandleItem(low=372.0, high=376.6, open=373.05, close=373.35, color='GREEN')] 2020-10-11 20:00:21 INFO: last_candle=CandleItem(low=374.3, high=377.0, open=375.7, close=375.45, color='RED') 2020-10-11 20:00:21 INFO: apply filters to candles filter_config=InitOrderConfig(take_profit_factor=6.0, clearing_interval=3600, first_candle=CandleFilter(size=None, body=MinMaxFilter(min=0.0, max=100.0)), second_candle=CandleFilter(size=None, body=MinMaxFilter(min=0.0, max=100.0)), last_candle=CandleFilter(size=MinMaxFilter(min=0.4, max=0.59), body=MinMaxFilter(min=0.0, max=100.0))) 2020-10-11 20:00:21 INFO: apply filter CandleFilter(size=MinMaxFilter(min=0.4, max=0.59), body=MinMaxFilter(min=0.0, max=100.0)) to candle=CandleItem(low=374.3, high=377.0, open=375.7, close=375.45, color='RED') 2020-10-11 20:00:21 INFO: skip by CandleItem(low=374.3, high=377.0, open=375.7, close=375.45, color='RED') and CandleFilter(size=MinMaxFilter(min=0.4, max=0.59), body=MinMaxFilter(min=0.0, max=100.0)) 2020-10-11 20:00:21 INFO: apply filters to candles filter_config=InitOrderConfig(take_profit_factor=5.0, clearing_interval=3600, first_candle=None, second_candle=None, last_candle=CandleFilter(size=MinMaxFilter(min=1.6, max=1.99), body=MinMaxFilter(min=0.0, max=100.0))) 2020-10-11 20:00:21 INFO: apply filter CandleFilter(size=MinMaxFilter(min=1.6, max=1.99), body=MinMaxFilter(min=0.0, max=100.0)) to candle=CandleItem(low=374.3, high=377.0, open=375.7, close=375.45, color='RED') 2020-10-11 20:00:21 INFO: skip by CandleItem(low=374.3, high=377.0, open=375.7, close=375.45, color='RED') and CandleFilter(size=MinMaxFilter(min=1.6, max=1.99), body=MinMaxFilter(min=0.0, max=100.0)) 2020-10-11 20:00:21 INFO: not found applicable config for candle 2020-10-11 20:00:21 INFO: check need new order None 2020-10-11 20:00:21 INFO: init new order end 2020-10-11 20:00:21 INFO: 2020-10-11 20:00:21 INFO: 2020-10-11 20:00:21 INFO: 2020-10-11 20:00:21 INFO: 2020-10-11 20:02:00 INFO: 2020-10-11 20:02:00 INFO: 2020-10-11 20:02:00 INFO: 2020-10-11 20:02:00 INFO: 2020-10-11 20:02:00 INFO: clearing start 2020-10-11 20:02:00 INFO: clearing end 2020-10-11 20:02:00 INFO: 2020-10-11 20:02:00 INFO: 2020-10-11 20:02:00 INFO: 2020-10-11 20:02:00 INFO: 2020-10-11 21:00:20 INFO: 2020-10-11 21:00:20 INFO: 2020-10-11 21:00:20 INFO: 2020-10-11 21:00:20 INFO: 2020-10-11 21:00:20 INFO: init new order start 2020-10-11 21:00:21 INFO: fetch buckets [{'timestamp': datetime.datetime(2020, 10, 11, 18, 0, tzinfo=tzutc()), 'symbol': 'ETHUSD', 'open': 375.45, 'high': 376.55, 'low': 374.95, 'close': 375.85, 'trades': 1520, 'volume': 1546036, 'vwap': 375.76, 'lastSize': 512, 'turnover': 58092529660, 'homeNotional': 17646.416493936802, 'foreignNotional': 6630668.144990787}, {'timestamp': datetime.datetime(2020, 10, 11, 17, 0, tzinfo=tzutc()), 'symbol': 'ETHUSD', 'open': 375.7, 'high': 377.0, 'low': 374.3, 'close': 375.45, 'trades': 2973, 'volume': 2720133, 'vwap': 375.95, 'lastSize': 1400, 'turnover': 102262685160, 'homeNotional': 31026.32758312122, 'foreignNotional': 11664279.63184251}, {'timestamp': datetime.datetime(2020, 10, 11, 16, 0, tzinfo=tzutc()), 'symbol': 'ETHUSD', 'open': 373.35, 'high': 376.25, 'low': 373.4, 'close': 375.7, 'trades': 3541, 'volume': 3472180, 'vwap': 375.33, 'lastSize': 545, 'turnover': 130317898525, 'homeNotional': 39626.36541771635, 'foreignNotional': 14872589.385660697}] 2020-10-11 21:00:21 INFO: prepare candles [CandleItem(low=374.95, high=376.55, open=375.45, close=375.85, color='GREEN'), CandleItem(low=374.3, high=377.0, open=375.7, close=375.45, color='RED'), CandleItem(low=373.4, high=376.25, open=373.35, close=375.7, color='GREEN')] 2020-10-11 21:00:21 INFO: skip by colors first_candle=CandleItem(low=373.4, high=376.25, open=373.35, close=375.7, color='GREEN') second_candle=CandleItem(low=374.3, high=377.0, open=375.7, close=375.45, color='RED') last_candle=CandleItem(low=374.95, high=376.55, open=375.45, close=375.85, color='GREEN') 2020-10-11 21:00:21 INFO: check need new order None 2020-10-11 21:00:21 INFO: init new order end 2020-10-11 21:00:21 INFO: 2020-10-11 21:00:21 INFO: 2020-10-11 21:00:21 INFO: 2020-10-11 21:00:21 INFO: 2020-10-11 21:02:00 INFO: 2020-10-11 21:02:00 INFO: 2020-10-11 21:02:00 INFO: 2020-10-11 21:02:00 INFO: 2020-10-11 21:02:00 INFO: clearing start 2020-10-11 21:02:00 INFO: clearing end 2020-10-11 21:02:00 INFO: 2020-10-11 21:02:00 INFO: 2020-10-11 21:02:00 INFO: 2020-10-11 21:02:00 INFO: 2020-10-11 22:00:20 INFO: 2020-10-11 22:00:20 INFO: 2020-10-11 22:00:20 INFO: 2020-10-11 22:00:20 INFO: 2020-10-11 22:00:20 INFO: init new order start 2020-10-11 22:00:20 INFO: fetch buckets [{'timestamp': datetime.datetime(2020, 10, 11, 19, 0, tzinfo=tzutc()), 'symbol': 'ETHUSD', 'open': 375.85, 'high': 376.6, 'low': 374.4, 'close': 375.55, 'trades': 1609, 'volume': 1264467, 'vwap': 375.53, 'lastSize': 42, 'turnover': 47484158260, 'homeNotional': 14429.256057918114, 'foreignNotional': 5418581.824413709}, {'timestamp': datetime.datetime(2020, 10, 11, 18, 0, tzinfo=tzutc()), 'symbol': 'ETHUSD', 'open': 375.45, 'high': 376.55, 'low': 374.95, 'close': 375.85, 'trades': 1520, 'volume': 1546036, 'vwap': 375.76, 'lastSize': 512, 'turnover': 58092529660, 'homeNotional': 17646.416493936802, 'foreignNotional': 6630668.144990787}, {'timestamp': datetime.datetime(2020, 10, 11, 17, 0, tzinfo=tzutc()), 'symbol': 'ETHUSD', 'open': 375.7, 'high': 377.0, 'low': 374.3, 'close': 375.45, 'trades': 2973, 'volume': 2720133, 'vwap': 375.95, 'lastSize': 1400, 'turnover': 102262685160, 'homeNotional': 31026.32758312122, 'foreignNotional': 11664279.63184251}] 2020-10-11 22:00:20 INFO: prepare candles [CandleItem(low=374.4, high=376.6, open=375.85, close=375.55, color='RED'), CandleItem(low=374.95, high=376.55, open=375.45, close=375.85, color='GREEN'), CandleItem(low=374.3, high=377.0, open=375.7, close=375.45, color='RED')] 2020-10-11 22:00:20 INFO: skip by colors first_candle=CandleItem(low=374.3, high=377.0, open=375.7, close=375.45, color='RED') second_candle=CandleItem(low=374.95, high=376.55, open=375.45, close=375.85, color='GREEN') last_candle=CandleItem(low=374.4, high=376.6, open=375.85, close=375.55, color='RED') 2020-10-11 22:00:20 INFO: check need new order None 2020-10-11 22:00:20 INFO: init new order end 2020-10-11 22:00:20 INFO: 2020-10-11 22:00:20 INFO: 2020-10-11 22:00:20 INFO: 2020-10-11 22:00:20 INFO: 2020-10-11 22:02:00 INFO: 2020-10-11 22:02:00 INFO: 2020-10-11 22:02:00 INFO: 2020-10-11 22:02:00 INFO: 2020-10-11 22:02:00 INFO: clearing start 2020-10-11 22:02:00 INFO: clearing end 2020-10-11 22:02:00 INFO: 2020-10-11 22:02:00 INFO: 2020-10-11 22:02:00 INFO: 2020-10-11 22:02:00 INFO: 2020-10-11 22:03:38 WARNING: handle interrupt sig 2 False /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2020-12-31 14:06:33 INFO: 2020-12-31 14:06:33 INFO: 2020-12-31 14:06:33 INFO: 2020-12-31 14:06:33 INFO: 2020-12-31 14:06:33 INFO: start trader process 2020-12-31 14:06:33 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2020-12-31 14:06:33 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2020-12-31 14:06:33 INFO: Authenticating with API Key. 2020-12-31 14:06:34 INFO: Connected to WS. 2020-12-31 15:00:20 INFO: 2020-12-31 15:00:20 INFO: 2020-12-31 15:00:20 INFO: 2020-12-31 15:00:20 INFO: 2020-12-31 15:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2020-12-31 15:00:23 INFO: 2020-12-31 15:00:23 INFO: 2020-12-31 15:00:23 INFO: 2020-12-31 15:00:23 INFO: 2020-12-31 15:00:23 INFO: start trader process 2020-12-31 15:00:23 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2020-12-31 15:00:23 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2020-12-31 15:00:23 INFO: Authenticating with API Key. 2020-12-31 15:00:24 INFO: Connected to WS. 2020-12-31 16:00:20 INFO: 2020-12-31 16:00:20 INFO: 2020-12-31 16:00:20 INFO: 2020-12-31 16:00:20 INFO: 2020-12-31 16:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2020-12-31 16:00:23 INFO: 2020-12-31 16:00:23 INFO: 2020-12-31 16:00:23 INFO: 2020-12-31 16:00:23 INFO: 2020-12-31 16:00:23 INFO: start trader process 2020-12-31 16:00:23 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2020-12-31 16:00:23 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2020-12-31 16:00:23 INFO: Authenticating with API Key. 2020-12-31 16:00:24 INFO: Connected to WS. 2020-12-31 17:00:20 INFO: 2020-12-31 17:00:20 INFO: 2020-12-31 17:00:20 INFO: 2020-12-31 17:00:20 INFO: 2020-12-31 17:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2020-12-31 17:00:23 INFO: 2020-12-31 17:00:23 INFO: 2020-12-31 17:00:23 INFO: 2020-12-31 17:00:23 INFO: 2020-12-31 17:00:23 INFO: start trader process 2020-12-31 17:00:23 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2020-12-31 17:00:23 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2020-12-31 17:00:23 INFO: Authenticating with API Key. 2020-12-31 17:00:24 INFO: Connected to WS. 2020-12-31 18:00:20 INFO: 2020-12-31 18:00:20 INFO: 2020-12-31 18:00:20 INFO: 2020-12-31 18:00:20 INFO: 2020-12-31 18:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2020-12-31 18:00:23 INFO: 2020-12-31 18:00:23 INFO: 2020-12-31 18:00:23 INFO: 2020-12-31 18:00:23 INFO: 2020-12-31 18:00:23 INFO: start trader process 2020-12-31 18:00:23 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2020-12-31 18:00:23 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2020-12-31 18:00:23 INFO: Authenticating with API Key. 2020-12-31 18:00:24 INFO: Connected to WS. 2020-12-31 19:00:20 INFO: 2020-12-31 19:00:20 INFO: 2020-12-31 19:00:20 INFO: 2020-12-31 19:00:20 INFO: 2020-12-31 19:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2020-12-31 19:00:23 INFO: 2020-12-31 19:00:23 INFO: 2020-12-31 19:00:23 INFO: 2020-12-31 19:00:23 INFO: 2020-12-31 19:00:23 INFO: start trader process 2020-12-31 19:00:23 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2020-12-31 19:00:23 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2020-12-31 19:00:23 INFO: Authenticating with API Key. 2020-12-31 19:00:24 INFO: Connected to WS. 2020-12-31 20:00:20 INFO: 2020-12-31 20:00:20 INFO: 2020-12-31 20:00:20 INFO: 2020-12-31 20:00:20 INFO: 2020-12-31 20:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2020-12-31 20:00:23 INFO: 2020-12-31 20:00:23 INFO: 2020-12-31 20:00:23 INFO: 2020-12-31 20:00:23 INFO: 2020-12-31 20:00:23 INFO: start trader process 2020-12-31 20:00:23 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2020-12-31 20:00:23 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2020-12-31 20:00:23 INFO: Authenticating with API Key. 2020-12-31 20:00:24 INFO: Connected to WS. 2020-12-31 21:00:20 INFO: 2020-12-31 21:00:20 INFO: 2020-12-31 21:00:20 INFO: 2020-12-31 21:00:20 INFO: 2020-12-31 21:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2020-12-31 21:00:23 INFO: 2020-12-31 21:00:23 INFO: 2020-12-31 21:00:23 INFO: 2020-12-31 21:00:23 INFO: 2020-12-31 21:00:23 INFO: start trader process 2020-12-31 21:00:23 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2020-12-31 21:00:23 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2020-12-31 21:00:23 INFO: Authenticating with API Key. 2020-12-31 21:00:24 INFO: Connected to WS. 2020-12-31 22:00:20 INFO: 2020-12-31 22:00:20 INFO: 2020-12-31 22:00:20 INFO: 2020-12-31 22:00:20 INFO: 2020-12-31 22:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2020-12-31 22:00:23 INFO: 2020-12-31 22:00:23 INFO: 2020-12-31 22:00:23 INFO: 2020-12-31 22:00:23 INFO: 2020-12-31 22:00:23 INFO: start trader process 2020-12-31 22:00:23 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2020-12-31 22:00:23 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2020-12-31 22:00:23 INFO: Authenticating with API Key. 2020-12-31 22:00:24 INFO: Connected to WS. 2020-12-31 23:00:20 INFO: 2020-12-31 23:00:20 INFO: 2020-12-31 23:00:20 INFO: 2020-12-31 23:00:20 INFO: 2020-12-31 23:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2020-12-31 23:00:23 INFO: 2020-12-31 23:00:23 INFO: 2020-12-31 23:00:23 INFO: 2020-12-31 23:00:23 INFO: 2020-12-31 23:00:23 INFO: start trader process 2020-12-31 23:00:23 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2020-12-31 23:00:23 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2020-12-31 23:00:23 INFO: Authenticating with API Key. 2020-12-31 23:00:24 INFO: Connected to WS. 2021-01-01 00:00:20 INFO: 2021-01-01 00:00:20 INFO: 2021-01-01 00:00:20 INFO: 2021-01-01 00:00:20 INFO: 2021-01-01 00:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2021-01-01 00:00:23 INFO: 2021-01-01 00:00:23 INFO: 2021-01-01 00:00:23 INFO: 2021-01-01 00:00:23 INFO: 2021-01-01 00:00:23 INFO: start trader process 2021-01-01 00:00:23 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2021-01-01 00:00:23 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2021-01-01 00:00:23 INFO: Authenticating with API Key. 2021-01-01 00:00:24 INFO: Connected to WS. 2021-01-01 01:00:20 INFO: 2021-01-01 01:00:20 INFO: 2021-01-01 01:00:20 INFO: 2021-01-01 01:00:20 INFO: 2021-01-01 01:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2021-01-01 01:00:23 INFO: 2021-01-01 01:00:23 INFO: 2021-01-01 01:00:23 INFO: 2021-01-01 01:00:23 INFO: 2021-01-01 01:00:23 INFO: start trader process 2021-01-01 01:00:23 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2021-01-01 01:00:23 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2021-01-01 01:00:23 INFO: Authenticating with API Key. 2021-01-01 01:00:24 INFO: Connected to WS. 2021-01-01 01:26:08 ERROR: Error : Connection is already closed. 2021-01-01 01:26:08 ERROR: error from callback >: Connection is already closed. 2021-01-01 01:26:08 INFO: Websocket Closed 2021-01-01 01:26:08 WARNING: reconnect to socket 2021-01-01 01:26:08 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2021-01-01 01:26:08 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2021-01-01 01:26:08 INFO: Authenticating with API Key. 2021-01-01 01:26:09 INFO: Connected to WS. 2021-01-01 02:00:20 INFO: 2021-01-01 02:00:20 INFO: 2021-01-01 02:00:20 INFO: 2021-01-01 02:00:20 INFO: 2021-01-01 02:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2021-01-01 02:00:23 INFO: 2021-01-01 02:00:23 INFO: 2021-01-01 02:00:23 INFO: 2021-01-01 02:00:23 INFO: 2021-01-01 02:00:23 INFO: start trader process 2021-01-01 02:00:23 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2021-01-01 02:00:23 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2021-01-01 02:00:23 INFO: Authenticating with API Key. 2021-01-01 02:00:24 INFO: Connected to WS. 2021-01-01 03:00:20 INFO: 2021-01-01 03:00:20 INFO: 2021-01-01 03:00:20 INFO: 2021-01-01 03:00:20 INFO: 2021-01-01 03:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2021-01-01 03:00:23 INFO: 2021-01-01 03:00:23 INFO: 2021-01-01 03:00:23 INFO: 2021-01-01 03:00:23 INFO: 2021-01-01 03:00:23 INFO: start trader process 2021-01-01 03:00:23 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2021-01-01 03:00:23 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2021-01-01 03:00:23 INFO: Authenticating with API Key. 2021-01-01 03:00:24 INFO: Connected to WS. 2021-01-01 04:00:20 INFO: 2021-01-01 04:00:20 INFO: 2021-01-01 04:00:20 INFO: 2021-01-01 04:00:20 INFO: 2021-01-01 04:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2021-01-01 04:00:23 INFO: 2021-01-01 04:00:23 INFO: 2021-01-01 04:00:23 INFO: 2021-01-01 04:00:23 INFO: 2021-01-01 04:00:23 INFO: start trader process 2021-01-01 04:00:23 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2021-01-01 04:00:23 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2021-01-01 04:00:23 INFO: Authenticating with API Key. 2021-01-01 04:00:24 INFO: Connected to WS. 2021-01-01 05:00:20 INFO: 2021-01-01 05:00:20 INFO: 2021-01-01 05:00:20 INFO: 2021-01-01 05:00:20 INFO: 2021-01-01 05:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2021-01-01 05:00:23 INFO: 2021-01-01 05:00:23 INFO: 2021-01-01 05:00:23 INFO: 2021-01-01 05:00:23 INFO: 2021-01-01 05:00:23 INFO: start trader process 2021-01-01 05:00:23 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2021-01-01 05:00:23 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2021-01-01 05:00:23 INFO: Authenticating with API Key. 2021-01-01 05:00:24 INFO: Connected to WS. 2021-01-01 06:00:20 INFO: 2021-01-01 06:00:20 INFO: 2021-01-01 06:00:20 INFO: 2021-01-01 06:00:20 INFO: 2021-01-01 06:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2021-01-01 06:00:23 INFO: 2021-01-01 06:00:23 INFO: 2021-01-01 06:00:23 INFO: 2021-01-01 06:00:23 INFO: 2021-01-01 06:00:23 INFO: start trader process 2021-01-01 06:00:23 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2021-01-01 06:00:23 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2021-01-01 06:00:23 INFO: Authenticating with API Key. 2021-01-01 06:00:24 INFO: Connected to WS. 2021-01-01 07:00:20 INFO: 2021-01-01 07:00:20 INFO: 2021-01-01 07:00:20 INFO: 2021-01-01 07:00:20 INFO: 2021-01-01 07:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2021-01-01 07:00:23 INFO: 2021-01-01 07:00:23 INFO: 2021-01-01 07:00:23 INFO: 2021-01-01 07:00:23 INFO: 2021-01-01 07:00:23 INFO: start trader process 2021-01-01 07:00:23 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2021-01-01 07:00:23 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2021-01-01 07:00:23 INFO: Authenticating with API Key. 2021-01-01 07:00:24 INFO: Connected to WS. 2021-01-01 08:00:20 INFO: 2021-01-01 08:00:20 INFO: 2021-01-01 08:00:20 INFO: 2021-01-01 08:00:20 INFO: 2021-01-01 08:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2021-01-01 08:00:23 INFO: 2021-01-01 08:00:23 INFO: 2021-01-01 08:00:23 INFO: 2021-01-01 08:00:23 INFO: 2021-01-01 08:00:23 INFO: start trader process 2021-01-01 08:00:23 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2021-01-01 08:00:23 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2021-01-01 08:00:23 INFO: Authenticating with API Key. 2021-01-01 08:00:24 INFO: Connected to WS. 2021-01-01 09:00:20 INFO: 2021-01-01 09:00:20 INFO: 2021-01-01 09:00:20 INFO: 2021-01-01 09:00:20 INFO: 2021-01-01 09:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2021-01-01 09:00:23 INFO: 2021-01-01 09:00:23 INFO: 2021-01-01 09:00:23 INFO: 2021-01-01 09:00:23 INFO: 2021-01-01 09:00:23 INFO: start trader process 2021-01-01 09:00:23 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2021-01-01 09:00:23 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2021-01-01 09:00:23 INFO: Authenticating with API Key. 2021-01-01 09:00:24 INFO: Connected to WS. 2021-01-01 10:00:20 INFO: 2021-01-01 10:00:20 INFO: 2021-01-01 10:00:20 INFO: 2021-01-01 10:00:20 INFO: 2021-01-01 10:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2021-01-01 10:00:23 INFO: 2021-01-01 10:00:23 INFO: 2021-01-01 10:00:23 INFO: 2021-01-01 10:00:23 INFO: 2021-01-01 10:00:23 INFO: start trader process 2021-01-01 10:00:23 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2021-01-01 10:00:23 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2021-01-01 10:00:23 INFO: Authenticating with API Key. 2021-01-01 10:00:24 INFO: Connected to WS. 2021-01-01 11:00:20 INFO: 2021-01-01 11:00:20 INFO: 2021-01-01 11:00:20 INFO: 2021-01-01 11:00:20 INFO: 2021-01-01 11:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2021-01-01 11:00:23 INFO: 2021-01-01 11:00:23 INFO: 2021-01-01 11:00:23 INFO: 2021-01-01 11:00:23 INFO: 2021-01-01 11:00:23 INFO: start trader process 2021-01-01 11:00:23 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2021-01-01 11:00:23 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2021-01-01 11:00:23 INFO: Authenticating with API Key. 2021-01-01 11:00:24 INFO: Connected to WS. 2021-01-01 12:00:20 INFO: 2021-01-01 12:00:20 INFO: 2021-01-01 12:00:20 INFO: 2021-01-01 12:00:20 INFO: 2021-01-01 12:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2021-01-01 12:00:23 INFO: 2021-01-01 12:00:23 INFO: 2021-01-01 12:00:23 INFO: 2021-01-01 12:00:23 INFO: 2021-01-01 12:00:23 INFO: start trader process 2021-01-01 12:00:23 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2021-01-01 12:00:23 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2021-01-01 12:00:23 INFO: Authenticating with API Key. 2021-01-01 12:00:24 INFO: Connected to WS. 2021-01-01 13:00:20 INFO: 2021-01-01 13:00:20 INFO: 2021-01-01 13:00:20 INFO: 2021-01-01 13:00:20 INFO: 2021-01-01 13:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2021-01-01 13:00:23 INFO: 2021-01-01 13:00:23 INFO: 2021-01-01 13:00:23 INFO: 2021-01-01 13:00:23 INFO: 2021-01-01 13:00:23 INFO: start trader process 2021-01-01 13:00:23 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2021-01-01 13:00:23 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2021-01-01 13:00:23 INFO: Authenticating with API Key. 2021-01-01 13:00:24 INFO: Connected to WS. 2021-01-01 14:00:20 INFO: 2021-01-01 14:00:20 INFO: 2021-01-01 14:00:20 INFO: 2021-01-01 14:00:20 INFO: 2021-01-01 14:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2021-01-01 14:00:23 INFO: 2021-01-01 14:00:23 INFO: 2021-01-01 14:00:23 INFO: 2021-01-01 14:00:23 INFO: 2021-01-01 14:00:23 INFO: start trader process 2021-01-01 14:00:23 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2021-01-01 14:00:23 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2021-01-01 14:00:23 INFO: Authenticating with API Key. 2021-01-01 14:00:24 INFO: Connected to WS. 2021-01-01 15:00:20 INFO: 2021-01-01 15:00:20 INFO: 2021-01-01 15:00:20 INFO: 2021-01-01 15:00:20 INFO: 2021-01-01 15:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2021-01-01 15:00:23 INFO: 2021-01-01 15:00:23 INFO: 2021-01-01 15:00:23 INFO: 2021-01-01 15:00:23 INFO: 2021-01-01 15:00:23 INFO: start trader process 2021-01-01 15:00:23 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2021-01-01 15:00:23 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2021-01-01 15:00:23 INFO: Authenticating with API Key. 2021-01-01 15:00:24 INFO: Connected to WS. 2021-01-01 16:00:20 INFO: 2021-01-01 16:00:20 INFO: 2021-01-01 16:00:20 INFO: 2021-01-01 16:00:20 INFO: 2021-01-01 16:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2021-01-01 16:00:23 INFO: 2021-01-01 16:00:23 INFO: 2021-01-01 16:00:23 INFO: 2021-01-01 16:00:23 INFO: 2021-01-01 16:00:23 INFO: start trader process 2021-01-01 16:00:23 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2021-01-01 16:00:23 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2021-01-01 16:00:23 INFO: Authenticating with API Key. 2021-01-01 16:00:24 INFO: Connected to WS. 2021-01-01 17:00:20 INFO: 2021-01-01 17:00:20 INFO: 2021-01-01 17:00:20 INFO: 2021-01-01 17:00:20 INFO: 2021-01-01 17:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2021-01-01 17:00:23 INFO: 2021-01-01 17:00:23 INFO: 2021-01-01 17:00:23 INFO: 2021-01-01 17:00:23 INFO: 2021-01-01 17:00:23 INFO: start trader process 2021-01-01 17:00:23 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2021-01-01 17:00:23 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2021-01-01 17:00:23 INFO: Authenticating with API Key. 2021-01-01 17:00:24 INFO: Connected to WS. 2021-01-01 18:00:20 INFO: 2021-01-01 18:00:20 INFO: 2021-01-01 18:00:20 INFO: 2021-01-01 18:00:20 INFO: 2021-01-01 18:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2021-01-01 18:00:23 INFO: 2021-01-01 18:00:23 INFO: 2021-01-01 18:00:23 INFO: 2021-01-01 18:00:23 INFO: 2021-01-01 18:00:23 INFO: start trader process 2021-01-01 18:00:23 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2021-01-01 18:00:23 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2021-01-01 18:00:23 INFO: Authenticating with API Key. 2021-01-01 18:00:24 INFO: Connected to WS. 2021-01-01 19:00:20 INFO: 2021-01-01 19:00:20 INFO: 2021-01-01 19:00:20 INFO: 2021-01-01 19:00:20 INFO: 2021-01-01 19:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2021-01-01 19:00:23 INFO: 2021-01-01 19:00:23 INFO: 2021-01-01 19:00:23 INFO: 2021-01-01 19:00:23 INFO: 2021-01-01 19:00:23 INFO: start trader process 2021-01-01 19:00:23 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2021-01-01 19:00:23 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2021-01-01 19:00:23 INFO: Authenticating with API Key. 2021-01-01 19:00:24 INFO: Connected to WS. 2021-01-01 20:00:20 INFO: 2021-01-01 20:00:20 INFO: 2021-01-01 20:00:20 INFO: 2021-01-01 20:00:20 INFO: 2021-01-01 20:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2021-01-01 20:00:23 INFO: 2021-01-01 20:00:23 INFO: 2021-01-01 20:00:23 INFO: 2021-01-01 20:00:23 INFO: 2021-01-01 20:00:23 INFO: start trader process 2021-01-01 20:00:23 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2021-01-01 20:00:23 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2021-01-01 20:00:23 INFO: Authenticating with API Key. 2021-01-01 20:00:24 INFO: Connected to WS. 2021-01-01 21:00:20 INFO: 2021-01-01 21:00:20 INFO: 2021-01-01 21:00:20 INFO: 2021-01-01 21:00:20 INFO: 2021-01-01 21:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2021-01-01 21:00:23 INFO: 2021-01-01 21:00:23 INFO: 2021-01-01 21:00:23 INFO: 2021-01-01 21:00:23 INFO: 2021-01-01 21:00:23 INFO: start trader process 2021-01-01 21:00:23 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2021-01-01 21:00:23 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2021-01-01 21:00:23 INFO: Authenticating with API Key. 2021-01-01 21:00:24 INFO: Connected to WS. 2021-01-01 22:00:20 INFO: 2021-01-01 22:00:20 INFO: 2021-01-01 22:00:20 INFO: 2021-01-01 22:00:20 INFO: 2021-01-01 22:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2021-01-01 22:00:23 INFO: 2021-01-01 22:00:23 INFO: 2021-01-01 22:00:23 INFO: 2021-01-01 22:00:23 INFO: 2021-01-01 22:00:23 INFO: start trader process 2021-01-01 22:00:23 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2021-01-01 22:00:23 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2021-01-01 22:00:23 INFO: Authenticating with API Key. 2021-01-01 22:00:24 INFO: Connected to WS. 2021-01-01 23:00:20 INFO: 2021-01-01 23:00:20 INFO: 2021-01-01 23:00:20 INFO: 2021-01-01 23:00:20 INFO: 2021-01-01 23:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2021-01-01 23:00:23 INFO: 2021-01-01 23:00:23 INFO: 2021-01-01 23:00:23 INFO: 2021-01-01 23:00:23 INFO: 2021-01-01 23:00:23 INFO: start trader process 2021-01-01 23:00:23 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2021-01-01 23:00:23 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2021-01-01 23:00:23 INFO: Authenticating with API Key. 2021-01-01 23:00:24 INFO: Connected to WS. 2021-01-02 00:00:20 INFO: 2021-01-02 00:00:20 INFO: 2021-01-02 00:00:20 INFO: 2021-01-02 00:00:20 INFO: 2021-01-02 00:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2021-01-02 00:00:23 INFO: 2021-01-02 00:00:23 INFO: 2021-01-02 00:00:23 INFO: 2021-01-02 00:00:23 INFO: 2021-01-02 00:00:23 INFO: start trader process 2021-01-02 00:00:23 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2021-01-02 00:00:23 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2021-01-02 00:00:23 INFO: Authenticating with API Key. 2021-01-02 00:00:24 INFO: Connected to WS. 2021-01-02 01:00:20 INFO: 2021-01-02 01:00:20 INFO: 2021-01-02 01:00:20 INFO: 2021-01-02 01:00:20 INFO: 2021-01-02 01:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2021-01-02 01:00:23 INFO: 2021-01-02 01:00:23 INFO: 2021-01-02 01:00:23 INFO: 2021-01-02 01:00:23 INFO: 2021-01-02 01:00:23 INFO: start trader process 2021-01-02 01:00:23 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2021-01-02 01:00:23 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2021-01-02 01:00:23 INFO: Authenticating with API Key. 2021-01-02 01:00:24 INFO: Connected to WS. 2021-01-02 02:00:20 INFO: 2021-01-02 02:00:20 INFO: 2021-01-02 02:00:20 INFO: 2021-01-02 02:00:20 INFO: 2021-01-02 02:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2021-01-02 02:00:23 INFO: 2021-01-02 02:00:23 INFO: 2021-01-02 02:00:23 INFO: 2021-01-02 02:00:23 INFO: 2021-01-02 02:00:23 INFO: start trader process 2021-01-02 02:00:23 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2021-01-02 02:00:23 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2021-01-02 02:00:23 INFO: Authenticating with API Key. 2021-01-02 02:00:24 INFO: Connected to WS. 2021-01-02 03:00:20 INFO: 2021-01-02 03:00:20 INFO: 2021-01-02 03:00:20 INFO: 2021-01-02 03:00:20 INFO: 2021-01-02 03:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2021-01-02 03:00:24 INFO: 2021-01-02 03:00:24 INFO: 2021-01-02 03:00:24 INFO: 2021-01-02 03:00:24 INFO: 2021-01-02 03:00:24 INFO: start trader process 2021-01-02 03:00:24 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2021-01-02 03:00:24 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2021-01-02 03:00:24 INFO: Authenticating with API Key. 2021-01-02 03:00:25 INFO: Connected to WS. 2021-01-02 04:00:20 INFO: 2021-01-02 04:00:20 INFO: 2021-01-02 04:00:20 INFO: 2021-01-02 04:00:20 INFO: 2021-01-02 04:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2021-01-02 04:00:23 INFO: 2021-01-02 04:00:23 INFO: 2021-01-02 04:00:23 INFO: 2021-01-02 04:00:23 INFO: 2021-01-02 04:00:23 INFO: start trader process 2021-01-02 04:00:23 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2021-01-02 04:00:23 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2021-01-02 04:00:23 INFO: Authenticating with API Key. 2021-01-02 04:00:24 INFO: Connected to WS. 2021-01-02 05:00:20 INFO: 2021-01-02 05:00:20 INFO: 2021-01-02 05:00:20 INFO: 2021-01-02 05:00:20 INFO: 2021-01-02 05:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2021-01-02 05:00:23 INFO: 2021-01-02 05:00:23 INFO: 2021-01-02 05:00:23 INFO: 2021-01-02 05:00:23 INFO: 2021-01-02 05:00:23 INFO: start trader process 2021-01-02 05:00:23 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2021-01-02 05:00:23 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2021-01-02 05:00:23 INFO: Authenticating with API Key. 2021-01-02 05:00:24 INFO: Connected to WS. 2021-01-02 06:00:20 INFO: 2021-01-02 06:00:20 INFO: 2021-01-02 06:00:20 INFO: 2021-01-02 06:00:20 INFO: 2021-01-02 06:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2021-01-02 06:00:24 INFO: 2021-01-02 06:00:24 INFO: 2021-01-02 06:00:24 INFO: 2021-01-02 06:00:24 INFO: 2021-01-02 06:00:24 INFO: start trader process 2021-01-02 06:00:24 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2021-01-02 06:00:24 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2021-01-02 06:00:24 INFO: Authenticating with API Key. 2021-01-02 06:00:25 INFO: Connected to WS. 2021-01-02 07:00:20 INFO: 2021-01-02 07:00:20 INFO: 2021-01-02 07:00:20 INFO: 2021-01-02 07:00:20 INFO: 2021-01-02 07:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2021-01-02 07:00:23 INFO: 2021-01-02 07:00:23 INFO: 2021-01-02 07:00:23 INFO: 2021-01-02 07:00:23 INFO: 2021-01-02 07:00:23 INFO: start trader process 2021-01-02 07:00:23 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2021-01-02 07:00:23 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2021-01-02 07:00:23 INFO: Authenticating with API Key. 2021-01-02 07:00:24 INFO: Connected to WS. 2021-01-02 08:00:20 INFO: 2021-01-02 08:00:20 INFO: 2021-01-02 08:00:20 INFO: 2021-01-02 08:00:20 INFO: 2021-01-02 08:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2021-01-02 08:00:23 INFO: 2021-01-02 08:00:23 INFO: 2021-01-02 08:00:23 INFO: 2021-01-02 08:00:23 INFO: 2021-01-02 08:00:23 INFO: start trader process 2021-01-02 08:00:23 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2021-01-02 08:00:23 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2021-01-02 08:00:23 INFO: Authenticating with API Key. 2021-01-02 08:00:24 INFO: Connected to WS. 2021-01-02 09:00:20 INFO: 2021-01-02 09:00:20 INFO: 2021-01-02 09:00:20 INFO: 2021-01-02 09:00:20 INFO: 2021-01-02 09:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2021-01-02 09:00:23 INFO: 2021-01-02 09:00:23 INFO: 2021-01-02 09:00:23 INFO: 2021-01-02 09:00:23 INFO: 2021-01-02 09:00:23 INFO: start trader process 2021-01-02 09:00:23 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2021-01-02 09:00:23 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2021-01-02 09:00:23 INFO: Authenticating with API Key. 2021-01-02 09:00:24 INFO: Connected to WS. 2021-01-02 10:00:20 INFO: 2021-01-02 10:00:20 INFO: 2021-01-02 10:00:20 INFO: 2021-01-02 10:00:20 INFO: 2021-01-02 10:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2021-01-02 10:00:23 INFO: 2021-01-02 10:00:23 INFO: 2021-01-02 10:00:23 INFO: 2021-01-02 10:00:23 INFO: 2021-01-02 10:00:23 INFO: start trader process 2021-01-02 10:00:23 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2021-01-02 10:00:23 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2021-01-02 10:00:23 INFO: Authenticating with API Key. 2021-01-02 10:00:24 INFO: Connected to WS. 2021-01-02 11:00:20 INFO: 2021-01-02 11:00:20 INFO: 2021-01-02 11:00:20 INFO: 2021-01-02 11:00:20 INFO: 2021-01-02 11:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2021-01-02 11:00:23 INFO: 2021-01-02 11:00:23 INFO: 2021-01-02 11:00:23 INFO: 2021-01-02 11:00:23 INFO: 2021-01-02 11:00:23 INFO: start trader process 2021-01-02 11:00:23 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2021-01-02 11:00:23 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2021-01-02 11:00:23 INFO: Authenticating with API Key. 2021-01-02 11:00:24 INFO: Connected to WS. 2021-01-02 12:00:20 INFO: 2021-01-02 12:00:20 INFO: 2021-01-02 12:00:20 INFO: 2021-01-02 12:00:20 INFO: 2021-01-02 12:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2021-01-02 12:00:23 INFO: 2021-01-02 12:00:23 INFO: 2021-01-02 12:00:23 INFO: 2021-01-02 12:00:23 INFO: 2021-01-02 12:00:23 INFO: start trader process 2021-01-02 12:00:23 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2021-01-02 12:00:23 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2021-01-02 12:00:23 INFO: Authenticating with API Key. 2021-01-02 12:00:24 INFO: Connected to WS. 2021-01-02 13:00:20 INFO: 2021-01-02 13:00:20 INFO: 2021-01-02 13:00:20 INFO: 2021-01-02 13:00:20 INFO: 2021-01-02 13:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2021-01-02 13:00:23 INFO: 2021-01-02 13:00:23 INFO: 2021-01-02 13:00:23 INFO: 2021-01-02 13:00:23 INFO: 2021-01-02 13:00:23 INFO: start trader process 2021-01-02 13:00:23 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2021-01-02 13:00:23 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2021-01-02 13:00:23 INFO: Authenticating with API Key. 2021-01-02 13:00:24 INFO: Connected to WS. 2021-01-02 14:00:20 INFO: 2021-01-02 14:00:20 INFO: 2021-01-02 14:00:20 INFO: 2021-01-02 14:00:20 INFO: 2021-01-02 14:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2021-01-02 14:00:23 INFO: 2021-01-02 14:00:23 INFO: 2021-01-02 14:00:23 INFO: 2021-01-02 14:00:23 INFO: 2021-01-02 14:00:23 INFO: start trader process 2021-01-02 14:00:23 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2021-01-02 14:00:23 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2021-01-02 14:00:23 INFO: Authenticating with API Key. 2021-01-02 14:00:24 INFO: Connected to WS. 2021-01-02 15:00:20 INFO: 2021-01-02 15:00:20 INFO: 2021-01-02 15:00:20 INFO: 2021-01-02 15:00:20 INFO: 2021-01-02 15:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2021-01-02 15:00:24 INFO: 2021-01-02 15:00:24 INFO: 2021-01-02 15:00:24 INFO: 2021-01-02 15:00:24 INFO: 2021-01-02 15:00:24 INFO: start trader process 2021-01-02 15:00:24 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2021-01-02 15:00:24 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2021-01-02 15:00:24 INFO: Authenticating with API Key. 2021-01-02 15:00:25 INFO: Connected to WS. 2021-01-02 16:00:20 INFO: 2021-01-02 16:00:20 INFO: 2021-01-02 16:00:20 INFO: 2021-01-02 16:00:20 INFO: 2021-01-02 16:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2021-01-02 16:00:23 INFO: 2021-01-02 16:00:23 INFO: 2021-01-02 16:00:23 INFO: 2021-01-02 16:00:23 INFO: 2021-01-02 16:00:23 INFO: start trader process 2021-01-02 16:00:23 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2021-01-02 16:00:23 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2021-01-02 16:00:23 INFO: Authenticating with API Key. 2021-01-02 16:00:24 INFO: Connected to WS. 2021-01-02 17:00:20 INFO: 2021-01-02 17:00:20 INFO: 2021-01-02 17:00:20 INFO: 2021-01-02 17:00:20 INFO: 2021-01-02 17:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2021-01-02 17:00:23 INFO: 2021-01-02 17:00:23 INFO: 2021-01-02 17:00:23 INFO: 2021-01-02 17:00:23 INFO: 2021-01-02 17:00:23 INFO: start trader process 2021-01-02 17:00:23 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2021-01-02 17:00:23 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2021-01-02 17:00:23 INFO: Authenticating with API Key. 2021-01-02 17:00:24 INFO: Connected to WS. 2021-01-02 18:00:20 INFO: 2021-01-02 18:00:20 INFO: 2021-01-02 18:00:20 INFO: 2021-01-02 18:00:20 INFO: 2021-01-02 18:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2021-01-02 18:00:23 INFO: 2021-01-02 18:00:23 INFO: 2021-01-02 18:00:23 INFO: 2021-01-02 18:00:23 INFO: 2021-01-02 18:00:23 INFO: start trader process 2021-01-02 18:00:23 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2021-01-02 18:00:23 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2021-01-02 18:00:23 INFO: Authenticating with API Key. 2021-01-02 18:00:24 INFO: Connected to WS. 2021-01-02 19:00:20 INFO: 2021-01-02 19:00:20 INFO: 2021-01-02 19:00:20 INFO: 2021-01-02 19:00:20 INFO: 2021-01-02 19:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2021-01-02 19:00:23 INFO: 2021-01-02 19:00:23 INFO: 2021-01-02 19:00:23 INFO: 2021-01-02 19:00:23 INFO: 2021-01-02 19:00:23 INFO: start trader process 2021-01-02 19:00:23 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2021-01-02 19:00:23 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2021-01-02 19:00:23 INFO: Authenticating with API Key. 2021-01-02 19:00:24 INFO: Connected to WS. 2021-01-02 20:00:20 INFO: 2021-01-02 20:00:20 INFO: 2021-01-02 20:00:20 INFO: 2021-01-02 20:00:20 INFO: 2021-01-02 20:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2021-01-02 20:00:23 INFO: 2021-01-02 20:00:23 INFO: 2021-01-02 20:00:23 INFO: 2021-01-02 20:00:23 INFO: 2021-01-02 20:00:23 INFO: start trader process 2021-01-02 20:00:23 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2021-01-02 20:00:23 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2021-01-02 20:00:23 INFO: Authenticating with API Key. 2021-01-02 20:00:24 INFO: Connected to WS. 2021-01-02 21:00:20 INFO: 2021-01-02 21:00:20 INFO: 2021-01-02 21:00:20 INFO: 2021-01-02 21:00:20 INFO: 2021-01-02 21:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2021-01-02 21:00:23 INFO: 2021-01-02 21:00:23 INFO: 2021-01-02 21:00:23 INFO: 2021-01-02 21:00:23 INFO: 2021-01-02 21:00:23 INFO: start trader process 2021-01-02 21:00:23 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2021-01-02 21:00:23 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2021-01-02 21:00:23 INFO: Authenticating with API Key. 2021-01-02 21:00:24 INFO: Connected to WS. 2021-01-02 22:00:20 INFO: 2021-01-02 22:00:20 INFO: 2021-01-02 22:00:20 INFO: 2021-01-02 22:00:20 INFO: 2021-01-02 22:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2021-01-02 22:00:24 INFO: 2021-01-02 22:00:24 INFO: 2021-01-02 22:00:24 INFO: 2021-01-02 22:00:24 INFO: 2021-01-02 22:00:24 INFO: start trader process 2021-01-02 22:00:24 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2021-01-02 22:00:24 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2021-01-02 22:00:24 INFO: Authenticating with API Key. 2021-01-02 22:00:25 INFO: Connected to WS. 2021-01-02 23:00:20 INFO: 2021-01-02 23:00:20 INFO: 2021-01-02 23:00:20 INFO: 2021-01-02 23:00:20 INFO: 2021-01-02 23:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2021-01-02 23:00:23 INFO: 2021-01-02 23:00:23 INFO: 2021-01-02 23:00:23 INFO: 2021-01-02 23:00:23 INFO: 2021-01-02 23:00:23 INFO: start trader process 2021-01-02 23:00:23 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2021-01-02 23:00:23 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2021-01-02 23:00:23 INFO: Authenticating with API Key. 2021-01-02 23:00:24 INFO: Connected to WS. 2021-01-03 00:00:20 INFO: 2021-01-03 00:00:20 INFO: 2021-01-03 00:00:20 INFO: 2021-01-03 00:00:20 INFO: 2021-01-03 00:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2021-01-03 00:00:23 INFO: 2021-01-03 00:00:23 INFO: 2021-01-03 00:00:23 INFO: 2021-01-03 00:00:23 INFO: 2021-01-03 00:00:23 INFO: start trader process 2021-01-03 00:00:23 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2021-01-03 00:00:23 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2021-01-03 00:00:23 INFO: Authenticating with API Key. 2021-01-03 00:00:24 INFO: Connected to WS. 2021-01-03 01:00:20 INFO: 2021-01-03 01:00:20 INFO: 2021-01-03 01:00:20 INFO: 2021-01-03 01:00:20 INFO: 2021-01-03 01:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2021-01-03 01:00:23 INFO: 2021-01-03 01:00:23 INFO: 2021-01-03 01:00:23 INFO: 2021-01-03 01:00:23 INFO: 2021-01-03 01:00:23 INFO: start trader process 2021-01-03 01:00:23 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2021-01-03 01:00:23 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2021-01-03 01:00:23 INFO: Authenticating with API Key. 2021-01-03 01:00:24 INFO: Connected to WS. 2021-01-03 02:00:20 INFO: 2021-01-03 02:00:20 INFO: 2021-01-03 02:00:20 INFO: 2021-01-03 02:00:20 INFO: 2021-01-03 02:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2021-01-03 02:00:23 INFO: 2021-01-03 02:00:23 INFO: 2021-01-03 02:00:23 INFO: 2021-01-03 02:00:23 INFO: 2021-01-03 02:00:23 INFO: start trader process 2021-01-03 02:00:23 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2021-01-03 02:00:23 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2021-01-03 02:00:23 INFO: Authenticating with API Key. 2021-01-03 02:00:24 INFO: Connected to WS. 2021-01-03 03:00:20 INFO: 2021-01-03 03:00:20 INFO: 2021-01-03 03:00:20 INFO: 2021-01-03 03:00:20 INFO: 2021-01-03 03:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2021-01-03 03:00:23 INFO: 2021-01-03 03:00:23 INFO: 2021-01-03 03:00:23 INFO: 2021-01-03 03:00:23 INFO: 2021-01-03 03:00:23 INFO: start trader process 2021-01-03 03:00:23 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2021-01-03 03:00:23 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2021-01-03 03:00:23 INFO: Authenticating with API Key. 2021-01-03 03:00:24 INFO: Connected to WS. 2021-01-03 04:00:20 INFO: 2021-01-03 04:00:20 INFO: 2021-01-03 04:00:20 INFO: 2021-01-03 04:00:20 INFO: 2021-01-03 04:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2021-01-03 04:00:23 INFO: 2021-01-03 04:00:23 INFO: 2021-01-03 04:00:23 INFO: 2021-01-03 04:00:23 INFO: 2021-01-03 04:00:23 INFO: start trader process 2021-01-03 04:00:23 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2021-01-03 04:00:23 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2021-01-03 04:00:23 INFO: Authenticating with API Key. 2021-01-03 04:00:24 INFO: Connected to WS. 2021-01-03 05:00:20 INFO: 2021-01-03 05:00:20 INFO: 2021-01-03 05:00:20 INFO: 2021-01-03 05:00:20 INFO: 2021-01-03 05:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2021-01-03 05:00:23 INFO: 2021-01-03 05:00:23 INFO: 2021-01-03 05:00:23 INFO: 2021-01-03 05:00:23 INFO: 2021-01-03 05:00:23 INFO: start trader process 2021-01-03 05:00:23 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2021-01-03 05:00:23 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2021-01-03 05:00:23 INFO: Authenticating with API Key. 2021-01-03 05:00:24 INFO: Connected to WS. 2021-01-03 06:00:20 INFO: 2021-01-03 06:00:20 INFO: 2021-01-03 06:00:20 INFO: 2021-01-03 06:00:20 INFO: 2021-01-03 06:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2021-01-03 06:00:23 INFO: 2021-01-03 06:00:23 INFO: 2021-01-03 06:00:23 INFO: 2021-01-03 06:00:23 INFO: 2021-01-03 06:00:23 INFO: start trader process 2021-01-03 06:00:23 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2021-01-03 06:00:23 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2021-01-03 06:00:23 INFO: Authenticating with API Key. 2021-01-03 06:00:24 INFO: Connected to WS. 2021-01-03 07:00:20 INFO: 2021-01-03 07:00:20 INFO: 2021-01-03 07:00:20 INFO: 2021-01-03 07:00:20 INFO: 2021-01-03 07:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2021-01-03 07:00:23 INFO: 2021-01-03 07:00:23 INFO: 2021-01-03 07:00:23 INFO: 2021-01-03 07:00:23 INFO: 2021-01-03 07:00:23 INFO: start trader process 2021-01-03 07:00:23 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2021-01-03 07:00:23 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2021-01-03 07:00:23 INFO: Authenticating with API Key. 2021-01-03 07:00:24 INFO: Connected to WS. 2021-01-03 08:00:20 INFO: 2021-01-03 08:00:20 INFO: 2021-01-03 08:00:20 INFO: 2021-01-03 08:00:20 INFO: 2021-01-03 08:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2021-01-03 08:00:23 INFO: 2021-01-03 08:00:23 INFO: 2021-01-03 08:00:23 INFO: 2021-01-03 08:00:23 INFO: 2021-01-03 08:00:23 INFO: start trader process 2021-01-03 08:00:23 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2021-01-03 08:00:23 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2021-01-03 08:00:23 INFO: Authenticating with API Key. 2021-01-03 08:00:24 INFO: Connected to WS. 2021-01-03 09:00:20 INFO: 2021-01-03 09:00:20 INFO: 2021-01-03 09:00:20 INFO: 2021-01-03 09:00:20 INFO: 2021-01-03 09:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2021-01-03 09:00:23 INFO: 2021-01-03 09:00:23 INFO: 2021-01-03 09:00:23 INFO: 2021-01-03 09:00:23 INFO: 2021-01-03 09:00:23 INFO: start trader process 2021-01-03 09:00:23 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2021-01-03 09:00:23 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2021-01-03 09:00:23 INFO: Authenticating with API Key. 2021-01-03 09:00:24 INFO: Connected to WS. 2021-01-03 10:00:20 INFO: 2021-01-03 10:00:20 INFO: 2021-01-03 10:00:20 INFO: 2021-01-03 10:00:20 INFO: 2021-01-03 10:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2021-01-03 10:00:23 INFO: 2021-01-03 10:00:23 INFO: 2021-01-03 10:00:23 INFO: 2021-01-03 10:00:23 INFO: 2021-01-03 10:00:23 INFO: start trader process 2021-01-03 10:00:23 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2021-01-03 10:00:23 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2021-01-03 10:00:23 INFO: Authenticating with API Key. 2021-01-03 10:00:24 INFO: Connected to WS. 2021-01-03 11:00:20 INFO: 2021-01-03 11:00:20 INFO: 2021-01-03 11:00:20 INFO: 2021-01-03 11:00:20 INFO: 2021-01-03 11:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2021-01-03 11:00:23 INFO: 2021-01-03 11:00:23 INFO: 2021-01-03 11:00:23 INFO: 2021-01-03 11:00:23 INFO: 2021-01-03 11:00:23 INFO: start trader process 2021-01-03 11:00:23 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2021-01-03 11:00:23 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2021-01-03 11:00:23 INFO: Authenticating with API Key. 2021-01-03 11:00:24 INFO: Connected to WS. 2021-01-03 12:00:20 INFO: 2021-01-03 12:00:20 INFO: 2021-01-03 12:00:20 INFO: 2021-01-03 12:00:20 INFO: 2021-01-03 12:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2021-01-03 12:00:24 INFO: 2021-01-03 12:00:24 INFO: 2021-01-03 12:00:24 INFO: 2021-01-03 12:00:24 INFO: 2021-01-03 12:00:24 INFO: start trader process 2021-01-03 12:00:24 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2021-01-03 12:00:24 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2021-01-03 12:00:24 INFO: Authenticating with API Key. 2021-01-03 12:00:25 INFO: Connected to WS. 2021-01-03 13:00:20 INFO: 2021-01-03 13:00:20 INFO: 2021-01-03 13:00:20 INFO: 2021-01-03 13:00:20 INFO: 2021-01-03 13:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2021-01-03 13:00:23 INFO: 2021-01-03 13:00:23 INFO: 2021-01-03 13:00:23 INFO: 2021-01-03 13:00:23 INFO: 2021-01-03 13:00:23 INFO: start trader process 2021-01-03 13:00:23 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2021-01-03 13:00:23 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2021-01-03 13:00:23 INFO: Authenticating with API Key. 2021-01-03 13:00:24 INFO: Connected to WS. 2021-01-03 14:00:20 INFO: 2021-01-03 14:00:20 INFO: 2021-01-03 14:00:20 INFO: 2021-01-03 14:00:20 INFO: 2021-01-03 14:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2021-01-03 14:00:23 INFO: 2021-01-03 14:00:23 INFO: 2021-01-03 14:00:23 INFO: 2021-01-03 14:00:23 INFO: 2021-01-03 14:00:23 INFO: start trader process 2021-01-03 14:00:23 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2021-01-03 14:00:23 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2021-01-03 14:00:23 INFO: Authenticating with API Key. 2021-01-03 14:00:24 INFO: Connected to WS. 2021-01-03 15:00:20 INFO: 2021-01-03 15:00:20 INFO: 2021-01-03 15:00:20 INFO: 2021-01-03 15:00:20 INFO: 2021-01-03 15:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2021-01-03 15:00:23 INFO: 2021-01-03 15:00:23 INFO: 2021-01-03 15:00:23 INFO: 2021-01-03 15:00:23 INFO: 2021-01-03 15:00:23 INFO: start trader process 2021-01-03 15:00:23 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2021-01-03 15:00:23 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2021-01-03 15:00:23 INFO: Authenticating with API Key. 2021-01-03 15:00:24 INFO: Connected to WS. 2021-01-03 16:00:20 INFO: 2021-01-03 16:00:20 INFO: 2021-01-03 16:00:20 INFO: 2021-01-03 16:00:20 INFO: 2021-01-03 16:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2021-01-03 16:00:23 INFO: 2021-01-03 16:00:23 INFO: 2021-01-03 16:00:23 INFO: 2021-01-03 16:00:23 INFO: 2021-01-03 16:00:23 INFO: start trader process 2021-01-03 16:00:23 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2021-01-03 16:00:23 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2021-01-03 16:00:23 INFO: Authenticating with API Key. 2021-01-03 16:00:24 INFO: Connected to WS. 2021-01-03 17:00:20 INFO: 2021-01-03 17:00:20 INFO: 2021-01-03 17:00:20 INFO: 2021-01-03 17:00:20 INFO: 2021-01-03 17:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2021-01-03 17:00:23 INFO: 2021-01-03 17:00:23 INFO: 2021-01-03 17:00:23 INFO: 2021-01-03 17:00:23 INFO: 2021-01-03 17:00:23 INFO: start trader process 2021-01-03 17:00:23 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2021-01-03 17:00:23 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2021-01-03 17:00:23 INFO: Authenticating with API Key. 2021-01-03 17:00:24 INFO: Connected to WS. 2021-01-03 18:00:20 INFO: 2021-01-03 18:00:20 INFO: 2021-01-03 18:00:20 INFO: 2021-01-03 18:00:20 INFO: 2021-01-03 18:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2021-01-03 18:00:23 INFO: 2021-01-03 18:00:23 INFO: 2021-01-03 18:00:23 INFO: 2021-01-03 18:00:23 INFO: 2021-01-03 18:00:23 INFO: start trader process 2021-01-03 18:00:23 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2021-01-03 18:00:23 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2021-01-03 18:00:23 INFO: Authenticating with API Key. 2021-01-03 18:00:24 INFO: Connected to WS. 2021-01-03 19:00:20 INFO: 2021-01-03 19:00:20 INFO: 2021-01-03 19:00:20 INFO: 2021-01-03 19:00:20 INFO: 2021-01-03 19:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2021-01-03 19:00:23 INFO: 2021-01-03 19:00:23 INFO: 2021-01-03 19:00:23 INFO: 2021-01-03 19:00:23 INFO: 2021-01-03 19:00:23 INFO: start trader process 2021-01-03 19:00:23 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2021-01-03 19:00:23 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2021-01-03 19:00:23 INFO: Authenticating with API Key. 2021-01-03 19:00:24 INFO: Connected to WS. 2021-01-03 20:00:20 INFO: 2021-01-03 20:00:20 INFO: 2021-01-03 20:00:20 INFO: 2021-01-03 20:00:20 INFO: 2021-01-03 20:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2021-01-03 20:00:23 INFO: 2021-01-03 20:00:23 INFO: 2021-01-03 20:00:23 INFO: 2021-01-03 20:00:23 INFO: 2021-01-03 20:00:23 INFO: start trader process 2021-01-03 20:00:23 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2021-01-03 20:00:23 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2021-01-03 20:00:23 INFO: Authenticating with API Key. 2021-01-03 20:00:24 INFO: Connected to WS. 2021-01-03 21:00:20 INFO: 2021-01-03 21:00:20 INFO: 2021-01-03 21:00:20 INFO: 2021-01-03 21:00:20 INFO: 2021-01-03 21:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2021-01-03 21:00:23 INFO: 2021-01-03 21:00:23 INFO: 2021-01-03 21:00:23 INFO: 2021-01-03 21:00:23 INFO: 2021-01-03 21:00:23 INFO: start trader process 2021-01-03 21:00:23 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2021-01-03 21:00:23 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2021-01-03 21:00:23 INFO: Authenticating with API Key. 2021-01-03 21:00:24 INFO: Connected to WS. 2021-01-03 22:00:20 INFO: 2021-01-03 22:00:20 INFO: 2021-01-03 22:00:20 INFO: 2021-01-03 22:00:20 INFO: 2021-01-03 22:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2021-01-03 22:00:23 INFO: 2021-01-03 22:00:23 INFO: 2021-01-03 22:00:23 INFO: 2021-01-03 22:00:23 INFO: 2021-01-03 22:00:23 INFO: start trader process 2021-01-03 22:00:23 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2021-01-03 22:00:23 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2021-01-03 22:00:23 INFO: Authenticating with API Key. 2021-01-03 22:00:24 INFO: Connected to WS. 2021-01-03 23:00:20 INFO: 2021-01-03 23:00:20 INFO: 2021-01-03 23:00:20 INFO: 2021-01-03 23:00:20 INFO: 2021-01-03 23:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2021-01-03 23:00:23 INFO: 2021-01-03 23:00:23 INFO: 2021-01-03 23:00:23 INFO: 2021-01-03 23:00:23 INFO: 2021-01-03 23:00:23 INFO: start trader process 2021-01-03 23:00:23 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2021-01-03 23:00:23 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2021-01-03 23:00:23 INFO: Authenticating with API Key. 2021-01-03 23:00:24 INFO: Connected to WS. 2021-01-04 00:00:20 INFO: 2021-01-04 00:00:20 INFO: 2021-01-04 00:00:20 INFO: 2021-01-04 00:00:20 INFO: 2021-01-04 00:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2021-01-04 00:00:23 INFO: 2021-01-04 00:00:23 INFO: 2021-01-04 00:00:23 INFO: 2021-01-04 00:00:23 INFO: 2021-01-04 00:00:23 INFO: start trader process 2021-01-04 00:00:23 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2021-01-04 00:00:23 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2021-01-04 00:00:23 INFO: Authenticating with API Key. 2021-01-04 00:00:24 INFO: Connected to WS. 2021-01-04 01:00:20 INFO: 2021-01-04 01:00:20 INFO: 2021-01-04 01:00:20 INFO: 2021-01-04 01:00:20 INFO: 2021-01-04 01:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2021-01-04 01:00:23 INFO: 2021-01-04 01:00:23 INFO: 2021-01-04 01:00:23 INFO: 2021-01-04 01:00:23 INFO: 2021-01-04 01:00:23 INFO: start trader process 2021-01-04 01:00:23 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2021-01-04 01:00:23 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2021-01-04 01:00:23 INFO: Authenticating with API Key. 2021-01-04 01:00:24 INFO: Connected to WS. 2021-01-04 02:00:20 INFO: 2021-01-04 02:00:20 INFO: 2021-01-04 02:00:20 INFO: 2021-01-04 02:00:20 INFO: 2021-01-04 02:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2021-01-04 02:00:23 INFO: 2021-01-04 02:00:23 INFO: 2021-01-04 02:00:23 INFO: 2021-01-04 02:00:23 INFO: 2021-01-04 02:00:23 INFO: start trader process 2021-01-04 02:00:23 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2021-01-04 02:00:23 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2021-01-04 02:00:23 INFO: Authenticating with API Key. 2021-01-04 02:00:24 INFO: Connected to WS. 2021-01-04 03:00:20 INFO: 2021-01-04 03:00:20 INFO: 2021-01-04 03:00:20 INFO: 2021-01-04 03:00:20 INFO: 2021-01-04 03:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2021-01-04 03:00:23 INFO: 2021-01-04 03:00:23 INFO: 2021-01-04 03:00:23 INFO: 2021-01-04 03:00:23 INFO: 2021-01-04 03:00:23 INFO: start trader process 2021-01-04 03:00:23 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2021-01-04 03:00:23 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2021-01-04 03:00:23 INFO: Authenticating with API Key. 2021-01-04 03:00:24 INFO: Connected to WS. 2021-01-04 04:00:20 INFO: 2021-01-04 04:00:20 INFO: 2021-01-04 04:00:20 INFO: 2021-01-04 04:00:20 INFO: 2021-01-04 04:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2021-01-04 04:00:23 INFO: 2021-01-04 04:00:23 INFO: 2021-01-04 04:00:23 INFO: 2021-01-04 04:00:23 INFO: 2021-01-04 04:00:23 INFO: start trader process 2021-01-04 04:00:23 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2021-01-04 04:00:23 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2021-01-04 04:00:23 INFO: Authenticating with API Key. 2021-01-04 04:00:24 INFO: Connected to WS. 2021-01-04 05:00:20 INFO: 2021-01-04 05:00:20 INFO: 2021-01-04 05:00:20 INFO: 2021-01-04 05:00:20 INFO: 2021-01-04 05:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2021-01-04 05:00:23 INFO: 2021-01-04 05:00:23 INFO: 2021-01-04 05:00:23 INFO: 2021-01-04 05:00:23 INFO: 2021-01-04 05:00:23 INFO: start trader process 2021-01-04 05:00:23 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2021-01-04 05:00:23 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2021-01-04 05:00:23 INFO: Authenticating with API Key. 2021-01-04 05:00:24 INFO: Connected to WS. 2021-01-04 06:00:20 INFO: 2021-01-04 06:00:20 INFO: 2021-01-04 06:00:20 INFO: 2021-01-04 06:00:20 INFO: 2021-01-04 06:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2021-01-04 06:00:23 INFO: 2021-01-04 06:00:23 INFO: 2021-01-04 06:00:23 INFO: 2021-01-04 06:00:23 INFO: 2021-01-04 06:00:23 INFO: start trader process 2021-01-04 06:00:23 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2021-01-04 06:00:23 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2021-01-04 06:00:23 INFO: Authenticating with API Key. 2021-01-04 06:00:24 INFO: Connected to WS. 2021-01-04 07:00:20 INFO: 2021-01-04 07:00:20 INFO: 2021-01-04 07:00:20 INFO: 2021-01-04 07:00:20 INFO: 2021-01-04 07:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2021-01-04 07:00:23 INFO: 2021-01-04 07:00:23 INFO: 2021-01-04 07:00:23 INFO: 2021-01-04 07:00:23 INFO: 2021-01-04 07:00:23 INFO: start trader process 2021-01-04 07:00:23 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2021-01-04 07:00:23 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2021-01-04 07:00:23 INFO: Authenticating with API Key. 2021-01-04 07:00:24 INFO: Connected to WS. 2021-01-04 08:00:20 INFO: 2021-01-04 08:00:20 INFO: 2021-01-04 08:00:20 INFO: 2021-01-04 08:00:20 INFO: 2021-01-04 08:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2021-01-04 08:00:23 INFO: 2021-01-04 08:00:23 INFO: 2021-01-04 08:00:23 INFO: 2021-01-04 08:00:23 INFO: 2021-01-04 08:00:23 INFO: start trader process 2021-01-04 08:00:23 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2021-01-04 08:00:23 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2021-01-04 08:00:23 INFO: Authenticating with API Key. 2021-01-04 08:00:24 INFO: Connected to WS. 2021-01-04 09:00:20 INFO: 2021-01-04 09:00:20 INFO: 2021-01-04 09:00:20 INFO: 2021-01-04 09:00:20 INFO: 2021-01-04 09:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2021-01-04 09:00:23 INFO: 2021-01-04 09:00:23 INFO: 2021-01-04 09:00:23 INFO: 2021-01-04 09:00:23 INFO: 2021-01-04 09:00:23 INFO: start trader process 2021-01-04 09:00:23 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2021-01-04 09:00:23 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2021-01-04 09:00:23 INFO: Authenticating with API Key. 2021-01-04 09:00:24 INFO: Connected to WS. 2021-01-04 10:00:25 INFO: 2021-01-04 10:00:25 INFO: 2021-01-04 10:00:25 INFO: 2021-01-04 10:00:25 INFO: 2021-01-04 10:00:25 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2021-01-04 10:00:28 INFO: 2021-01-04 10:00:28 INFO: 2021-01-04 10:00:28 INFO: 2021-01-04 10:00:28 INFO: 2021-01-04 10:00:28 INFO: start trader process 2021-01-04 10:00:28 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2021-01-04 10:00:28 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2021-01-04 10:00:28 INFO: Authenticating with API Key. 2021-01-04 10:00:29 INFO: Connected to WS. 2021-01-04 11:00:20 INFO: 2021-01-04 11:00:20 INFO: 2021-01-04 11:00:20 INFO: 2021-01-04 11:00:20 INFO: 2021-01-04 11:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2021-01-04 11:00:23 INFO: 2021-01-04 11:00:23 INFO: 2021-01-04 11:00:23 INFO: 2021-01-04 11:00:23 INFO: 2021-01-04 11:00:23 INFO: start trader process 2021-01-04 11:00:23 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2021-01-04 11:00:23 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2021-01-04 11:00:23 INFO: Authenticating with API Key. 2021-01-04 11:00:24 INFO: Connected to WS. 2021-01-04 12:00:20 INFO: 2021-01-04 12:00:20 INFO: 2021-01-04 12:00:20 INFO: 2021-01-04 12:00:20 INFO: 2021-01-04 12:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2021-01-04 12:00:23 INFO: 2021-01-04 12:00:23 INFO: 2021-01-04 12:00:23 INFO: 2021-01-04 12:00:23 INFO: 2021-01-04 12:00:23 INFO: start trader process 2021-01-04 12:00:23 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2021-01-04 12:00:23 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2021-01-04 12:00:23 INFO: Authenticating with API Key. 2021-01-04 12:00:24 INFO: Connected to WS. 2021-01-04 13:00:20 INFO: 2021-01-04 13:00:20 INFO: 2021-01-04 13:00:20 INFO: 2021-01-04 13:00:20 INFO: 2021-01-04 13:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2021-01-04 13:00:23 INFO: 2021-01-04 13:00:23 INFO: 2021-01-04 13:00:23 INFO: 2021-01-04 13:00:23 INFO: 2021-01-04 13:00:23 INFO: start trader process 2021-01-04 13:00:23 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2021-01-04 13:00:23 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2021-01-04 13:00:23 INFO: Authenticating with API Key. 2021-01-04 13:00:24 INFO: Connected to WS. 2021-01-04 14:00:20 INFO: 2021-01-04 14:00:20 INFO: 2021-01-04 14:00:20 INFO: 2021-01-04 14:00:20 INFO: 2021-01-04 14:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2021-01-04 14:00:23 INFO: 2021-01-04 14:00:23 INFO: 2021-01-04 14:00:23 INFO: 2021-01-04 14:00:23 INFO: 2021-01-04 14:00:23 INFO: start trader process 2021-01-04 14:00:23 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2021-01-04 14:00:23 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2021-01-04 14:00:23 INFO: Authenticating with API Key. 2021-01-04 14:00:24 INFO: Connected to WS. 2021-01-04 15:00:20 INFO: 2021-01-04 15:00:20 INFO: 2021-01-04 15:00:20 INFO: 2021-01-04 15:00:20 INFO: 2021-01-04 15:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2021-01-04 15:00:23 INFO: 2021-01-04 15:00:23 INFO: 2021-01-04 15:00:23 INFO: 2021-01-04 15:00:23 INFO: 2021-01-04 15:00:23 INFO: start trader process 2021-01-04 15:00:23 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2021-01-04 15:00:23 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2021-01-04 15:00:23 INFO: Authenticating with API Key. 2021-01-04 15:00:24 INFO: Connected to WS. 2021-01-04 16:00:20 INFO: 2021-01-04 16:00:20 INFO: 2021-01-04 16:00:20 INFO: 2021-01-04 16:00:20 INFO: 2021-01-04 16:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2021-01-04 16:00:23 INFO: 2021-01-04 16:00:23 INFO: 2021-01-04 16:00:23 INFO: 2021-01-04 16:00:23 INFO: 2021-01-04 16:00:23 INFO: start trader process 2021-01-04 16:00:23 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2021-01-04 16:00:23 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2021-01-04 16:00:23 INFO: Authenticating with API Key. 2021-01-04 16:00:24 INFO: Connected to WS. 2021-01-04 17:00:20 INFO: 2021-01-04 17:00:20 INFO: 2021-01-04 17:00:20 INFO: 2021-01-04 17:00:20 INFO: 2021-01-04 17:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2021-01-04 17:00:23 INFO: 2021-01-04 17:00:23 INFO: 2021-01-04 17:00:23 INFO: 2021-01-04 17:00:23 INFO: 2021-01-04 17:00:23 INFO: start trader process 2021-01-04 17:00:23 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2021-01-04 17:00:23 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2021-01-04 17:00:23 INFO: Authenticating with API Key. 2021-01-04 17:00:24 INFO: Connected to WS. 2021-01-04 18:00:20 INFO: 2021-01-04 18:00:20 INFO: 2021-01-04 18:00:20 INFO: 2021-01-04 18:00:20 INFO: 2021-01-04 18:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2021-01-04 18:00:23 INFO: 2021-01-04 18:00:23 INFO: 2021-01-04 18:00:23 INFO: 2021-01-04 18:00:23 INFO: 2021-01-04 18:00:23 INFO: start trader process 2021-01-04 18:00:23 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2021-01-04 18:00:23 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2021-01-04 18:00:23 INFO: Authenticating with API Key. 2021-01-04 18:00:24 INFO: Connected to WS. 2021-01-04 19:00:20 INFO: 2021-01-04 19:00:21 INFO: 2021-01-04 19:00:21 INFO: 2021-01-04 19:00:21 INFO: 2021-01-04 19:00:21 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2021-01-04 19:00:24 INFO: 2021-01-04 19:00:24 INFO: 2021-01-04 19:00:24 INFO: 2021-01-04 19:00:24 INFO: 2021-01-04 19:00:24 INFO: start trader process 2021-01-04 19:00:24 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2021-01-04 19:00:24 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2021-01-04 19:00:24 INFO: Authenticating with API Key. 2021-01-04 19:00:25 INFO: Connected to WS. 2021-01-04 20:00:20 INFO: 2021-01-04 20:00:20 INFO: 2021-01-04 20:00:20 INFO: 2021-01-04 20:00:20 INFO: 2021-01-04 20:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2021-01-04 20:00:23 INFO: 2021-01-04 20:00:23 INFO: 2021-01-04 20:00:23 INFO: 2021-01-04 20:00:23 INFO: 2021-01-04 20:00:23 INFO: start trader process 2021-01-04 20:00:23 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2021-01-04 20:00:23 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2021-01-04 20:00:23 INFO: Authenticating with API Key. 2021-01-04 20:00:24 INFO: Connected to WS. 2021-01-04 21:00:20 INFO: 2021-01-04 21:00:20 INFO: 2021-01-04 21:00:20 INFO: 2021-01-04 21:00:20 INFO: 2021-01-04 21:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2021-01-04 21:00:23 INFO: 2021-01-04 21:00:23 INFO: 2021-01-04 21:00:23 INFO: 2021-01-04 21:00:23 INFO: 2021-01-04 21:00:23 INFO: start trader process 2021-01-04 21:00:23 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2021-01-04 21:00:23 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2021-01-04 21:00:23 INFO: Authenticating with API Key. 2021-01-04 21:00:24 INFO: Connected to WS. 2021-01-04 22:00:20 INFO: 2021-01-04 22:00:20 INFO: 2021-01-04 22:00:20 INFO: 2021-01-04 22:00:20 INFO: 2021-01-04 22:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2021-01-04 22:00:23 INFO: 2021-01-04 22:00:23 INFO: 2021-01-04 22:00:23 INFO: 2021-01-04 22:00:23 INFO: 2021-01-04 22:00:23 INFO: start trader process 2021-01-04 22:00:23 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2021-01-04 22:00:23 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2021-01-04 22:00:23 INFO: Authenticating with API Key. 2021-01-04 22:00:24 INFO: Connected to WS. 2021-01-04 23:00:20 INFO: 2021-01-04 23:00:20 INFO: 2021-01-04 23:00:20 INFO: 2021-01-04 23:00:20 INFO: 2021-01-04 23:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2021-01-04 23:00:23 INFO: 2021-01-04 23:00:23 INFO: 2021-01-04 23:00:23 INFO: 2021-01-04 23:00:23 INFO: 2021-01-04 23:00:23 INFO: start trader process 2021-01-04 23:00:23 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2021-01-04 23:00:23 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2021-01-04 23:00:23 INFO: Authenticating with API Key. 2021-01-04 23:00:24 INFO: Connected to WS. 2021-01-05 00:00:20 INFO: 2021-01-05 00:00:20 INFO: 2021-01-05 00:00:20 INFO: 2021-01-05 00:00:20 INFO: 2021-01-05 00:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2021-01-05 00:00:23 INFO: 2021-01-05 00:00:23 INFO: 2021-01-05 00:00:23 INFO: 2021-01-05 00:00:23 INFO: 2021-01-05 00:00:23 INFO: start trader process 2021-01-05 00:00:23 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2021-01-05 00:00:23 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2021-01-05 00:00:23 INFO: Authenticating with API Key. 2021-01-05 00:00:24 INFO: Connected to WS. 2021-01-05 01:00:20 INFO: 2021-01-05 01:00:20 INFO: 2021-01-05 01:00:20 INFO: 2021-01-05 01:00:20 INFO: 2021-01-05 01:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2021-01-05 01:00:23 INFO: 2021-01-05 01:00:23 INFO: 2021-01-05 01:00:23 INFO: 2021-01-05 01:00:23 INFO: 2021-01-05 01:00:23 INFO: start trader process 2021-01-05 01:00:23 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2021-01-05 01:00:23 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2021-01-05 01:00:23 INFO: Authenticating with API Key. 2021-01-05 01:00:24 INFO: Connected to WS. 2021-01-05 02:00:20 INFO: 2021-01-05 02:00:20 INFO: 2021-01-05 02:00:20 INFO: 2021-01-05 02:00:20 INFO: 2021-01-05 02:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2021-01-05 02:00:23 INFO: 2021-01-05 02:00:23 INFO: 2021-01-05 02:00:23 INFO: 2021-01-05 02:00:23 INFO: 2021-01-05 02:00:23 INFO: start trader process 2021-01-05 02:00:23 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2021-01-05 02:00:23 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2021-01-05 02:00:23 INFO: Authenticating with API Key. 2021-01-05 02:00:24 INFO: Connected to WS. 2021-01-05 03:00:20 INFO: 2021-01-05 03:00:20 INFO: 2021-01-05 03:00:20 INFO: 2021-01-05 03:00:20 INFO: 2021-01-05 03:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2021-01-05 03:00:23 INFO: 2021-01-05 03:00:23 INFO: 2021-01-05 03:00:23 INFO: 2021-01-05 03:00:23 INFO: 2021-01-05 03:00:23 INFO: start trader process 2021-01-05 03:00:23 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2021-01-05 03:00:23 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2021-01-05 03:00:23 INFO: Authenticating with API Key. 2021-01-05 03:00:24 INFO: Connected to WS. 2021-01-05 04:00:20 INFO: 2021-01-05 04:00:20 INFO: 2021-01-05 04:00:20 INFO: 2021-01-05 04:00:20 INFO: 2021-01-05 04:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2021-01-05 04:00:23 INFO: 2021-01-05 04:00:23 INFO: 2021-01-05 04:00:23 INFO: 2021-01-05 04:00:23 INFO: 2021-01-05 04:00:23 INFO: start trader process 2021-01-05 04:00:23 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2021-01-05 04:00:23 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2021-01-05 04:00:23 INFO: Authenticating with API Key. 2021-01-05 04:00:24 INFO: Connected to WS. 2021-01-05 05:00:34 INFO: 2021-01-05 05:00:34 INFO: 2021-01-05 05:00:34 INFO: 2021-01-05 05:00:34 INFO: 2021-01-05 05:00:34 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2021-01-05 05:00:37 INFO: 2021-01-05 05:00:37 INFO: 2021-01-05 05:00:37 INFO: 2021-01-05 05:00:37 INFO: 2021-01-05 05:00:37 INFO: start trader process 2021-01-05 05:00:37 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2021-01-05 05:00:37 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2021-01-05 05:00:37 INFO: Authenticating with API Key. 2021-01-05 05:00:38 INFO: Connected to WS. 2021-01-05 06:00:20 INFO: 2021-01-05 06:00:20 INFO: 2021-01-05 06:00:20 INFO: 2021-01-05 06:00:20 INFO: 2021-01-05 06:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2021-01-05 06:00:23 INFO: 2021-01-05 06:00:23 INFO: 2021-01-05 06:00:23 INFO: 2021-01-05 06:00:23 INFO: 2021-01-05 06:00:23 INFO: start trader process 2021-01-05 06:00:23 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2021-01-05 06:00:23 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2021-01-05 06:00:23 INFO: Authenticating with API Key. 2021-01-05 06:00:24 INFO: Connected to WS. 2021-01-05 07:00:20 INFO: 2021-01-05 07:00:20 INFO: 2021-01-05 07:00:20 INFO: 2021-01-05 07:00:20 INFO: 2021-01-05 07:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2021-01-05 07:00:23 INFO: 2021-01-05 07:00:23 INFO: 2021-01-05 07:00:23 INFO: 2021-01-05 07:00:23 INFO: 2021-01-05 07:00:23 INFO: start trader process 2021-01-05 07:00:23 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2021-01-05 07:00:23 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2021-01-05 07:00:23 INFO: Authenticating with API Key. 2021-01-05 07:00:24 INFO: Connected to WS. 2021-01-05 08:00:20 INFO: 2021-01-05 08:00:20 INFO: 2021-01-05 08:00:20 INFO: 2021-01-05 08:00:20 INFO: 2021-01-05 08:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2021-01-05 08:00:23 INFO: 2021-01-05 08:00:23 INFO: 2021-01-05 08:00:23 INFO: 2021-01-05 08:00:23 INFO: 2021-01-05 08:00:23 INFO: start trader process 2021-01-05 08:00:23 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2021-01-05 08:00:23 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2021-01-05 08:00:23 INFO: Authenticating with API Key. 2021-01-05 08:00:24 INFO: Connected to WS. 2021-01-05 09:00:20 INFO: 2021-01-05 09:00:20 INFO: 2021-01-05 09:00:20 INFO: 2021-01-05 09:00:20 INFO: 2021-01-05 09:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2021-01-05 09:00:23 INFO: 2021-01-05 09:00:23 INFO: 2021-01-05 09:00:23 INFO: 2021-01-05 09:00:23 INFO: 2021-01-05 09:00:23 INFO: start trader process 2021-01-05 09:00:23 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2021-01-05 09:00:23 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2021-01-05 09:00:23 INFO: Authenticating with API Key. 2021-01-05 09:00:24 INFO: Connected to WS. 2021-01-05 10:00:20 INFO: 2021-01-05 10:00:20 INFO: 2021-01-05 10:00:20 INFO: 2021-01-05 10:00:20 INFO: 2021-01-05 10:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2021-01-05 10:00:23 INFO: 2021-01-05 10:00:23 INFO: 2021-01-05 10:00:23 INFO: 2021-01-05 10:00:23 INFO: 2021-01-05 10:00:23 INFO: start trader process 2021-01-05 10:00:23 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2021-01-05 10:00:23 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2021-01-05 10:00:23 INFO: Authenticating with API Key. 2021-01-05 10:00:24 INFO: Connected to WS. 2021-01-05 11:00:20 INFO: 2021-01-05 11:00:20 INFO: 2021-01-05 11:00:20 INFO: 2021-01-05 11:00:20 INFO: 2021-01-05 11:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2021-01-05 11:00:23 INFO: 2021-01-05 11:00:23 INFO: 2021-01-05 11:00:23 INFO: 2021-01-05 11:00:23 INFO: 2021-01-05 11:00:23 INFO: start trader process 2021-01-05 11:00:23 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2021-01-05 11:00:23 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2021-01-05 11:00:23 INFO: Authenticating with API Key. 2021-01-05 11:00:24 INFO: Connected to WS. 2021-01-05 12:00:20 INFO: 2021-01-05 12:00:20 INFO: 2021-01-05 12:00:20 INFO: 2021-01-05 12:00:20 INFO: 2021-01-05 12:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2021-01-05 12:00:23 INFO: 2021-01-05 12:00:23 INFO: 2021-01-05 12:00:23 INFO: 2021-01-05 12:00:23 INFO: 2021-01-05 12:00:23 INFO: start trader process 2021-01-05 12:00:23 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2021-01-05 12:00:23 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2021-01-05 12:00:23 INFO: Authenticating with API Key. 2021-01-05 12:00:24 INFO: Connected to WS. 2021-01-05 13:00:20 INFO: 2021-01-05 13:00:20 INFO: 2021-01-05 13:00:20 INFO: 2021-01-05 13:00:20 INFO: 2021-01-05 13:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2021-01-05 13:00:23 INFO: 2021-01-05 13:00:23 INFO: 2021-01-05 13:00:23 INFO: 2021-01-05 13:00:23 INFO: 2021-01-05 13:00:23 INFO: start trader process 2021-01-05 13:00:23 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2021-01-05 13:00:23 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2021-01-05 13:00:23 INFO: Authenticating with API Key. 2021-01-05 13:00:24 INFO: Connected to WS. 2021-01-05 14:00:20 INFO: 2021-01-05 14:00:20 INFO: 2021-01-05 14:00:20 INFO: 2021-01-05 14:00:20 INFO: 2021-01-05 14:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2021-01-05 14:00:23 INFO: 2021-01-05 14:00:23 INFO: 2021-01-05 14:00:23 INFO: 2021-01-05 14:00:23 INFO: 2021-01-05 14:00:23 INFO: start trader process 2021-01-05 14:00:23 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2021-01-05 14:00:23 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2021-01-05 14:00:23 INFO: Authenticating with API Key. 2021-01-05 14:00:24 INFO: Connected to WS. 2021-01-05 15:00:20 INFO: 2021-01-05 15:00:20 INFO: 2021-01-05 15:00:20 INFO: 2021-01-05 15:00:20 INFO: 2021-01-05 15:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2021-01-05 15:00:24 INFO: 2021-01-05 15:00:24 INFO: 2021-01-05 15:00:24 INFO: 2021-01-05 15:00:24 INFO: 2021-01-05 15:00:24 INFO: start trader process 2021-01-05 15:00:24 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2021-01-05 15:00:24 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2021-01-05 15:00:24 INFO: Authenticating with API Key. 2021-01-05 15:00:25 INFO: Connected to WS. 2021-01-05 16:00:20 INFO: 2021-01-05 16:00:20 INFO: 2021-01-05 16:00:20 INFO: 2021-01-05 16:00:20 INFO: 2021-01-05 16:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2021-01-05 16:00:23 INFO: 2021-01-05 16:00:23 INFO: 2021-01-05 16:00:23 INFO: 2021-01-05 16:00:23 INFO: 2021-01-05 16:00:23 INFO: start trader process 2021-01-05 16:00:23 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2021-01-05 16:00:23 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2021-01-05 16:00:23 INFO: Authenticating with API Key. 2021-01-05 16:00:24 INFO: Connected to WS. 2021-01-05 17:00:20 INFO: 2021-01-05 17:00:20 INFO: 2021-01-05 17:00:20 INFO: 2021-01-05 17:00:20 INFO: 2021-01-05 17:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2021-01-05 17:00:23 INFO: 2021-01-05 17:00:23 INFO: 2021-01-05 17:00:23 INFO: 2021-01-05 17:00:23 INFO: 2021-01-05 17:00:23 INFO: start trader process 2021-01-05 17:00:23 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2021-01-05 17:00:23 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2021-01-05 17:00:23 INFO: Authenticating with API Key. 2021-01-05 17:00:24 INFO: Connected to WS. 2021-01-05 18:00:20 INFO: 2021-01-05 18:00:20 INFO: 2021-01-05 18:00:20 INFO: 2021-01-05 18:00:20 INFO: 2021-01-05 18:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2021-01-05 18:00:23 INFO: 2021-01-05 18:00:23 INFO: 2021-01-05 18:00:23 INFO: 2021-01-05 18:00:23 INFO: 2021-01-05 18:00:23 INFO: start trader process 2021-01-05 18:00:23 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2021-01-05 18:00:23 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2021-01-05 18:00:23 INFO: Authenticating with API Key. 2021-01-05 18:00:24 INFO: Connected to WS. 2021-01-05 19:00:20 INFO: 2021-01-05 19:00:20 INFO: 2021-01-05 19:00:20 INFO: 2021-01-05 19:00:20 INFO: 2021-01-05 19:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2021-01-05 19:00:23 INFO: 2021-01-05 19:00:23 INFO: 2021-01-05 19:00:23 INFO: 2021-01-05 19:00:23 INFO: 2021-01-05 19:00:23 INFO: start trader process 2021-01-05 19:00:23 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2021-01-05 19:00:23 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2021-01-05 19:00:23 INFO: Authenticating with API Key. 2021-01-05 19:00:25 INFO: Connected to WS. 2021-01-05 20:00:20 INFO: 2021-01-05 20:00:20 INFO: 2021-01-05 20:00:20 INFO: 2021-01-05 20:00:20 INFO: 2021-01-05 20:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2021-01-05 20:00:23 INFO: 2021-01-05 20:00:23 INFO: 2021-01-05 20:00:23 INFO: 2021-01-05 20:00:23 INFO: 2021-01-05 20:00:23 INFO: start trader process 2021-01-05 20:00:23 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2021-01-05 20:00:23 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2021-01-05 20:00:23 INFO: Authenticating with API Key. 2021-01-05 20:00:24 INFO: Connected to WS. 2021-01-05 21:00:20 INFO: 2021-01-05 21:00:20 INFO: 2021-01-05 21:00:20 INFO: 2021-01-05 21:00:20 INFO: 2021-01-05 21:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2021-01-05 21:00:23 INFO: 2021-01-05 21:00:23 INFO: 2021-01-05 21:00:23 INFO: 2021-01-05 21:00:23 INFO: 2021-01-05 21:00:23 INFO: start trader process 2021-01-05 21:00:23 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2021-01-05 21:00:23 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2021-01-05 21:00:23 INFO: Authenticating with API Key. 2021-01-05 21:00:24 INFO: Connected to WS. 2021-01-05 22:00:20 INFO: 2021-01-05 22:00:20 INFO: 2021-01-05 22:00:20 INFO: 2021-01-05 22:00:20 INFO: 2021-01-05 22:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2021-01-05 22:00:23 INFO: 2021-01-05 22:00:23 INFO: 2021-01-05 22:00:23 INFO: 2021-01-05 22:00:23 INFO: 2021-01-05 22:00:23 INFO: start trader process 2021-01-05 22:00:23 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2021-01-05 22:00:23 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2021-01-05 22:00:23 INFO: Authenticating with API Key. 2021-01-05 22:00:24 INFO: Connected to WS. 2021-01-05 23:00:20 INFO: 2021-01-05 23:00:20 INFO: 2021-01-05 23:00:20 INFO: 2021-01-05 23:00:20 INFO: 2021-01-05 23:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2021-01-05 23:00:23 INFO: 2021-01-05 23:00:23 INFO: 2021-01-05 23:00:23 INFO: 2021-01-05 23:00:23 INFO: 2021-01-05 23:00:23 INFO: start trader process 2021-01-05 23:00:23 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2021-01-05 23:00:23 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2021-01-05 23:00:23 INFO: Authenticating with API Key. 2021-01-05 23:00:24 INFO: Connected to WS. 2021-01-06 00:00:20 INFO: 2021-01-06 00:00:20 INFO: 2021-01-06 00:00:20 INFO: 2021-01-06 00:00:20 INFO: 2021-01-06 00:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2021-01-06 00:00:23 INFO: 2021-01-06 00:00:23 INFO: 2021-01-06 00:00:23 INFO: 2021-01-06 00:00:23 INFO: 2021-01-06 00:00:23 INFO: start trader process 2021-01-06 00:00:23 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2021-01-06 00:00:23 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2021-01-06 00:00:23 INFO: Authenticating with API Key. 2021-01-06 00:00:24 INFO: Connected to WS. 2021-01-06 01:00:20 INFO: 2021-01-06 01:00:20 INFO: 2021-01-06 01:00:20 INFO: 2021-01-06 01:00:20 INFO: 2021-01-06 01:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2021-01-06 01:00:23 INFO: 2021-01-06 01:00:23 INFO: 2021-01-06 01:00:23 INFO: 2021-01-06 01:00:23 INFO: 2021-01-06 01:00:23 INFO: start trader process 2021-01-06 01:00:23 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2021-01-06 01:00:23 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2021-01-06 01:00:23 INFO: Authenticating with API Key. 2021-01-06 01:00:24 INFO: Connected to WS. 2021-01-06 02:00:20 INFO: 2021-01-06 02:00:20 INFO: 2021-01-06 02:00:20 INFO: 2021-01-06 02:00:20 INFO: 2021-01-06 02:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2021-01-06 02:00:23 INFO: 2021-01-06 02:00:23 INFO: 2021-01-06 02:00:23 INFO: 2021-01-06 02:00:23 INFO: 2021-01-06 02:00:23 INFO: start trader process 2021-01-06 02:00:23 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2021-01-06 02:00:23 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2021-01-06 02:00:23 INFO: Authenticating with API Key. 2021-01-06 02:00:24 INFO: Connected to WS. 2021-01-06 03:00:20 INFO: 2021-01-06 03:00:20 INFO: 2021-01-06 03:00:20 INFO: 2021-01-06 03:00:20 INFO: 2021-01-06 03:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2021-01-06 03:00:23 INFO: 2021-01-06 03:00:23 INFO: 2021-01-06 03:00:23 INFO: 2021-01-06 03:00:23 INFO: 2021-01-06 03:00:23 INFO: start trader process 2021-01-06 03:00:23 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2021-01-06 03:00:23 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2021-01-06 03:00:23 INFO: Authenticating with API Key. 2021-01-06 03:00:24 INFO: Connected to WS. 2021-01-06 04:00:20 INFO: 2021-01-06 04:00:20 INFO: 2021-01-06 04:00:20 INFO: 2021-01-06 04:00:20 INFO: 2021-01-06 04:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2021-01-06 04:00:23 INFO: 2021-01-06 04:00:23 INFO: 2021-01-06 04:00:23 INFO: 2021-01-06 04:00:23 INFO: 2021-01-06 04:00:23 INFO: start trader process 2021-01-06 04:00:23 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2021-01-06 04:00:23 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2021-01-06 04:00:23 INFO: Authenticating with API Key. 2021-01-06 04:00:24 INFO: Connected to WS. 2021-01-06 05:00:20 INFO: 2021-01-06 05:00:20 INFO: 2021-01-06 05:00:20 INFO: 2021-01-06 05:00:20 INFO: 2021-01-06 05:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2021-01-06 05:00:23 INFO: 2021-01-06 05:00:23 INFO: 2021-01-06 05:00:23 INFO: 2021-01-06 05:00:23 INFO: 2021-01-06 05:00:23 INFO: start trader process 2021-01-06 05:00:23 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2021-01-06 05:00:23 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2021-01-06 05:00:23 INFO: Authenticating with API Key. 2021-01-06 05:00:24 INFO: Connected to WS. 2021-01-06 06:00:20 INFO: 2021-01-06 06:00:20 INFO: 2021-01-06 06:00:20 INFO: 2021-01-06 06:00:20 INFO: 2021-01-06 06:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2021-01-06 06:00:23 INFO: 2021-01-06 06:00:23 INFO: 2021-01-06 06:00:23 INFO: 2021-01-06 06:00:23 INFO: 2021-01-06 06:00:23 INFO: start trader process 2021-01-06 06:00:23 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2021-01-06 06:00:23 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2021-01-06 06:00:23 INFO: Authenticating with API Key. 2021-01-06 06:00:24 INFO: Connected to WS. 2021-01-06 07:00:20 INFO: 2021-01-06 07:00:20 INFO: 2021-01-06 07:00:20 INFO: 2021-01-06 07:00:20 INFO: 2021-01-06 07:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2021-01-06 07:00:23 INFO: 2021-01-06 07:00:23 INFO: 2021-01-06 07:00:23 INFO: 2021-01-06 07:00:23 INFO: 2021-01-06 07:00:23 INFO: start trader process 2021-01-06 07:00:23 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2021-01-06 07:00:23 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2021-01-06 07:00:23 INFO: Authenticating with API Key. 2021-01-06 07:00:24 INFO: Connected to WS. 2021-01-06 07:21:25 ERROR: Error : [Errno 110] Connection timed out 2021-01-06 07:21:25 ERROR: error from callback >: [Errno 110] Connection timed out 2021-01-06 07:21:25 INFO: Websocket Closed 2021-01-06 07:21:25 WARNING: reconnect to socket 2021-01-06 07:21:25 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2021-01-06 07:21:25 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2021-01-06 07:21:25 INFO: Authenticating with API Key. 2021-01-06 07:21:30 ERROR: Couldn't connect to WS! Exiting. Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 107, in main WS_CLIENT = connect() File "/home/crypto/current/app/bitmex_ws.py", line 155, in connect return CustomBitmexWS(endpoint=client_rest.swagger_spec.api_url, api_key=API_KEY, api_secret=API_SECRET) File "/home/crypto/current/app/bitmex_ws.py", line 37, in __init__ self.__connect() File "/home/crypto/current/app/bitmex_ws.py", line 69, in __connect raise websocket.WebSocketTimeoutException('Couldn\'t connect to WS! Exiting.') websocket._exceptions.WebSocketTimeoutException: Couldn't connect to WS! Exiting. Traceback (most recent call last): File "/home/crypto/venv/lib/python3.8/site-packages/urllib3/connection.py", line 156, in _new_conn conn = connection.create_connection( File "/home/crypto/venv/lib/python3.8/site-packages/urllib3/util/connection.py", line 61, in create_connection for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM): File "/usr/lib/python3.8/socket.py", line 914, in getaddrinfo for res in _socket.getaddrinfo(host, port, family, type, proto, flags): socket.gaierror: [Errno -3] Temporary failure in name resolution During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/home/crypto/venv/lib/python3.8/site-packages/urllib3/connectionpool.py", line 665, in urlopen httplib_response = self._make_request( File "/home/crypto/venv/lib/python3.8/site-packages/urllib3/connectionpool.py", line 376, in _make_request self._validate_conn(conn) File "/home/crypto/venv/lib/python3.8/site-packages/urllib3/connectionpool.py", line 994, in _validate_conn conn.connect() File "/home/crypto/venv/lib/python3.8/site-packages/urllib3/connection.py", line 334, in connect conn = self._new_conn() File "/home/crypto/venv/lib/python3.8/site-packages/urllib3/connection.py", line 168, in _new_conn raise NewConnectionError( urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno -3] Temporary failure in name resolution During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/home/crypto/venv/lib/python3.8/site-packages/requests/adapters.py", line 439, in send resp = conn.urlopen( File "/home/crypto/venv/lib/python3.8/site-packages/urllib3/connectionpool.py", line 719, in urlopen retries = retries.increment( File "/home/crypto/venv/lib/python3.8/site-packages/urllib3/util/retry.py", line 436, in increment raise MaxRetryError(_pool, url, error or ResponseError(cause)) urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.bitmex.com', port=443): Max retries exceeded with url: /api/explorer/swagger.json (Caused by NewConnectionError(': Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')) During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 291, in _get_incoming_response inner_response = self.future.result(timeout=timeout) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/requests_client.py", line 266, in result response = self.session.send( File "/home/crypto/venv/lib/python3.8/site-packages/requests/sessions.py", line 646, in send r = adapter.send(request, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/requests/adapters.py", line 516, in send raise ConnectionError(e, request=request) requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.bitmex.com', port=443): Max retries exceeded with url: /api/explorer/swagger.json (Caused by NewConnectionError(': Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')) During handling of the above exception, another exception occurred: Traceback (most recent call last): File "app/trader.py", line 24, in from clearing_operations import fetch_orders_for_clearing, clear_order File "/home/crypto/current/app/clearing_operations.py", line 5, in from bitmex_rest import cancel_order, get_self_orders File "/home/crypto/current/app/bitmex_rest.py", line 48, in client_rest = bitmex.bitmex(test=TEST_MODE, api_key=API_KEY, api_secret=API_SECRET) File "/home/crypto/venv/lib/python3.8/site-packages/bitmex.py", line 35, in bitmex return SwaggerClient.from_url(spec_uri, config=config, http_client=request_client) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/client.py", line 96, in from_url spec_dict = loader.load_spec(spec_url) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/swagger_model.py", line 102, in load_spec response = request( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 270, in result incoming_response = self._get_incoming_response(timeout) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 128, in wrapper self.future._raise_connection_error(exception) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 91, in _raise_connection_error self._raise_error(BravadoConnectionError, 'ConnectionError', exception) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 79, in _raise_error six.reraise( File "/home/crypto/venv/lib/python3.8/site-packages/six.py", line 695, in reraise raise value.with_traceback(tb) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 291, in _get_incoming_response inner_response = self.future.result(timeout=timeout) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/requests_client.py", line 266, in result response = self.session.send( File "/home/crypto/venv/lib/python3.8/site-packages/requests/sessions.py", line 646, in send r = adapter.send(request, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/requests/adapters.py", line 516, in send raise ConnectionError(e, request=request) bravado.http_future.RequestsFutureAdapterConnectionError /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2021-01-06 07:21:50 INFO: 2021-01-06 07:21:50 INFO: 2021-01-06 07:21:50 INFO: 2021-01-06 07:21:50 INFO: 2021-01-06 07:21:50 INFO: start trader process 2021-01-06 07:21:50 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2021-01-06 07:21:50 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2021-01-06 07:21:50 INFO: Authenticating with API Key. 2021-01-06 07:21:51 INFO: Connected to WS. 2021-01-06 08:00:20 INFO: 2021-01-06 08:00:20 INFO: 2021-01-06 08:00:20 INFO: 2021-01-06 08:00:20 INFO: 2021-01-06 08:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2021-01-06 08:00:23 INFO: 2021-01-06 08:00:23 INFO: 2021-01-06 08:00:23 INFO: 2021-01-06 08:00:23 INFO: 2021-01-06 08:00:23 INFO: start trader process 2021-01-06 08:00:23 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2021-01-06 08:00:23 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2021-01-06 08:00:23 INFO: Authenticating with API Key. 2021-01-06 08:00:24 INFO: Connected to WS. 2021-01-06 09:00:20 INFO: 2021-01-06 09:00:20 INFO: 2021-01-06 09:00:20 INFO: 2021-01-06 09:00:20 INFO: 2021-01-06 09:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2021-01-06 09:00:23 INFO: 2021-01-06 09:00:23 INFO: 2021-01-06 09:00:23 INFO: 2021-01-06 09:00:23 INFO: 2021-01-06 09:00:23 INFO: start trader process 2021-01-06 09:00:23 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2021-01-06 09:00:23 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2021-01-06 09:00:23 INFO: Authenticating with API Key. 2021-01-06 09:00:24 INFO: Connected to WS. 2021-01-06 10:00:20 INFO: 2021-01-06 10:00:20 INFO: 2021-01-06 10:00:20 INFO: 2021-01-06 10:00:20 INFO: 2021-01-06 10:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2021-01-06 10:00:23 INFO: 2021-01-06 10:00:23 INFO: 2021-01-06 10:00:23 INFO: 2021-01-06 10:00:23 INFO: 2021-01-06 10:00:23 INFO: start trader process 2021-01-06 10:00:23 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2021-01-06 10:00:23 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2021-01-06 10:00:23 INFO: Authenticating with API Key. 2021-01-06 10:00:24 INFO: Connected to WS. 2021-01-06 11:00:20 INFO: 2021-01-06 11:00:20 INFO: 2021-01-06 11:00:20 INFO: 2021-01-06 11:00:20 INFO: 2021-01-06 11:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2021-01-06 11:00:23 INFO: 2021-01-06 11:00:23 INFO: 2021-01-06 11:00:23 INFO: 2021-01-06 11:00:23 INFO: 2021-01-06 11:00:23 INFO: start trader process 2021-01-06 11:00:23 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2021-01-06 11:00:23 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2021-01-06 11:00:23 INFO: Authenticating with API Key. 2021-01-06 11:00:24 INFO: Connected to WS. 2021-01-06 12:00:20 INFO: 2021-01-06 12:00:20 INFO: 2021-01-06 12:00:20 INFO: 2021-01-06 12:00:20 INFO: 2021-01-06 12:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2021-01-06 12:00:23 INFO: 2021-01-06 12:00:23 INFO: 2021-01-06 12:00:23 INFO: 2021-01-06 12:00:23 INFO: 2021-01-06 12:00:23 INFO: start trader process 2021-01-06 12:00:23 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2021-01-06 12:00:23 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2021-01-06 12:00:23 INFO: Authenticating with API Key. 2021-01-06 12:00:24 INFO: Connected to WS. 2021-01-06 13:00:20 INFO: 2021-01-06 13:00:20 INFO: 2021-01-06 13:00:20 INFO: 2021-01-06 13:00:20 INFO: 2021-01-06 13:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2021-01-06 13:00:23 INFO: 2021-01-06 13:00:23 INFO: 2021-01-06 13:00:23 INFO: 2021-01-06 13:00:23 INFO: 2021-01-06 13:00:23 INFO: start trader process 2021-01-06 13:00:23 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2021-01-06 13:00:23 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2021-01-06 13:00:23 INFO: Authenticating with API Key. 2021-01-06 13:00:24 INFO: Connected to WS. 2021-01-06 14:00:20 INFO: 2021-01-06 14:00:20 INFO: 2021-01-06 14:00:20 INFO: 2021-01-06 14:00:20 INFO: 2021-01-06 14:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2021-01-06 14:00:24 INFO: 2021-01-06 14:00:24 INFO: 2021-01-06 14:00:24 INFO: 2021-01-06 14:00:24 INFO: 2021-01-06 14:00:24 INFO: start trader process 2021-01-06 14:00:24 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2021-01-06 14:00:24 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2021-01-06 14:00:24 INFO: Authenticating with API Key. 2021-01-06 14:00:25 INFO: Connected to WS. 2021-01-06 15:00:20 INFO: 2021-01-06 15:00:20 INFO: 2021-01-06 15:00:20 INFO: 2021-01-06 15:00:20 INFO: 2021-01-06 15:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2021-01-06 15:00:23 INFO: 2021-01-06 15:00:23 INFO: 2021-01-06 15:00:23 INFO: 2021-01-06 15:00:23 INFO: 2021-01-06 15:00:23 INFO: start trader process 2021-01-06 15:00:23 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2021-01-06 15:00:23 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2021-01-06 15:00:23 INFO: Authenticating with API Key. 2021-01-06 15:00:24 INFO: Connected to WS. 2021-01-06 16:00:20 INFO: 2021-01-06 16:00:20 INFO: 2021-01-06 16:00:20 INFO: 2021-01-06 16:00:20 INFO: 2021-01-06 16:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2021-01-06 16:00:23 INFO: 2021-01-06 16:00:23 INFO: 2021-01-06 16:00:23 INFO: 2021-01-06 16:00:23 INFO: 2021-01-06 16:00:23 INFO: start trader process 2021-01-06 16:00:23 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2021-01-06 16:00:23 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2021-01-06 16:00:23 INFO: Authenticating with API Key. 2021-01-06 16:00:24 INFO: Connected to WS. 2021-01-06 17:00:20 INFO: 2021-01-06 17:00:20 INFO: 2021-01-06 17:00:20 INFO: 2021-01-06 17:00:20 INFO: 2021-01-06 17:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2021-01-06 17:00:23 INFO: 2021-01-06 17:00:23 INFO: 2021-01-06 17:00:23 INFO: 2021-01-06 17:00:23 INFO: 2021-01-06 17:00:23 INFO: start trader process 2021-01-06 17:00:23 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2021-01-06 17:00:23 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2021-01-06 17:00:23 INFO: Authenticating with API Key. 2021-01-06 17:00:24 INFO: Connected to WS. 2021-01-06 18:00:20 INFO: 2021-01-06 18:00:20 INFO: 2021-01-06 18:00:20 INFO: 2021-01-06 18:00:20 INFO: 2021-01-06 18:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2021-01-06 18:00:23 INFO: 2021-01-06 18:00:23 INFO: 2021-01-06 18:00:23 INFO: 2021-01-06 18:00:23 INFO: 2021-01-06 18:00:23 INFO: start trader process 2021-01-06 18:00:23 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2021-01-06 18:00:23 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2021-01-06 18:00:23 INFO: Authenticating with API Key. 2021-01-06 18:00:24 INFO: Connected to WS. 2021-01-06 19:00:20 INFO: 2021-01-06 19:00:20 INFO: 2021-01-06 19:00:20 INFO: 2021-01-06 19:00:20 INFO: 2021-01-06 19:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2021-01-06 19:00:23 INFO: 2021-01-06 19:00:23 INFO: 2021-01-06 19:00:23 INFO: 2021-01-06 19:00:23 INFO: 2021-01-06 19:00:23 INFO: start trader process 2021-01-06 19:00:23 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2021-01-06 19:00:23 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2021-01-06 19:00:23 INFO: Authenticating with API Key. 2021-01-06 19:00:24 INFO: Connected to WS. 2021-01-06 20:00:20 INFO: 2021-01-06 20:00:20 INFO: 2021-01-06 20:00:20 INFO: 2021-01-06 20:00:20 INFO: 2021-01-06 20:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2021-01-06 20:00:23 INFO: 2021-01-06 20:00:23 INFO: 2021-01-06 20:00:23 INFO: 2021-01-06 20:00:23 INFO: 2021-01-06 20:00:23 INFO: start trader process 2021-01-06 20:00:23 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2021-01-06 20:00:23 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2021-01-06 20:00:23 INFO: Authenticating with API Key. 2021-01-06 20:00:24 INFO: Connected to WS. 2021-01-06 21:00:20 INFO: 2021-01-06 21:00:20 INFO: 2021-01-06 21:00:20 INFO: 2021-01-06 21:00:20 INFO: 2021-01-06 21:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2021-01-06 21:00:23 INFO: 2021-01-06 21:00:23 INFO: 2021-01-06 21:00:23 INFO: 2021-01-06 21:00:23 INFO: 2021-01-06 21:00:23 INFO: start trader process 2021-01-06 21:00:23 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2021-01-06 21:00:23 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2021-01-06 21:00:23 INFO: Authenticating with API Key. 2021-01-06 21:00:24 INFO: Connected to WS. 2021-01-06 22:00:20 INFO: 2021-01-06 22:00:20 INFO: 2021-01-06 22:00:20 INFO: 2021-01-06 22:00:20 INFO: 2021-01-06 22:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2021-01-06 22:00:23 INFO: 2021-01-06 22:00:23 INFO: 2021-01-06 22:00:23 INFO: 2021-01-06 22:00:23 INFO: 2021-01-06 22:00:23 INFO: start trader process 2021-01-06 22:00:23 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2021-01-06 22:00:23 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2021-01-06 22:00:23 INFO: Authenticating with API Key. 2021-01-06 22:00:24 INFO: Connected to WS. 2021-01-06 23:00:20 INFO: 2021-01-06 23:00:20 INFO: 2021-01-06 23:00:20 INFO: 2021-01-06 23:00:20 INFO: 2021-01-06 23:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2021-01-06 23:00:23 INFO: 2021-01-06 23:00:23 INFO: 2021-01-06 23:00:23 INFO: 2021-01-06 23:00:23 INFO: 2021-01-06 23:00:23 INFO: start trader process 2021-01-06 23:00:23 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2021-01-06 23:00:23 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2021-01-06 23:00:23 INFO: Authenticating with API Key. 2021-01-06 23:00:24 INFO: Connected to WS. 2021-01-07 00:00:20 INFO: 2021-01-07 00:00:20 INFO: 2021-01-07 00:00:20 INFO: 2021-01-07 00:00:20 INFO: 2021-01-07 00:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2021-01-07 00:00:23 INFO: 2021-01-07 00:00:23 INFO: 2021-01-07 00:00:23 INFO: 2021-01-07 00:00:23 INFO: 2021-01-07 00:00:23 INFO: start trader process 2021-01-07 00:00:23 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2021-01-07 00:00:23 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2021-01-07 00:00:23 INFO: Authenticating with API Key. 2021-01-07 00:00:24 INFO: Connected to WS. 2021-01-07 01:00:20 INFO: 2021-01-07 01:00:20 INFO: 2021-01-07 01:00:20 INFO: 2021-01-07 01:00:20 INFO: 2021-01-07 01:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2021-01-07 01:00:23 INFO: 2021-01-07 01:00:23 INFO: 2021-01-07 01:00:23 INFO: 2021-01-07 01:00:23 INFO: 2021-01-07 01:00:23 INFO: start trader process 2021-01-07 01:00:23 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2021-01-07 01:00:23 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2021-01-07 01:00:23 INFO: Authenticating with API Key. 2021-01-07 01:00:24 INFO: Connected to WS. 2021-01-07 02:00:20 INFO: 2021-01-07 02:00:20 INFO: 2021-01-07 02:00:20 INFO: 2021-01-07 02:00:20 INFO: 2021-01-07 02:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2021-01-07 02:00:23 INFO: 2021-01-07 02:00:23 INFO: 2021-01-07 02:00:23 INFO: 2021-01-07 02:00:23 INFO: 2021-01-07 02:00:23 INFO: start trader process 2021-01-07 02:00:23 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2021-01-07 02:00:23 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2021-01-07 02:00:23 INFO: Authenticating with API Key. 2021-01-07 02:00:24 INFO: Connected to WS. 2021-01-07 03:00:20 INFO: 2021-01-07 03:00:20 INFO: 2021-01-07 03:00:20 INFO: 2021-01-07 03:00:20 INFO: 2021-01-07 03:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2021-01-07 03:00:23 INFO: 2021-01-07 03:00:23 INFO: 2021-01-07 03:00:23 INFO: 2021-01-07 03:00:23 INFO: 2021-01-07 03:00:23 INFO: start trader process 2021-01-07 03:00:23 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2021-01-07 03:00:23 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2021-01-07 03:00:23 INFO: Authenticating with API Key. 2021-01-07 03:00:24 INFO: Connected to WS. 2021-01-07 04:00:20 INFO: 2021-01-07 04:00:20 INFO: 2021-01-07 04:00:20 INFO: 2021-01-07 04:00:20 INFO: 2021-01-07 04:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2021-01-07 04:00:22 INFO: 2021-01-07 04:00:22 INFO: 2021-01-07 04:00:22 INFO: 2021-01-07 04:00:22 INFO: 2021-01-07 04:00:22 INFO: start trader process 2021-01-07 04:00:22 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2021-01-07 04:00:22 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2021-01-07 04:00:22 INFO: Authenticating with API Key. 2021-01-07 04:00:23 INFO: Connected to WS. 2021-01-07 05:00:20 INFO: 2021-01-07 05:00:20 INFO: 2021-01-07 05:00:20 INFO: 2021-01-07 05:00:20 INFO: 2021-01-07 05:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2021-01-07 05:00:23 INFO: 2021-01-07 05:00:23 INFO: 2021-01-07 05:00:23 INFO: 2021-01-07 05:00:23 INFO: 2021-01-07 05:00:23 INFO: start trader process 2021-01-07 05:00:23 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2021-01-07 05:00:23 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2021-01-07 05:00:23 INFO: Authenticating with API Key. 2021-01-07 05:00:24 INFO: Connected to WS. 2021-01-07 06:00:20 INFO: 2021-01-07 06:00:20 INFO: 2021-01-07 06:00:20 INFO: 2021-01-07 06:00:20 INFO: 2021-01-07 06:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2021-01-07 06:00:23 INFO: 2021-01-07 06:00:23 INFO: 2021-01-07 06:00:23 INFO: 2021-01-07 06:00:23 INFO: 2021-01-07 06:00:23 INFO: start trader process 2021-01-07 06:00:23 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2021-01-07 06:00:23 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2021-01-07 06:00:23 INFO: Authenticating with API Key. 2021-01-07 06:00:24 INFO: Connected to WS. 2021-01-07 07:00:20 INFO: 2021-01-07 07:00:20 INFO: 2021-01-07 07:00:20 INFO: 2021-01-07 07:00:20 INFO: 2021-01-07 07:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2021-01-07 07:00:23 INFO: 2021-01-07 07:00:23 INFO: 2021-01-07 07:00:23 INFO: 2021-01-07 07:00:23 INFO: 2021-01-07 07:00:23 INFO: start trader process 2021-01-07 07:00:23 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2021-01-07 07:00:23 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2021-01-07 07:00:23 INFO: Authenticating with API Key. 2021-01-07 07:00:24 INFO: Connected to WS. 2021-01-07 08:00:20 INFO: 2021-01-07 08:00:20 INFO: 2021-01-07 08:00:20 INFO: 2021-01-07 08:00:20 INFO: 2021-01-07 08:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2021-01-07 08:00:23 INFO: 2021-01-07 08:00:23 INFO: 2021-01-07 08:00:23 INFO: 2021-01-07 08:00:23 INFO: 2021-01-07 08:00:23 INFO: start trader process 2021-01-07 08:00:23 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2021-01-07 08:00:23 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2021-01-07 08:00:23 INFO: Authenticating with API Key. 2021-01-07 08:00:24 INFO: Connected to WS. 2021-01-07 09:00:20 INFO: 2021-01-07 09:00:20 INFO: 2021-01-07 09:00:20 INFO: 2021-01-07 09:00:20 INFO: 2021-01-07 09:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2021-01-07 09:00:23 INFO: 2021-01-07 09:00:23 INFO: 2021-01-07 09:00:23 INFO: 2021-01-07 09:00:23 INFO: 2021-01-07 09:00:23 INFO: start trader process 2021-01-07 09:00:23 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2021-01-07 09:00:23 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2021-01-07 09:00:23 INFO: Authenticating with API Key. 2021-01-07 09:00:24 INFO: Connected to WS. 2021-01-07 10:00:20 INFO: 2021-01-07 10:00:20 INFO: 2021-01-07 10:00:20 INFO: 2021-01-07 10:00:20 INFO: 2021-01-07 10:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2021-01-07 10:00:24 INFO: 2021-01-07 10:00:24 INFO: 2021-01-07 10:00:24 INFO: 2021-01-07 10:00:24 INFO: 2021-01-07 10:00:24 INFO: start trader process 2021-01-07 10:00:24 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2021-01-07 10:00:24 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2021-01-07 10:00:24 INFO: Authenticating with API Key. 2021-01-07 10:00:25 INFO: Connected to WS. 2021-01-07 11:00:20 INFO: 2021-01-07 11:00:20 INFO: 2021-01-07 11:00:20 INFO: 2021-01-07 11:00:20 INFO: 2021-01-07 11:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2021-01-07 11:00:23 INFO: 2021-01-07 11:00:23 INFO: 2021-01-07 11:00:23 INFO: 2021-01-07 11:00:23 INFO: 2021-01-07 11:00:23 INFO: start trader process 2021-01-07 11:00:23 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2021-01-07 11:00:23 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2021-01-07 11:00:23 INFO: Authenticating with API Key. 2021-01-07 11:00:24 INFO: Connected to WS. 2021-01-07 12:00:20 INFO: 2021-01-07 12:00:20 INFO: 2021-01-07 12:00:20 INFO: 2021-01-07 12:00:20 INFO: 2021-01-07 12:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2021-01-07 12:00:23 INFO: 2021-01-07 12:00:23 INFO: 2021-01-07 12:00:23 INFO: 2021-01-07 12:00:23 INFO: 2021-01-07 12:00:23 INFO: start trader process 2021-01-07 12:00:23 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2021-01-07 12:00:23 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2021-01-07 12:00:23 INFO: Authenticating with API Key. 2021-01-07 12:00:24 INFO: Connected to WS. 2021-01-07 13:00:20 INFO: 2021-01-07 13:00:20 INFO: 2021-01-07 13:00:20 INFO: 2021-01-07 13:00:20 INFO: 2021-01-07 13:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2021-01-07 13:00:23 INFO: 2021-01-07 13:00:23 INFO: 2021-01-07 13:00:23 INFO: 2021-01-07 13:00:23 INFO: 2021-01-07 13:00:23 INFO: start trader process 2021-01-07 13:00:23 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2021-01-07 13:00:23 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2021-01-07 13:00:23 INFO: Authenticating with API Key. 2021-01-07 13:00:24 INFO: Connected to WS. 2021-01-07 14:00:20 INFO: 2021-01-07 14:00:20 INFO: 2021-01-07 14:00:20 INFO: 2021-01-07 14:00:20 INFO: 2021-01-07 14:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2021-01-07 14:00:23 INFO: 2021-01-07 14:00:23 INFO: 2021-01-07 14:00:23 INFO: 2021-01-07 14:00:23 INFO: 2021-01-07 14:00:23 INFO: start trader process 2021-01-07 14:00:23 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2021-01-07 14:00:23 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2021-01-07 14:00:23 INFO: Authenticating with API Key. 2021-01-07 14:00:24 INFO: Connected to WS. 2021-01-07 15:00:20 INFO: 2021-01-07 15:00:20 INFO: 2021-01-07 15:00:20 INFO: 2021-01-07 15:00:20 INFO: 2021-01-07 15:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2021-01-07 15:00:23 INFO: 2021-01-07 15:00:23 INFO: 2021-01-07 15:00:23 INFO: 2021-01-07 15:00:23 INFO: 2021-01-07 15:00:23 INFO: start trader process 2021-01-07 15:00:23 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2021-01-07 15:00:23 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2021-01-07 15:00:23 INFO: Authenticating with API Key. 2021-01-07 15:00:24 INFO: Connected to WS. 2021-01-07 16:00:20 INFO: 2021-01-07 16:00:20 INFO: 2021-01-07 16:00:20 INFO: 2021-01-07 16:00:20 INFO: 2021-01-07 16:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2021-01-07 16:00:23 INFO: 2021-01-07 16:00:23 INFO: 2021-01-07 16:00:23 INFO: 2021-01-07 16:00:23 INFO: 2021-01-07 16:00:23 INFO: start trader process 2021-01-07 16:00:23 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2021-01-07 16:00:23 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2021-01-07 16:00:23 INFO: Authenticating with API Key. 2021-01-07 16:00:24 INFO: Connected to WS. 2021-01-07 17:00:20 INFO: 2021-01-07 17:00:20 INFO: 2021-01-07 17:00:20 INFO: 2021-01-07 17:00:20 INFO: 2021-01-07 17:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2021-01-07 17:00:23 INFO: 2021-01-07 17:00:23 INFO: 2021-01-07 17:00:23 INFO: 2021-01-07 17:00:23 INFO: 2021-01-07 17:00:23 INFO: start trader process 2021-01-07 17:00:23 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2021-01-07 17:00:23 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2021-01-07 17:00:23 INFO: Authenticating with API Key. 2021-01-07 17:00:24 INFO: Connected to WS. 2021-01-07 18:00:20 INFO: 2021-01-07 18:00:20 INFO: 2021-01-07 18:00:20 INFO: 2021-01-07 18:00:20 INFO: 2021-01-07 18:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2021-01-07 18:00:23 INFO: 2021-01-07 18:00:23 INFO: 2021-01-07 18:00:23 INFO: 2021-01-07 18:00:23 INFO: 2021-01-07 18:00:23 INFO: start trader process 2021-01-07 18:00:23 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2021-01-07 18:00:23 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2021-01-07 18:00:23 INFO: Authenticating with API Key. 2021-01-07 18:00:24 INFO: Connected to WS. 2021-01-07 19:00:20 INFO: 2021-01-07 19:00:20 INFO: 2021-01-07 19:00:20 INFO: 2021-01-07 19:00:20 INFO: 2021-01-07 19:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2021-01-07 19:00:23 INFO: 2021-01-07 19:00:23 INFO: 2021-01-07 19:00:23 INFO: 2021-01-07 19:00:23 INFO: 2021-01-07 19:00:23 INFO: start trader process 2021-01-07 19:00:23 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2021-01-07 19:00:23 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2021-01-07 19:00:23 INFO: Authenticating with API Key. 2021-01-07 19:00:24 INFO: Connected to WS. 2021-01-07 20:00:20 INFO: 2021-01-07 20:00:20 INFO: 2021-01-07 20:00:20 INFO: 2021-01-07 20:00:20 INFO: 2021-01-07 20:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2021-01-07 20:00:23 INFO: 2021-01-07 20:00:23 INFO: 2021-01-07 20:00:23 INFO: 2021-01-07 20:00:23 INFO: 2021-01-07 20:00:23 INFO: start trader process 2021-01-07 20:00:23 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2021-01-07 20:00:23 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2021-01-07 20:00:23 INFO: Authenticating with API Key. 2021-01-07 20:00:24 INFO: Connected to WS. 2021-01-07 21:00:20 INFO: 2021-01-07 21:00:20 INFO: 2021-01-07 21:00:20 INFO: 2021-01-07 21:00:20 INFO: 2021-01-07 21:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2021-01-07 21:00:24 INFO: 2021-01-07 21:00:24 INFO: 2021-01-07 21:00:24 INFO: 2021-01-07 21:00:24 INFO: 2021-01-07 21:00:24 INFO: start trader process 2021-01-07 21:00:24 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2021-01-07 21:00:24 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2021-01-07 21:00:24 INFO: Authenticating with API Key. 2021-01-07 21:00:25 INFO: Connected to WS. 2021-01-07 22:00:20 INFO: 2021-01-07 22:00:20 INFO: 2021-01-07 22:00:20 INFO: 2021-01-07 22:00:20 INFO: 2021-01-07 22:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2021-01-07 22:00:23 INFO: 2021-01-07 22:00:23 INFO: 2021-01-07 22:00:23 INFO: 2021-01-07 22:00:23 INFO: 2021-01-07 22:00:23 INFO: start trader process 2021-01-07 22:00:23 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2021-01-07 22:00:23 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2021-01-07 22:00:23 INFO: Authenticating with API Key. 2021-01-07 22:00:24 INFO: Connected to WS. 2021-01-07 23:00:20 INFO: 2021-01-07 23:00:20 INFO: 2021-01-07 23:00:20 INFO: 2021-01-07 23:00:20 INFO: 2021-01-07 23:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2021-01-07 23:00:23 INFO: 2021-01-07 23:00:23 INFO: 2021-01-07 23:00:23 INFO: 2021-01-07 23:00:23 INFO: 2021-01-07 23:00:23 INFO: start trader process 2021-01-07 23:00:23 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2021-01-07 23:00:23 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2021-01-07 23:00:23 INFO: Authenticating with API Key. 2021-01-07 23:00:24 INFO: Connected to WS. 2021-01-08 00:00:20 INFO: 2021-01-08 00:00:20 INFO: 2021-01-08 00:00:20 INFO: 2021-01-08 00:00:20 INFO: 2021-01-08 00:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2021-01-08 00:00:23 INFO: 2021-01-08 00:00:23 INFO: 2021-01-08 00:00:23 INFO: 2021-01-08 00:00:23 INFO: 2021-01-08 00:00:23 INFO: start trader process 2021-01-08 00:00:23 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2021-01-08 00:00:23 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2021-01-08 00:00:23 INFO: Authenticating with API Key. 2021-01-08 00:00:24 INFO: Connected to WS. 2021-01-08 01:00:20 INFO: 2021-01-08 01:00:20 INFO: 2021-01-08 01:00:20 INFO: 2021-01-08 01:00:20 INFO: 2021-01-08 01:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2021-01-08 01:00:23 INFO: 2021-01-08 01:00:23 INFO: 2021-01-08 01:00:23 INFO: 2021-01-08 01:00:23 INFO: 2021-01-08 01:00:23 INFO: start trader process 2021-01-08 01:00:23 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2021-01-08 01:00:23 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2021-01-08 01:00:23 INFO: Authenticating with API Key. 2021-01-08 01:00:24 INFO: Connected to WS. 2021-01-08 02:00:20 INFO: 2021-01-08 02:00:20 INFO: 2021-01-08 02:00:20 INFO: 2021-01-08 02:00:20 INFO: 2021-01-08 02:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2021-01-08 02:00:23 INFO: 2021-01-08 02:00:23 INFO: 2021-01-08 02:00:23 INFO: 2021-01-08 02:00:23 INFO: 2021-01-08 02:00:23 INFO: start trader process 2021-01-08 02:00:23 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2021-01-08 02:00:23 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2021-01-08 02:00:23 INFO: Authenticating with API Key. 2021-01-08 02:00:24 INFO: Connected to WS. 2021-01-08 03:00:20 INFO: 2021-01-08 03:00:20 INFO: 2021-01-08 03:00:20 INFO: 2021-01-08 03:00:20 INFO: 2021-01-08 03:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2021-01-08 03:00:23 INFO: 2021-01-08 03:00:23 INFO: 2021-01-08 03:00:23 INFO: 2021-01-08 03:00:23 INFO: 2021-01-08 03:00:23 INFO: start trader process 2021-01-08 03:00:23 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2021-01-08 03:00:23 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2021-01-08 03:00:23 INFO: Authenticating with API Key. 2021-01-08 03:00:24 INFO: Connected to WS. 2021-01-08 04:00:20 INFO: 2021-01-08 04:00:20 INFO: 2021-01-08 04:00:20 INFO: 2021-01-08 04:00:20 INFO: 2021-01-08 04:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2021-01-08 04:00:23 INFO: 2021-01-08 04:00:23 INFO: 2021-01-08 04:00:23 INFO: 2021-01-08 04:00:23 INFO: 2021-01-08 04:00:23 INFO: start trader process 2021-01-08 04:00:23 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2021-01-08 04:00:23 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2021-01-08 04:00:23 INFO: Authenticating with API Key. 2021-01-08 04:00:24 INFO: Connected to WS. 2021-01-08 05:00:26 INFO: 2021-01-08 05:00:33 INFO: 2021-01-08 05:00:33 INFO: 2021-01-08 05:00:33 INFO: 2021-01-08 05:00:33 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2021-01-08 05:00:36 INFO: 2021-01-08 05:00:36 INFO: 2021-01-08 05:00:36 INFO: 2021-01-08 05:00:36 INFO: 2021-01-08 05:00:36 INFO: start trader process 2021-01-08 05:00:36 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2021-01-08 05:00:36 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2021-01-08 05:00:36 INFO: Authenticating with API Key. 2021-01-08 05:00:37 INFO: Connected to WS. 2021-01-08 06:00:20 INFO: 2021-01-08 06:00:20 INFO: 2021-01-08 06:00:20 INFO: 2021-01-08 06:00:20 INFO: 2021-01-08 06:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2021-01-08 06:00:23 INFO: 2021-01-08 06:00:23 INFO: 2021-01-08 06:00:23 INFO: 2021-01-08 06:00:23 INFO: 2021-01-08 06:00:23 INFO: start trader process 2021-01-08 06:00:23 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2021-01-08 06:00:23 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2021-01-08 06:00:23 INFO: Authenticating with API Key. 2021-01-08 06:00:24 INFO: Connected to WS. 2021-01-08 07:00:20 INFO: 2021-01-08 07:00:20 INFO: 2021-01-08 07:00:20 INFO: 2021-01-08 07:00:20 INFO: 2021-01-08 07:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2021-01-08 07:00:23 INFO: 2021-01-08 07:00:23 INFO: 2021-01-08 07:00:23 INFO: 2021-01-08 07:00:23 INFO: 2021-01-08 07:00:23 INFO: start trader process 2021-01-08 07:00:23 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2021-01-08 07:00:23 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2021-01-08 07:00:23 INFO: Authenticating with API Key. 2021-01-08 07:00:24 INFO: Connected to WS. 2021-01-08 08:00:20 INFO: 2021-01-08 08:00:20 INFO: 2021-01-08 08:00:20 INFO: 2021-01-08 08:00:20 INFO: 2021-01-08 08:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2021-01-08 08:00:23 INFO: 2021-01-08 08:00:23 INFO: 2021-01-08 08:00:23 INFO: 2021-01-08 08:00:23 INFO: 2021-01-08 08:00:23 INFO: start trader process 2021-01-08 08:00:23 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2021-01-08 08:00:23 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2021-01-08 08:00:23 INFO: Authenticating with API Key. 2021-01-08 08:00:24 INFO: Connected to WS. 2021-01-08 09:00:20 INFO: 2021-01-08 09:00:20 INFO: 2021-01-08 09:00:20 INFO: 2021-01-08 09:00:20 INFO: 2021-01-08 09:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2021-01-08 09:00:23 INFO: 2021-01-08 09:00:23 INFO: 2021-01-08 09:00:23 INFO: 2021-01-08 09:00:23 INFO: 2021-01-08 09:00:23 INFO: start trader process 2021-01-08 09:00:23 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2021-01-08 09:00:23 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2021-01-08 09:00:23 INFO: Authenticating with API Key. 2021-01-08 09:00:24 INFO: Connected to WS. 2021-01-08 10:00:20 INFO: 2021-01-08 10:00:20 INFO: 2021-01-08 10:00:20 INFO: 2021-01-08 10:00:20 INFO: 2021-01-08 10:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2021-01-08 10:00:23 INFO: 2021-01-08 10:00:23 INFO: 2021-01-08 10:00:23 INFO: 2021-01-08 10:00:23 INFO: 2021-01-08 10:00:23 INFO: start trader process 2021-01-08 10:00:23 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2021-01-08 10:00:23 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2021-01-08 10:00:23 INFO: Authenticating with API Key. 2021-01-08 10:00:24 INFO: Connected to WS. 2021-01-08 11:00:20 INFO: 2021-01-08 11:00:20 INFO: 2021-01-08 11:00:20 INFO: 2021-01-08 11:00:20 INFO: 2021-01-08 11:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2021-01-08 11:00:23 INFO: 2021-01-08 11:00:23 INFO: 2021-01-08 11:00:23 INFO: 2021-01-08 11:00:23 INFO: 2021-01-08 11:00:23 INFO: start trader process 2021-01-08 11:00:23 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2021-01-08 11:00:23 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2021-01-08 11:00:23 INFO: Authenticating with API Key. 2021-01-08 11:00:24 INFO: Connected to WS. 2021-01-08 12:00:20 INFO: 2021-01-08 12:00:20 INFO: 2021-01-08 12:00:20 INFO: 2021-01-08 12:00:20 INFO: 2021-01-08 12:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2021-01-08 12:00:23 INFO: 2021-01-08 12:00:23 INFO: 2021-01-08 12:00:23 INFO: 2021-01-08 12:00:23 INFO: 2021-01-08 12:00:23 INFO: start trader process 2021-01-08 12:00:23 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2021-01-08 12:00:23 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2021-01-08 12:00:23 INFO: Authenticating with API Key. 2021-01-08 12:00:24 INFO: Connected to WS. 2021-01-08 13:00:20 INFO: 2021-01-08 13:00:20 INFO: 2021-01-08 13:00:20 INFO: 2021-01-08 13:00:20 INFO: 2021-01-08 13:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2021-01-08 13:00:23 INFO: 2021-01-08 13:00:23 INFO: 2021-01-08 13:00:23 INFO: 2021-01-08 13:00:23 INFO: 2021-01-08 13:00:23 INFO: start trader process 2021-01-08 13:00:23 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2021-01-08 13:00:23 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2021-01-08 13:00:23 INFO: Authenticating with API Key. 2021-01-08 13:00:24 INFO: Connected to WS. 2021-01-08 14:00:20 INFO: 2021-01-08 14:00:20 INFO: 2021-01-08 14:00:20 INFO: 2021-01-08 14:00:20 INFO: 2021-01-08 14:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2021-01-08 14:00:23 INFO: 2021-01-08 14:00:23 INFO: 2021-01-08 14:00:23 INFO: 2021-01-08 14:00:23 INFO: 2021-01-08 14:00:23 INFO: start trader process 2021-01-08 14:00:23 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2021-01-08 14:00:23 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2021-01-08 14:00:23 INFO: Authenticating with API Key. 2021-01-08 14:00:24 INFO: Connected to WS. 2021-01-08 15:00:20 INFO: 2021-01-08 15:00:20 INFO: 2021-01-08 15:00:20 INFO: 2021-01-08 15:00:20 INFO: 2021-01-08 15:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2021-01-08 15:00:23 INFO: 2021-01-08 15:00:23 INFO: 2021-01-08 15:00:23 INFO: 2021-01-08 15:00:23 INFO: 2021-01-08 15:00:23 INFO: start trader process 2021-01-08 15:00:23 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2021-01-08 15:00:23 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2021-01-08 15:00:23 INFO: Authenticating with API Key. 2021-01-08 15:00:24 INFO: Connected to WS. 2021-01-08 16:00:20 INFO: 2021-01-08 16:00:20 INFO: 2021-01-08 16:00:20 INFO: 2021-01-08 16:00:20 INFO: 2021-01-08 16:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2021-01-08 16:00:23 INFO: 2021-01-08 16:00:23 INFO: 2021-01-08 16:00:23 INFO: 2021-01-08 16:00:23 INFO: 2021-01-08 16:00:23 INFO: start trader process 2021-01-08 16:00:23 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2021-01-08 16:00:23 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2021-01-08 16:00:23 INFO: Authenticating with API Key. 2021-01-08 16:00:24 INFO: Connected to WS. 2021-01-08 17:00:20 INFO: 2021-01-08 17:00:20 INFO: 2021-01-08 17:00:20 INFO: 2021-01-08 17:00:20 INFO: 2021-01-08 17:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2021-01-08 17:00:23 INFO: 2021-01-08 17:00:23 INFO: 2021-01-08 17:00:23 INFO: 2021-01-08 17:00:23 INFO: 2021-01-08 17:00:23 INFO: start trader process 2021-01-08 17:00:23 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2021-01-08 17:00:23 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2021-01-08 17:00:23 INFO: Authenticating with API Key. 2021-01-08 17:00:24 INFO: Connected to WS. 2021-01-08 18:00:20 INFO: 2021-01-08 18:00:20 INFO: 2021-01-08 18:00:20 INFO: 2021-01-08 18:00:20 INFO: 2021-01-08 18:00:20 INFO: init new order start Traceback (most recent call last): File "app/trader.py", line 131, in main() File "app/trader.py", line 88, in main order_props: OrderProperties = check_need_new_order(TICKER) File "/home/crypto/current/app/init_order_operations.py", line 53, in check_need_new_order source_buckets = get_buckets(ticker, 3) File "/home/crypto/current/app/bitmex_rest.py", line 16, in get_buckets return client_rest.Trade.Trade_getBucketed(binSize=bin_size, partial=False, symbol=ticker, count=count, start=start, File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 271, in result swagger_result = self._get_swagger_result(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 124, in wrapper return func(self, *args, **kwargs) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 300, in _get_swagger_result unmarshal_response( File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/crypto/venv/lib/python3.8/site-packages/bravado/http_future.py", line 420, in raise_on_expected raise make_http_exception( bravado.exception.HTTPForbidden: 403 Forbidden: {'error': {'message': 'Your account has been disabled from using the API. Please contact support.', 'name': 'HTTPError'}} /home/crypto/venv/lib/python3.8/site-packages/swagger_spec_validator/validator20.py:49: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) warnings.warn( 2021-01-08 18:00:23 INFO: 2021-01-08 18:00:23 INFO: 2021-01-08 18:00:23 INFO: 2021-01-08 18:00:23 INFO: 2021-01-08 18:00:23 INFO: start trader process 2021-01-08 18:00:23 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2021-01-08 18:00:23 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2021-01-08 18:00:23 INFO: Authenticating with API Key. 2021-01-08 18:00:24 INFO: Connected to WS. 2021-01-08 18:22:01 ERROR: Error : Connection is already closed. 2021-01-08 18:22:01 ERROR: error from callback >: Connection is already closed. 2021-01-08 18:22:01 INFO: Websocket Closed 2021-01-08 18:22:01 WARNING: reconnect to socket 2021-01-08 18:22:01 INFO: connect to https://www.bitmex.com/api/v1 by 5Fys4FdLzNqgk7-_XfAnFOeA 2021-01-08 18:22:01 INFO: Connecting to wss://www.bitmex.com/realtime?subscribe=order,trade:ETHUSD 2021-01-08 18:22:01 INFO: Authenticating with API Key. 2021-01-08 18:22:04 ERROR: Error : Handshake status 503 Service Unavailable 2021-01-08 18:22:04 ERROR: error from callback >: Handshake status 503 Service Unavailable 2021-01-08 18:22:04 INFO: Websocket Closed