Skip to content

Instantly share code, notes, and snippets.

@alexcrownjr
Created March 14, 2019 11:54
Show Gist options
  • Save alexcrownjr/34aba4ce57c161a04e266baf53c10464 to your computer and use it in GitHub Desktop.
Save alexcrownjr/34aba4ce57c161a04e266baf53c10464 to your computer and use it in GitHub Desktop.
main_1 | 11:52:50,809 INFO: exit response {'status': 201, 'json': {'id': 27391591, 'type': 'Deal', 'bot_id': 320047, 'max_safety_orders': 0, 'deal_has_error': False, 'from_currency_id': 0, 'to_currency_id': 0, 'account_id': 117138, 'active_safety_orders_count': 1, 'created_at': '2019-03-14T10:05:47.545Z', 'updated_at': '2019-03-14T11:52:50.585Z', 'closed_at': None, 'finished?': False, 'current_active_safety_orders_count': 0, 'current_active_safety_orders': 0, 'completed_safety_orders_count': 0, 'cancellable?': True, 'panic_sellable?': True, 'trailing_enabled': False, 'pair': 'BTC_AST', 'status': 'bought', 'take_profit': '1.68', 'base_order_volume': '0.001', 'safety_order_volume': '0.00125', 'safety_order_step_percentage': '1.1', 'bought_amount': '102.0', 'bought_volume': '0.00101566', 'bought_average_price': '0.000009957450980392156862745', 'sold_amount': '0.0', 'sold_volume': '0.0', 'sold_average_price': '0', 'take_profit_type': 'total_bought_volume', 'final_profit': '0.0', 'martingale_coefficient': '1.0', 'error_message': None, 'safety_order_volume_type': 'quote_currency', 'base_order_volume_type': 'quote_currency', 'from_currency': 'BTC', 'to_currency': 'AST', 'current_price': '1.014e-05', 'take_profit_price': '0.00001014', 'final_profit_percentage': '0', 'actual_profit_percentage': '1.83', 'bot_name': 'TEST_18 composite', 'account_name': '', 'usd_final_profit': '0', 'actual_profit': '0.00001758572', 'actual_usd_profit': '0.0679237883568', 'failed_message': None, 'reserved_base_coin': '0.00101566', 'reserved_second_coin': '102.0', 'trailing_deviation': '0.2', 'trailing_max_price': None, 'bot_events': [{'message': 'Выставляем начальный ордер. Цена: 0.00000995 BTC Объем: 0.0010149 BTC (102.0 AST)', 'created_at': '2019-03-14T10:05:47.646Z'}, {'message': 'Начальный ордер исполнен. Цена: 0.00000996 BTC. Объем: 0.00101566 BTC (102.0 AST)', 'created_at': '2019-03-14T10:05:48.696Z'}, {'message': 'Выставляем TakeProfit ордер. Цена: 0.00001097 BTC Объем: 0.00111894 BTC (102.0 AST), для закрытия сделки цена должна вырасти на 10.36% от текущего уровня', 'created_at': '2019-03-14T10:05:48.827Z'}]}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment