zvtvz / zvt

@@ -0,0 +1,33 @@
Loading
1 +
# -*- coding: utf-8 -*-
2 +
from enum import Enum
3 +
4 +
5 +
class PlayerType(Enum):
6 +
    # 个人
7 +
    individual = 'individual'
8 +
    # 基金
9 +
    fund = 'fund'
10 +
    # 社保
11 +
    social_security = 'social_security'
12 +
    # 保险
13 +
    insurance = 'insurance'
14 +
    # 外资
15 +
    qfii = 'qfii'
16 +
    # 信托
17 +
    trust = 'trust'
18 +
    # 券商
19 +
    broker = 'broker'
20 +
    # 公司(包括私募)
21 +
    corporation = 'corporation'
22 +
23 +
24 +
class EntityType(Enum):
25 +
    stock = 'stock'
26 +
    future = 'future'
27 +
    coin = 'coin'
28 +
    option = 'option'
29 +
30 +
31 +
class Exchange(Enum):
32 +
    sh = 'sh'
33 +
    sz = 'sz'

@@ -4,7 +4,7 @@
Loading
4 4
from typing import List, Union
5 5
6 6
import pandas as pd
7 -
from sqlalchemy import Column, String, DateTime, Float
7 +
from sqlalchemy import Column, String, DateTime, Float, BIGINT
8 8
from sqlalchemy.orm import Session
9 9
10 10
from zvt.contract import IntervalLevel
@@ -19,6 +19,9 @@
Loading
19 19
    # the meaning could be different for different case,most of time it means 'happen time'
20 20
    timestamp = Column(DateTime)
21 21
22 +
    # unix epoch,same meaning with timestamp
23 +
    # ts = Column(BIGINT)
24 +
22 25
    @classmethod
23 26
    def help(cls):
24 27
        print(inspect.getsource(cls))

@@ -75,7 +75,6 @@
Loading
75 75
    zvt_context.dbname_map_schemas[db_name] = schemas
76 76
77 77
    for provider in providers:
78 -
        # track in in  _providers
79 78
        if provider not in zvt_context.providers:
80 79
            zvt_context.providers.append(provider)
81 80
Files Coverage
zvt 60.60%
Project Totals (107 files) 60.60%
925.1
TRAVIS_PYTHON_VERSION=3.6
TRAVIS_OS_NAME=linux
924.1
TRAVIS_PYTHON_VERSION=3.6
TRAVIS_OS_NAME=linux

No yaml found.

Create your codecov.yml to customize your Codecov experience

Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading