Giter Club home page Giter Club logo

okex-quantification's Introduction

OK API相关小脚本


基础脚本

  • email_send.py 发送邮件
  • ms_sql.py 保存到数据库
  • my_schedule.py 定时任务

okapi脚本

  • ok510.py 定时记录几个账号的资金变化
  • ob_buy_okb.py 记录okb的买入卖出策略
  • ok_price_history 记录ok期货出现溢价
  • ok_skyrocketing 记录ok暴涨暴跌

sql建表语句

  • 发送邮件
  CREATE TABLE tab_send_email(
	[id] [int] IDENTITY(1,1) NOT NULL,
	address_to varchar(30) not null,
	mail_subject nvarchar(300) not null,
	mail_text nvarchar(500) not null,
	create_time [datetime] NOT NULL  DEFAULT (getdate()),
	status bit default(1),
)
  • 记录几个账号的资金
  CREATE TABLE tab_okex_price_history(
                    	[id] [int] IDENTITY(1,1) NOT NULL,
                    	name varchar(10) not null,
                    	present float not null,
                    	this_week float not null,
                    	next_week float not null,
                    	quarter float not null,
                    	create_time [datetime] NOT NULL  DEFAULT (getdate()),
                    	status bit default(1),
                    )
  • 记录okb的买入卖出策略
 CREATE TABLE tab_bd_buy(
	[id] [int] IDENTITY(1,1) NOT NULL,
	token varchar(10) not null,
	price float not null,
	[action] float not null,
	status bit not null default (1),
	create_time [datetime] NOT NULL  DEFAULT (getdate())
)
  • 记录ok暴涨暴跌
   CREATE TABLE tab_minutes_price(
	[id] [int] IDENTITY(1,1) NOT NULL,
	token_price varchar(200) not null,
	create_time [datetime] NOT NULL  DEFAULT (getdate())
)
  CREATE TABLE tab_price_change(
	[id] [int] IDENTITY(1,1) NOT NULL,
	before_price float not null,
	now_price float not null,
	change float not null,
	status bit not null default (1),
	create_time [datetime] NOT NULL  DEFAULT (getdate())
)

okex-quantification's People

Contributors

zjicmyw avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.