You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for your hard work on this wrapper, very usefoul.
I'm trying to create a bot with a short script (api works as i can get the full list of my bots).
With this code error, data = p3cw.request( entity='bots', action='create_bot', payload={'name':'TEST BOT','account_id': 123456789, 'pairs':'BAT_BTC','base_order_volume':5, 'base_order_volume_type':'percent','take_profit':10, 'safety_order_volume':5,'safety_order_volume_type':'percent', 'martingale_volume_coefficient':1,'martingale_step_coefficient':5, 'max_safety_orders':5,'stop_loss_percentage':2, 'trailing_enabled':True,'trailing_deviation':1,'safety_order_step_percentage':2, 'take_profit_type':'base','active_safety_orders_count':5, 'strategy_list': [{"strategy":"manual"}] } )
I have error {'error': 'record_invalid', 'error_description': 'Invalid parameters', 'error_attributes': {'strategy_list': ['is invalid']}}
(account id if a fake number, but the real one in my test).
have tryed all the strategy list types mentioned on the 3c but i have error regardless.....
many thanks.
The text was updated successfully, but these errors were encountered:
Thanks for your hard work on this wrapper, very usefoul.
I'm trying to create a bot with a short script (api works as i can get the full list of my bots).
With this code
error, data = p3cw.request( entity='bots', action='create_bot', payload={'name':'TEST BOT','account_id': 123456789, 'pairs':'BAT_BTC','base_order_volume':5, 'base_order_volume_type':'percent','take_profit':10, 'safety_order_volume':5,'safety_order_volume_type':'percent', 'martingale_volume_coefficient':1,'martingale_step_coefficient':5, 'max_safety_orders':5,'stop_loss_percentage':2, 'trailing_enabled':True,'trailing_deviation':1,'safety_order_step_percentage':2, 'take_profit_type':'base','active_safety_orders_count':5, 'strategy_list': [{"strategy":"manual"}] } )
I have error
{'error': 'record_invalid', 'error_description': 'Invalid parameters', 'error_attributes': {'strategy_list': ['is invalid']}}
(account id if a fake number, but the real one in my test).
have tryed all the strategy list types mentioned on the 3c but i have error regardless.....
many thanks.
The text was updated successfully, but these errors were encountered: