Cointrader表结构

转载须注明出处:http://blog.csdn.net/minimicall?viewmode=contentshttp://cloudtrader.top

设置(setup)

Install Java

Install Maven

Install MySql

Create a database using

mysql -u root -e `create database cointrader;`

This is mysql root not system root

git clone https://github.com/timolson/cointrader.git

cd cointrader

Build with Maven

mvn

Optional: Create a file cointrader.properties in the current directory. You may configure additional settings here, like a database username and password. See cointrader-default.properties.

Initialize the database with:

./cointrader.sh reset-database

You're done! Now you might want to:

Start a process to save market data in the db:

./cointrader.sh save-data &

Run the Console

./cointrader.sh console

登入数据库:

$ mysql -u root -p

查看database:

mysql> show databases;

+--------------------+

| Database           |

+--------------------+

| information_schema |

| cointrader         |

| db_test            |

| mysql              |

| openfire           |

| performance_schema |

| xoops              |

+--------------------+

7 rows in set (0.00 sec)

切入cointrader:

mysql> use cointrader;

Reading table information for completion of table and column names

You can turn off this feature to get a quicker startup with -A

Database changed

查看表格:

mysql> show tables;

+--------------------------+

| Tables_in_cointrader     |

+--------------------------+

| adjustment               |

| adjustment_deltas        |

| authorization            |

| book                     |

| currency                 |

| exchange                 |

| fill                     |

| fill_children            |

| general_order            |

| listing                  |

| market                   |

| market_data_gap_error    |

| offer                    |

| order_children           |

| order_update             |

| owner                    |

| owner_stakes             |

| portfolio                |

| portfolio_manager        |

| portfolio_stakes         |

| position                 |

| position_fills           |

| position_update          |

| prompt                   |

| specific_order           |

| stake                    |

| strategy_instance        |

| strategy_instance_config |

| tick                     |

| trade                    |

| transaction              |

+--------------------------+

31 rows in set (0.01 sec)

查看每个表的表结构

mysql> desc adjustment;

+---------------+------------+------+-----+---------+-------+

| Field         | Type       | Null | Key | Default | Extra |

+---------------+------------+------+-----+---------+-------+

| id            | binary(16) | NO   | PRI | NULL    |       |

| version       | bigint(20) | YES  |     | NULL    |       |

| time_applied  | tinyblob   | YES  |     | NULL    |       |

| authorization | binary(16) | NO   | UNI | NULL    |       |

+---------------+------------+------+-----+---------+-------+

mysql> desc adjustment_deltas;

+------------+------------+------+-----+---------+-------+

| Field      | Type       | Null | Key | Default | Extra |

+------------+------------+------+-----+---------+-------+

| adjustment | binary(16) | NO   | MUL | NULL    |       |

| deltas     | binary(16) | NO   | PRI | NULL    |       |

+------------+------------+------+-----+---------+-------+

2 rows in set (0.00 sec)

mysql> desc  authorization    ;

+---------+--------------+------+-----+---------+-------+

| Field   | Type         | Null | Key | Default | Extra |

+---------+--------------+------+-----+---------+-------+

| id      | binary(16)   | NO   | PRI | NULL    |       |

| version | bigint(20)   | YES  |     | NULL    |       |

| notes   | varchar(255) | YES  |     | NULL    |       |

+---------+--------------+------+-----+---------+-------+

3 rows in set (0.00 sec)

mysql> desc  authorization  ;

+---------+--------------+------+-----+---------+-------+

| Field   | Type         | Null | Key | Default | Extra |

+---------+--------------+------+-----+---------+-------+

| id      | binary(16)   | NO   | PRI | NULL    |       |

| version | bigint(20)   | YES  |     | NULL    |       |

| notes   | varchar(255) | YES  |     | NULL    |       |

+---------+--------------+------+-----+---------+-------+

3 rows in set (0.00 sec)

mysql> desc  book ;

+----------------------+--------------+------+-----+---------+-------+

| Field                | Type         | Null | Key | Default | Extra |

+----------------------+--------------+------+-----+---------+-------+

| id                   | binary(16)   | NO   | PRI | NULL    |       |

| version              | bigint(20)   | YES  |     | NULL    |       |

| time                 | bigint(20)   | NO   | MUL | NULL    |       |

| remote_key           | varchar(255) | YES  |     | NULL    |       |

| time_received        | bigint(20)   | NO   | MUL | NULL    |       |

| market               | binary(16)   | NO   | MUL | NULL    |       |

| ask_deletions_blob   | longblob     | YES  |     | NULL    |       |

| ask_insertions_blob  | longblob     | YES  |     | NULL    |       |

| ask_price_as_double  | double       | YES  |     | NULL    |       |

| ask_volume_as_double | double       | YES  |     | NULL    |       |

| bid_deletions_blob   | longblob     | YES  |     | NULL    |       |

| bid_insertions_blob  | longblob     | YES  |     | NULL    |       |

| bid_price_as_double  | double       | YES  |     | NULL    |       |

| bid_volume_as_double | double       | YES  |     | NULL    |       |

| parent               | binary(16)   | YES  | MUL | NULL    |       |

+----------------------+--------------+------+-----+---------+-------+

15 rows in set (0.00 sec)

mysql> desc currency ;

+---------+--------------+------+-----+---------+-------+

| Field   | Type         | Null | Key | Default | Extra |

+---------+--------------+------+-----+---------+-------+

| id      | binary(16)   | NO   | PRI | NULL    |       |

| version | bigint(20)   | YES  |     | NULL    |       |

| basis   | double       | NO   |     | NULL    |       |

| symbol  | varchar(255) | NO   |     | NULL    |       |

| fiat    | bit(1)       | NO   |     | NULL    |       |

+---------+--------------+------+-----+---------+-------+

5 rows in set (0.00 sec)

mysql> desc  exchange    ;

+-------------------+--------------+------+-----+---------+-------+

| Field             | Type         | Null | Key | Default | Extra |

+-------------------+--------------+------+-----+---------+-------+

| id                | binary(16)   | NO   | PRI | NULL    |       |

| version           | bigint(20)   | YES  |     | NULL    |       |

| fee_method        | int(11)      | YES  |     | NULL    |       |

| fee_rate          | double       | NO   |     | NULL    |       |

| margin            | int(11)      | NO   |     | NULL    |       |

| margin_fee_method | int(11)      | YES  |     | NULL    |       |

| margin_fee_rate   | double       | NO   |     | NULL    |       |

| symbol            | varchar(255) | NO   |     | NULL    |       |

+-------------------+--------------+------+-----+---------+-------+

8 rows in set (0.00 sec)

mysql> desc  fill    ;

+--------------------+--------------+------+-----+---------+-------+

| Field              | Type         | Null | Key | Default | Extra |

+--------------------+--------------+------+-----+---------+-------+

| id                 | binary(16)   | NO   | PRI | NULL    |       |

| version            | bigint(20)   | YES  |     | NULL    |       |

| time               | bigint(20)   | NO   |     | NULL    |       |

| remote_key         | varchar(255) | YES  |     | NULL    |       |

| time_received      | bigint(20)   | NO   |     | NULL    |       |

| open_volume_count  | bigint(20)   | NO   |     | NULL    |       |

| price_count        | bigint(20)   | NO   |     | NULL    |       |

| stop_price_count   | bigint(20)   | NO   |     | NULL    |       |

| target_price_count | bigint(20)   | NO   |     | NULL    |       |

| volume_count       | bigint(20)   | NO   |     | NULL    |       |

| market             | binary(16)   | YES  | MUL | NULL    |       |

| order              | binary(16)   | YES  | MUL | NULL    |       |

| portfolio          | binary(16)   | NO   | MUL | NULL    |       |

+--------------------+--------------+------+-----+---------+-------+

13 rows in set (0.01 sec)

mysql> desc fill_children  ;

+----------+------------+------+-----+---------+-------+

| Field    | Type       | Null | Key | Default | Extra |

+----------+------------+------+-----+---------+-------+

| fill     | binary(16) | NO   | MUL | NULL    |       |

| children | binary(16) | NO   | PRI | NULL    |       |

+----------+------------+------+-----+---------+-------+

2 rows in set (0.00 sec)

mysql> desc general_order   ;

+-----------------------------+---------------+------+-----+---------+-------+

| Field                       | Type          | Null | Key | Default | Extra |

+-----------------------------+---------------+------+-----+---------+-------+

| id                          | binary(16)    | NO   | PRI | NULL    |       |

| version                     | bigint(20)    | YES  |     | NULL    |       |

| time                        | bigint(20)    | NO   |     | NULL    |       |

| comment                     | varchar(255)  | YES  |     | NULL    |       |

| emulation                   | bit(1)        | NO   |     | NULL    |       |

| entry_time                  | bigint(20)    | YES  |     | NULL    |       |

| expiration                  | tinyblob      | YES  |     | NULL    |       |

| fill_type                   | int(11)       | YES  | MUL | NULL    |       |

| margin_type                 | int(11)       | YES  |     | NULL    |       |

| panic_force                 | bit(1)        | NO   |     | NULL    |       |

| position_effect             | int(11)       | YES  |     | NULL    |       |

| market                      | binary(16)    | YES  | MUL | NULL    |       |

| parent_order                | binary(16)    | YES  |     | NULL    |       |

| portfolio                   | binary(16)    | NO   | MUL | NULL    |       |

| limit_price_decimal         | decimal(19,2) | YES  |     | NULL    |       |

| stop_amount_decimal         | decimal(19,2) | YES  |     | NULL    |       |

| stop_price_decimal          | decimal(19,2) | YES  |     | NULL    |       |

| target_amount_decimal       | decimal(19,2) | YES  |     | NULL    |       |

| target_price_decimal        | decimal(19,2) | YES  |     | NULL    |       |

| trailing_stop_price_decimal | decimal(19,2) | YES  |     | NULL    |       |

| volume_decimal              | decimal(19,2) | YES  |     | NULL    |       |

| listing                     | binary(16)    | NO   | MUL | NULL    |       |

+-----------------------------+---------------+------+-----+---------+-------+

22 rows in set (0.00 sec)

mysql> desc listing   ;

+---------+------------+------+-----+---------+-------+

| Field   | Type       | Null | Key | Default | Extra |

+---------+------------+------+-----+---------+-------+

| id      | binary(16) | NO   | PRI | NULL    |       |

| version | bigint(20) | YES  |     | NULL    |       |

| base    | binary(16) | NO   | MUL | NULL    |       |

| prompt  | binary(16) | YES  | MUL | NULL    |       |

| quote   | binary(16) | NO   | MUL | NULL    |       |

+---------+------------+------+-----+---------+-------+

5 rows in set (0.00 sec)

mysql> desc market ;

+--------------+------------+------+-----+---------+-------+

| Field        | Type       | Null | Key | Default | Extra |

+--------------+------------+------+-----+---------+-------+

| id           | binary(16) | NO   | PRI | NULL    |       |

| version      | bigint(20) | YES  |     | NULL    |       |

| active       | bit(1)     | NO   | MUL | NULL    |       |

| price_basis  | double     | NO   |     | NULL    |       |

| volume_basis | double     | NO   |     | NULL    |       |

| exchange     | binary(16) | NO   | MUL | NULL    |       |

| listing      | binary(16) | NO   | MUL | NULL    |       |

+--------------+------------+------+-----+---------+-------+

7 rows in set (0.00 sec)

mysql> desc market_data_gap_error;

+--------------------+------------+------+-----+---------+-------+

| Field              | Type       | Null | Key | Default | Extra |

+--------------------+------------+------+-----+---------+-------+

| id                 | binary(16) | NO   | PRI | NULL    |       |

| version            | bigint(20) | YES  |     | NULL    |       |

| time               | bigint(20) | NO   |     | NULL    |       |

| exception          | tinyblob   | YES  |     | NULL    |       |

| gap_interval_start | datetime   | YES  |     | NULL    |       |

| gap_interval_end   | datetime   | YES  |     | NULL    |       |

| market             | binary(16) | YES  | MUL | NULL    |       |

+--------------------+------------+------+-----+---------+-------+

7 rows in set (0.00 sec)

mysql> desc offer  ;

+---------------+--------------+------+-----+---------+-------+

| Field         | Type         | Null | Key | Default | Extra |

+---------------+--------------+------+-----+---------+-------+

| id            | binary(16)   | NO   | PRI | NULL    |       |

| version       | bigint(20)   | YES  |     | NULL    |       |

| time          | bigint(20)   | NO   |     | NULL    |       |

| remote_key    | varchar(255) | YES  |     | NULL    |       |

| time_received | bigint(20)   | NO   |     | NULL    |       |

| market        | binary(16)   | NO   | MUL | NULL    |       |

| price_count   | bigint(20)   | YES  |     | NULL    |       |

| volume_count  | bigint(20)   | YES  |     | NULL    |       |

+---------------+--------------+------+-----+---------+-------+

8 rows in set (0.00 sec)

mysql> desc order_children   ;

+----------+------------+------+-----+---------+-------+

| Field    | Type       | Null | Key | Default | Extra |

+----------+------------+------+-----+---------+-------+

| order    | binary(16) | NO   |     | NULL    |       |

| children | binary(16) | NO   | PRI | NULL    |       |

+----------+------------+------+-----+---------+-------+

2 rows in set (0.00 sec)

mysql> desc order_update ;

+------------+------------+------+-----+---------+----------------+

| Field      | Type       | Null | Key | Default | Extra          |

+------------+------------+------+-----+---------+----------------+

| sequence   | int(11)    | NO   | PRI | NULL    | auto_increment |

| id         | binary(16) | NO   | PRI | NULL    |                |

| version    | bigint(20) | YES  |     | NULL    |                |

| time       | bigint(20) | NO   |     | NULL    |                |

| last_state | int(11)    | YES  |     | NULL    |                |

| state      | int(11)    | YES  | MUL | NULL    |                |

| order      | binary(16) | YES  |     | NULL    |                |

+------------+------------+------+-----+---------+----------------+

7 rows in set (0.00 sec)

mysql> desc owner      ;

+-----------+--------------+------+-----+---------+-------+

| Field     | Type         | Null | Key | Default | Extra |

+-----------+--------------+------+-----+---------+-------+

| id        | binary(16)   | NO   | PRI | NULL    |       |

| version   | bigint(20)   | YES  |     | NULL    |       |

| portfolio | binary(16)   | YES  | MUL | NULL    |       |

| name      | varchar(255) | NO   |     | NULL    |       |

+-----------+--------------+------+-----+---------+-------+

4 rows in set (0.00 sec)

mysql> desc owner_stakes ;

+--------+------------+------+-----+---------+-------+

| Field  | Type       | Null | Key | Default | Extra |

+--------+------------+------+-----+---------+-------+

| owner  | binary(16) | NO   | MUL | NULL    |       |

| stakes | binary(16) | NO   | PRI | NULL    |       |

+--------+------------+------+-----+---------+-------+

2 rows in set (0.00 sec)

mysql> desc portfolio  ;

+------------+--------------+------+-----+---------+-------+

| Field      | Type         | Null | Key | Default | Extra |

+------------+--------------+------+-----+---------+-------+

| id         | binary(16)   | NO   | PRI | NULL    |       |

| version    | bigint(20)   | YES  |     | NULL    |       |

| name       | varchar(255) | YES  |     | NULL    |       |

| base_asset | binary(16)   | YES  |     | NULL    |       |

+------------+--------------+------+-----+---------+-------+

4 rows in set (0.00 sec)

mysql> desc portfolio_manager  ;

+-----------+------------+------+-----+---------+-------+

| Field     | Type       | Null | Key | Default | Extra |

+-----------+------------+------+-----+---------+-------+

| id        | binary(16) | NO   | PRI | NULL    |       |

| version   | bigint(20) | YES  |     | NULL    |       |

| portfolio | binary(16) | YES  | MUL | NULL    |       |

+-----------+------------+------+-----+---------+-------+

3 rows in set (0.00 sec)

mysql> desc portfolio_stakes ;

+-----------+------------+------+-----+---------+-------+

| Field     | Type       | Null | Key | Default | Extra |

+-----------+------------+------+-----+---------+-------+

| portfolio | binary(16) | NO   | MUL | NULL    |       |

| stakes    | binary(16) | NO   | PRI | NULL    |       |

+-----------+------------+------+-----+---------+-------+

2 rows in set (0.00 sec)

mysql> desc position ;

+-----------+------------+------+-----+---------+-------+

| Field     | Type       | Null | Key | Default | Extra |

+-----------+------------+------+-----+---------+-------+

| id        | binary(16) | NO   | PRI | NULL    |       |

| version   | bigint(20) | YES  |     | NULL    |       |

| asset     | binary(16) | YES  |     | NULL    |       |

| exchange  | binary(16) | YES  | MUL | NULL    |       |

| market    | binary(16) | YES  | MUL | NULL    |       |

| portfolio | binary(16) | YES  | MUL | NULL    |       |

+-----------+------------+------+-----+---------+-------+

6 rows in set (0.00 sec)

mysql> desc position_fills  ;

+----------+------------+------+-----+---------+-------+

| Field    | Type       | Null | Key | Default | Extra |

+----------+------------+------+-----+---------+-------+

| position | binary(16) | NO   | MUL | NULL    |       |

| fills    | binary(16) | NO   | PRI | NULL    |       |

+----------+------------+------+-----+---------+-------+

2 rows in set (0.00 sec)

mysql> desc  position_update;

+-----------+------------+------+-----+---------+-------+

| Field     | Type       | Null | Key | Default | Extra |

+-----------+------------+------+-----+---------+-------+

| id        | binary(16) | NO   | PRI | NULL    |       |

| version   | bigint(20) | YES  |     | NULL    |       |

| time      | bigint(20) | NO   |     | NULL    |       |

| last_type | int(11)    | YES  |     | NULL    |       |

| type      | int(11)    | YES  |     | NULL    |       |

| market    | binary(16) | YES  | MUL | NULL    |       |

| position  | binary(16) | YES  | MUL | NULL    |       |

+-----------+------------+------+-----+---------+-------+

7 rows in set (0.00 sec)

mysql> desc   prompt  ;

+-------------------+--------------+------+-----+---------+-------+

| Field             | Type         | Null | Key | Default | Extra |

+-------------------+--------------+------+-----+---------+-------+

| id                | binary(16)   | NO   | PRI | NULL    |       |

| version           | bigint(20)   | YES  |     | NULL    |       |

| contract_size     | double       | NO   |     | NULL    |       |

| fee_method        | int(11)      | YES  |     | NULL    |       |

| fee_rate          | double       | NO   |     | NULL    |       |

| margin            | int(11)      | NO   |     | NULL    |       |

| margin_fee_method | int(11)      | YES  |     | NULL    |       |

| margin_method     | int(11)      | YES  |     | NULL    |       |

| price_basis       | double       | NO   |     | NULL    |       |

| symbol            | varchar(255) | NO   |     | NULL    |       |

| tick_size         | double       | NO   |     | NULL    |       |

| tick_value        | double       | NO   |     | NULL    |       |

| volume_basis      | double       | NO   |     | NULL    |       |

| traded_currency   | binary(16)   | YES  |     | NULL    |       |

+-------------------+--------------+------+-----+---------+-------+

14 rows in set (0.01 sec)

mysql> desc specific_order ;

+-------------------+--------------+------+-----+---------+-------+

| Field             | Type         | Null | Key | Default | Extra |

+-------------------+--------------+------+-----+---------+-------+

| id                | binary(16)   | NO   | PRI | NULL    |       |

| version           | bigint(20)   | YES  |     | NULL    |       |

| time              | bigint(20)   | NO   |     | NULL    |       |

| comment           | varchar(255) | YES  |     | NULL    |       |

| emulation         | bit(1)       | NO   |     | NULL    |       |

| entry_time        | bigint(20)   | YES  |     | NULL    |       |

| expiration        | tinyblob     | YES  |     | NULL    |       |

| fill_type         | int(11)      | YES  | MUL | NULL    |       |

| margin_type       | int(11)      | YES  |     | NULL    |       |

| panic_force       | bit(1)       | NO   |     | NULL    |       |

| position_effect   | int(11)      | YES  |     | NULL    |       |

| market            | binary(16)   | YES  | MUL | NULL    |       |

| parent_order      | binary(16)   | YES  |     | NULL    |       |

| portfolio         | binary(16)   | NO   | MUL | NULL    |       |

| limit_price_count | bigint(20)   | NO   |     | NULL    |       |

| placement_count   | int(11)      | NO   |     | NULL    |       |

| remote_key        | varchar(255) | YES  |     | NULL    |       |

| time_received     | bigint(20)   | YES  |     | NULL    |       |

| volume_count      | bigint(20)   | NO   |     | NULL    |       |

+-------------------+--------------+------+-----+---------+-------+

19 rows in set (0.01 sec)

mysql> desc stake  ;

+-----------+----------------+------+-----+---------+-------+

| Field     | Type           | Null | Key | Default | Extra |

+-----------+----------------+------+-----+---------+-------+

| id        | binary(16)     | NO   | PRI | NULL    |       |

| version   | bigint(20)     | YES  |     | NULL    |       |

| stake     | decimal(30,15) | YES  |     | NULL    |       |

| owner     | binary(16)     | YES  | MUL | NULL    |       |

| portfolio | binary(16)     | NO   | MUL | NULL    |       |

+-----------+----------------+------+-----+---------+-------+

5 rows in set (0.00 sec)

mysql> desc strategy_instance ;

+-------------+--------------+------+-----+---------+-------+

| Field       | Type         | Null | Key | Default | Extra |

+-------------+--------------+------+-----+---------+-------+

| id          | binary(16)   | NO   | PRI | NULL    |       |

| version     | bigint(20)   | YES  |     | NULL    |       |

| portfolio   | binary(16)   | YES  | MUL | NULL    |       |

| module_name | varchar(255) | YES  |     | NULL    |       |

+-------------+--------------+------+-----+---------+-------+

4 rows in set (0.00 sec)

mysql> desc  strategy_instance_config;

+-------------------+--------------+------+-----+---------+-------+

| Field             | Type         | Null | Key | Default | Extra |

+-------------------+--------------+------+-----+---------+-------+

| strategy_instance | binary(16)   | NO   | PRI | NULL    |       |

| config            | varchar(255) | YES  |     | NULL    |       |

| config_key        | varchar(255) | NO   | PRI |         |       |

+-------------------+--------------+------+-----+---------+-------+

3 rows in set (0.00 sec)

mysql> desc  tick  ;

+---------------+--------------+------+-----+---------+-------+

| Field         | Type         | Null | Key | Default | Extra |

+---------------+--------------+------+-----+---------+-------+

| id            | binary(16)   | NO   | PRI | NULL    |       |

| version       | bigint(20)   | YES  |     | NULL    |       |

| time          | bigint(20)   | NO   |     | NULL    |       |

| remote_key    | varchar(255) | YES  |     | NULL    |       |

| time_received | bigint(20)   | NO   |     | NULL    |       |

| market        | binary(16)   | NO   | MUL | NULL    |       |

| price_count   | bigint(20)   | YES  |     | NULL    |       |

| volume_count  | bigint(20)   | YES  |     | NULL    |       |

| start_instant | tinyblob     | YES  |     | NULL    |       |

| last_book     | binary(16)   | YES  | MUL | NULL    |       |

+---------------+--------------+------+-----+---------+-------+

10 rows in set (0.00 sec)

mysql> desc trade    ;

+---------------+--------------+------+-----+---------+-------+

| Field         | Type         | Null | Key | Default | Extra |

+---------------+--------------+------+-----+---------+-------+

| id            | binary(16)   | NO   | PRI | NULL    |       |

| version       | bigint(20)   | YES  |     | NULL    |       |

| time          | bigint(20)   | NO   | MUL | NULL    |       |

| remote_key    | varchar(255) | YES  |     | NULL    |       |

| time_received | bigint(20)   | NO   | MUL | NULL    |       |

| market        | binary(16)   | NO   | MUL | NULL    |       |

| price_count   | bigint(20)   | YES  |     | NULL    |       |

| volume_count  | bigint(20)   | YES  |     | NULL    |       |

+---------------+--------------+------+-----+---------+-------+

8 rows in set (0.00 sec)

mysql> desc  transaction  ;

+---------------------+------------+------+-----+---------+-------+

| Field               | Type       | Null | Key | Default | Extra |

+---------------------+------------+------+-----+---------+-------+

| id                  | binary(16) | NO   | PRI | NULL    |       |

| version             | bigint(20) | YES  |     | NULL    |       |

| time                | bigint(20) | NO   |     | NULL    |       |

| amount_count        | bigint(20) | YES  |     | NULL    |       |

| commission_count    | bigint(20) | YES  |     | NULL    |       |

| position_effect     | int(11)    | YES  |     | NULL    |       |

| price_count         | bigint(20) | YES  |     | NULL    |       |

| type                | int(11)    | YES  | MUL | NULL    |       |

| asset               | binary(16) | YES  |     | NULL    |       |

| commission_currency | binary(16) | YES  |     | NULL    |       |

| currency            | binary(16) | NO   |     | NULL    |       |

| exchange            | binary(16) | YES  | MUL | NULL    |       |

| fill                | binary(16) | YES  | MUL | NULL    |       |

| market              | binary(16) | YES  | MUL | NULL    |       |

| order               | binary(16) | YES  |     | NULL    |       |

| portfolio           | binary(16) | NO   | MUL | NULL    |       |

+---------------------+------------+------+-----+---------+-------+

16 rows in set (0.00 sec)

程序猿的量化交易之路(14)--Cointrader数据表(2)的更多相关文章

  1. 程序猿的量化交易之路(29)--Cointrader之Tick实体(16)

    转载需注明出处:http://blog.csdn.net/minimicall,http://cloudtrade.top Tick:什么是Tick,在交易平台中很常见,事实上就 单笔交易时某仅仅证券 ...

  2. 程序猿的量化交易之路(24)--Cointrader之RemoteEvent远程事件实体(11)

    转载需注明出处:http://blog.csdn.net/minimicall,http://cloudtrader.top/ 在量化交易系统中.有些事件是远端传来的,比方股票的价格数据等.所以,在这 ...

  3. 程序猿的量化交易之路(27)--Cointrader之PriceData价格数据(14)

    转载须注明出处:http://blog.csdn.net/minimicall?viewmode=contents,http://cloudtrade.top/ PriceData:价格数据.价格数据 ...

  4. 程序猿的量化交易之路(13)--Cointrader类图(1)

    转载须注明出处:http://blog.csdn.net/minimicall? viewmode=contents, htpp://cloudtrader.top 今天開始正式切入到Cointrad ...

  5. 程序猿的量化交易之路(20)--Cointrader之Assert实体(8)

    转载需说明出处:http://blog.csdn.net/minimicall, http://cloudtrade.top 不论什么可交易的都能够称之为Assert,资产.其类代码例如以下: pac ...

  6. 程序猿的量化交易之路(30)--Cointrader之ConfigUtil(17)

    转载须注明出处:viewmode=contents">http://blog.csdn.net/minimicall?viewmode=contents.http://cloudtra ...

  7. 程序猿的量化交易之路(26)--Cointrader之Listing挂牌实体(13)

    转载须注明出处:http://blog.csdn.net/minimicall? viewmode=contents,http://cloudtrade.top Listing:挂牌. 比方某仅仅股票 ...

  8. 程序猿的量化交易之路(32)--Cointrade之Portfolio组合(19)

    转载须注明出处:http://blog.csdn.net/minimicall?viewmode=contents,http://cloudtrade.top/ Portfolio:组合,代表的是多个 ...

  9. 程序猿的量化交易之路(18)--Cointrader之Event实体(6)

    转载需注明: 事件,是Esper的重要概念. 这里我们定义个事件类.它是Temporal实体的派生类. 不过对Temporal简单的包装.其代码例如以下: package org.cryptocoin ...

随机推荐

  1. python ORM理解、元类

    元类 参考链接:https://www.liaoxuefeng.com/wiki/0014316089557264a6b348958f449949df42a6d3a2e542c000/00143191 ...

  2. 洛谷 P3199 [HNOI2009]最小圈

    P3199 [HNOI2009]最小圈 题目背景 如果你能提供题面或者题意简述,请直接在讨论区发帖,感谢你的贡献. 题目描述 对于一张有向图,要你求图中最小圈的平均值最小是多少,即若一个圈经过k个节点 ...

  3. 《TCP/IP具体解释》读书笔记(19章)-TCP的交互数据流

    在TCP进行传输数据时.能够分为成块数据流和交互数据流两种.假设按字节计算.成块数据与交互数据的比例约为90%和10%,TCP须要同一时候处理这两类数据,且处理的算法不同. 书籍本章中以Rlogin应 ...

  4. 利用photoshop的动作功能实现图片批处理操作

    首先,通过"窗体菜单"点击"动作".启动动作栏. 然后.通过动作栏的菜单,新建动作. 接着,完毕一个标准操作,包含打开图像,图像处理或者格式转换,另存为,等. ...

  5. 制作自己的特色PE----Mr.Zhang

    必备的文件和工具 win7.iso/win8.iso Windows系统ISO镜像 WimTool BOOT.WIM文件的改动 RegWorkShop 注冊表编辑和分析利器 UltraISO 改动wi ...

  6. JAVA 解析复杂的json字符串

    转自:https://blog.csdn.net/lovelovelovelovelo/article/details/73614473String parameter = { success : 0 ...

  7. js --- 中字符串与unicode编码

    1.charAt():把字符串分成每一个字符,从左往右提取指定位置的字符 var str = '天气'; alert( str.charAt(1) );            //气 2.charCo ...

  8. java静态类、静态方法、静态代码块,静态变量及实例方法,实例变量初始化顺序及内存管理,机制

    1.当一个类被第一次使用时,它需要被类加载器加载,而加载过程涉及以下两点: (1)在加载一个类时,如果它的父类还未被加载,那么其父类必须先被加载: (2)当类加载到内存之后,按照在代码中的出现顺序执行 ...

  9. 用iptables抗御SYN Flood攻击

    1         引 言 网络安全是各种网络应用面临的一个首要问题.从网络普及的那天开始,网络犯罪就没有停止过,相反有愈演愈烈之势.研究发现,现今的网络攻击以分布式拒绝服务攻击(DDOS)为主 .其 ...

  10. Beautiful Soup的使用

    Beautiful Soup简单实用,功能也算比较全,之前下载都是自己使用xpath去获取信息,以后简单的解析可以用这个,方便省事. Beautiful Soup 是用 Python 写的一个 HTM ...