Skip to content

Commit 5376c69

Browse files
committed
Merge branch 'release/4.15.2'
2 parents 65d593a + e37291a commit 5376c69

File tree

113 files changed

+12799
-8922
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

113 files changed

+12799
-8922
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,9 @@ coverage.xml
4545
*,cover
4646
.hypothesis/
4747
venv/
48+
.venv/
4849
.python-version
50+
.pytest_cache
4951

5052
# Translations
5153
*.mo

.gitlab-ci.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# ref: https://docs.gitlab.com/ee/ci/README.html
2+
3+
stages:
4+
- test
5+
6+
.nosetest:
7+
stage: test
8+
script:
9+
- pip install -r requirements.txt
10+
- pip install -r test-requirements.txt
11+
- pytest --cov=gate_api
12+
13+
nosetest-2.7:
14+
extends: .nosetest
15+
image: python:2.7-alpine
16+
nosetest-3.3:
17+
extends: .nosetest
18+
image: python:3.3-alpine
19+
nosetest-3.4:
20+
extends: .nosetest
21+
image: python:3.4-alpine
22+
nosetest-3.5:
23+
extends: .nosetest
24+
image: python:3.5-alpine
25+
nosetest-3.6:
26+
extends: .nosetest
27+
image: python:3.6-alpine
28+
nosetest-3.7:
29+
extends: .nosetest
30+
image: python:3.7-alpine
31+
nosetest-3.8:
32+
extends: .nosetest
33+
image: python:3.8-alpine

.openapi-generator-ignore

Lines changed: 0 additions & 23 deletions
This file was deleted.

.openapi-generator/VERSION

Lines changed: 0 additions & 1 deletion
This file was deleted.

.travis.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,12 @@ python:
66
- "3.3"
77
- "3.4"
88
- "3.5"
9-
#- "3.5-dev" # 3.5 development branch
10-
#- "nightly" # points to the latest development branch e.g. 3.6-dev
9+
- "3.6"
10+
- "3.7"
11+
- "3.8"
1112
# command to install dependencies
12-
install: "pip install -r requirements.txt"
13+
install:
14+
- "pip install -r requirements.txt"
15+
- "pip install -r test-requirements.txt"
1316
# command to run tests
14-
script: nosetests
17+
script: pytest --cov=gate_api

README.md

Lines changed: 120 additions & 95 deletions
Large diffs are not rendered by default.

docs/BatchOrder.md

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
11
# BatchOrder
22

3+
Batch order details
34
## Properties
45
Name | Type | Description | Notes
56
------------ | ------------- | ------------- | -------------
6-
**text** | **str** | User defined information. If not empty, must follow the rules below: 1. prefixed with `t-` 2. no longer than 16 bytes without `t-` prefix 3. can only include 0-9, A-Z, a-z, underscore(_), hyphen(-) or dot(.) | [optional]
7+
**text** | **str** | User defined information. If not empty, must follow the rules below: 1. prefixed with `t-` 2. no longer than 28 bytes without `t-` prefix 3. can only include 0-9, A-Z, a-z, underscore(_), hyphen(-) or dot(.) | [optional]
78
**succeeded** | **bool** | Whether order succeeds | [optional]
89
**label** | **str** | Error label, empty string if order succeeds | [optional]
910
**message** | **str** | Detailed error message, empty string if order succeeds | [optional]
10-
**id** | **str** | Order ID | [optional]
11-
**create_time** | **str** | Order creation time | [optional]
12-
**update_time** | **str** | Order last modification time | [optional]
13-
**status** | **str** | Order status - `open`: to be filled - `closed`: filled - `cancelled`: cancelled | [optional]
11+
**id** | **str** | Order ID | [optional] [readonly]
12+
**create_time** | **str** | Order creation time | [optional] [readonly]
13+
**update_time** | **str** | Order last modification time | [optional] [readonly]
14+
**status** | **str** | Order status - `open`: to be filled - `closed`: filled - `cancelled`: cancelled | [optional] [readonly]
1415
**currency_pair** | **str** | Currency pair | [optional]
1516
**type** | **str** | Order type. limit - limit order | [optional] [default to 'limit']
1617
**account** | **str** | Account type. spot - use spot account; margin - use margin account | [optional] [default to 'spot']
@@ -19,16 +20,16 @@ Name | Type | Description | Notes
1920
**price** | **str** | Order price | [optional]
2021
**time_in_force** | **str** | Time in force - gtc: GoodTillCancelled - ioc: ImmediateOrCancelled, taker only - poc: PendingOrCancelled, makes a post-only order that always enjoys a maker fee | [optional] [default to 'gtc']
2122
**auto_borrow** | **bool** | Used in margin trading(i.e. `account` is `margin`) to allow automatic loan of insufficient part if balance is not enough. | [optional]
22-
**left** | **str** | Amount left to fill | [optional]
23-
**fill_price** | **str** | Total filled in quote currency. Deprecated in favor of `filled_total` | [optional]
24-
**filled_total** | **str** | Total filled in quote currency | [optional]
25-
**fee** | **str** | Fee deducted | [optional]
26-
**fee_currency** | **str** | Fee currency unit | [optional]
27-
**point_fee** | **str** | Point used to deduct fee | [optional]
28-
**gt_fee** | **str** | GT used to deduct fee | [optional]
29-
**gt_discount** | **bool** | Whether GT fee discount is used | [optional]
30-
**rebated_fee** | **str** | Rebated fee | [optional]
31-
**rebated_fee_currency** | **str** | Rebated fee currency unit | [optional]
23+
**left** | **str** | Amount left to fill | [optional] [readonly]
24+
**fill_price** | **str** | Total filled in quote currency. Deprecated in favor of `filled_total` | [optional] [readonly]
25+
**filled_total** | **str** | Total filled in quote currency | [optional] [readonly]
26+
**fee** | **str** | Fee deducted | [optional] [readonly]
27+
**fee_currency** | **str** | Fee currency unit | [optional] [readonly]
28+
**point_fee** | **str** | Point used to deduct fee | [optional] [readonly]
29+
**gt_fee** | **str** | GT used to deduct fee | [optional] [readonly]
30+
**gt_discount** | **bool** | Whether GT fee discount is used | [optional] [readonly]
31+
**rebated_fee** | **str** | Rebated fee | [optional] [readonly]
32+
**rebated_fee_currency** | **str** | Rebated fee currency unit | [optional] [readonly]
3233

3334
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
3435

docs/CancelOrder.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# CancelOrder
22

3+
Info of order to be cancelled
34
## Properties
45
Name | Type | Description | Notes
56
------------ | ------------- | ------------- | -------------

docs/CancelOrderResult.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# CancelOrderResult
22

3+
Order cancellation result
34
## Properties
45
Name | Type | Description | Notes
56
------------ | ------------- | ------------- | -------------

docs/Contract.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Contract
22

3+
Futures contract details
34
## Properties
45
Name | Type | Description | Notes
56
------------ | ------------- | ------------- | -------------

docs/CurrencyPair.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# CurrencyPair
22

3+
Spot currency pair
34
## Properties
45
Name | Type | Description | Notes
56
------------ | ------------- | ------------- | -------------

0 commit comments

Comments
 (0)