Advertisement
Astranome

Create DB 4 TrailStop SQL

Jun 15th, 2020
384
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.40 KB | None | 0 0
  1. import sqlite3
  2.  
  3. conn = sqlite3.connect ("tplong.db") # или  ':memory:'чтобы сохранить в RAM
  4. cursor = conn.cursor()
  5.  
  6. # Создание таблицы
  7. cursor.execute("CREATE TABLE albums(bidprice real, startrate real, applied real, stoploss real, strategy text, amount real, trailperc real, id integer )")
  8. cursor.execute("INSERT INTO albums VALUES(1, 0, 700, 0, 'Manager', 1,0,1)")
  9. conn.commit()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement