Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Error save strategy: near "ON": syntax error Unable to execute statement
- sql:
- INSERT INTO strategy (
- id_strategy,
- name_strategy,
- instrument,
- data_series,
- positions,
- avg_price,
- unrealized_pnl,
- realized_pnl,
- account,
- host,
- auto_connect
- ) VALUES (
- 1, /* id_strategy */
- 'Alfabot', /* name_strategy */
- '', /* instrument */
- '', /* data_series */
- 0, /* positions */
- 0, /* avg_price */
- 0, /* unrealized_pnl */
- 0, /* realized_pnl */
- 0, /* account */
- '127.0.0.1:1986', /* host */
- 0 /* auto_connect */
- ) ON CONFLICT(id_strategy) DO UPDATE SET
- name_strategy = 'Alfabot',
- instrument = '',
- data_series = '',
- positions = 0,
- avg_price = 0,
- unrealized_pnl = 0,
- realized_pnl = 0,
- account = 0,
- host = '127.0.0.1:1986',
- auto_connect = 0;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement