@@ -111,7 +111,7 @@ api_client = gate_api.ApiClient(configuration)
111
111
# Create an instance of the API class
112
112
api_instance = gate_api.DeliveryApi(api_client)
113
113
settle = ' usdt' # str | Settle currency
114
- contract = ' BTC_USDT_WEEKLY_20200703 ' # str | Futures contract
114
+ contract = ' BTC_USDT_20200814 ' # str | Futures contract
115
115
116
116
try :
117
117
# Get a single contract
@@ -171,7 +171,7 @@ api_client = gate_api.ApiClient(configuration)
171
171
# Create an instance of the API class
172
172
api_instance = gate_api.DeliveryApi(api_client)
173
173
settle = ' usdt' # str | Settle currency
174
- contract = ' BTC_USDT_WEEKLY_20200703 ' # str | Futures contract
174
+ contract = ' BTC_USDT_20200814 ' # str | Futures contract
175
175
interval = ' 0' # str | Order depth. 0 means no aggregation is applied. default to 0 (optional) (default to '0')
176
176
limit = 10 # int | Maximum number of order depth data in asks or bids (optional) (default to 10)
177
177
@@ -233,7 +233,7 @@ api_client = gate_api.ApiClient(configuration)
233
233
# Create an instance of the API class
234
234
api_instance = gate_api.DeliveryApi(api_client)
235
235
settle = ' usdt' # str | Settle currency
236
- contract = ' BTC_USDT_WEEKLY_20200703 ' # str | Futures contract
236
+ contract = ' BTC_USDT_20200814 ' # str | Futures contract
237
237
limit = 100 # int | Maximum number of records returned in one list (optional) (default to 100)
238
238
last_id = ' 12345' # str | Specify list staring point using the id of last record in previous list-query results This parameter is deprecated. Use `from` and `to` instead to limit time range (optional)
239
239
_from = 1546905600 # float | Specify starting time in Unix seconds. If not specified, `to` and `limit` will be used to limit response items. If items between `from` and `to` are more than `limit`, only `limit` number will be returned. (optional)
@@ -301,7 +301,7 @@ api_client = gate_api.ApiClient(configuration)
301
301
# Create an instance of the API class
302
302
api_instance = gate_api.DeliveryApi(api_client)
303
303
settle = ' usdt' # str | Settle currency
304
- contract = ' BTC_USDT_WEEKLY_20200703 ' # str | Futures contract
304
+ contract = ' BTC_USDT_20200814 ' # str | Futures contract
305
305
_from = 1546905600 # float | Start time of candlesticks, formatted in Unix timestamp in seconds. Default to`to - 100 * interval` if not specified (optional)
306
306
to = 1546935600 # float | End time of candlesticks, formatted in Unix timestamp in seconds. Default to current time (optional)
307
307
limit = 100 # int | Maximum recent data points returned. `limit` is conflicted with `from` and `to`. If either `from` or `to` is specified, request will be rejected. (optional) (default to 100)
@@ -367,7 +367,7 @@ api_client = gate_api.ApiClient(configuration)
367
367
# Create an instance of the API class
368
368
api_instance = gate_api.DeliveryApi(api_client)
369
369
settle = ' usdt' # str | Settle currency
370
- contract = ' BTC_USDT_WEEKLY_20200703 ' # str | Futures contract (optional)
370
+ contract = ' BTC_USDT_20200814 ' # str | Futures contract (optional)
371
371
372
372
try :
373
373
# List futures tickers
@@ -695,7 +695,7 @@ api_client = gate_api.ApiClient(configuration)
695
695
# Create an instance of the API class
696
696
api_instance = gate_api.DeliveryApi(api_client)
697
697
settle = ' usdt' # str | Settle currency
698
- contract = ' BTC_USDT_WEEKLY_20200703 ' # str | Futures contract
698
+ contract = ' BTC_USDT_20200814 ' # str | Futures contract
699
699
700
700
try :
701
701
# Get single position
@@ -762,7 +762,7 @@ api_client = gate_api.ApiClient(configuration)
762
762
# Create an instance of the API class
763
763
api_instance = gate_api.DeliveryApi(api_client)
764
764
settle = ' usdt' # str | Settle currency
765
- contract = ' BTC_USDT_WEEKLY_20200703 ' # str | Futures contract
765
+ contract = ' BTC_USDT_20200814 ' # str | Futures contract
766
766
change = ' 0.01' # str | Margin change. Use positive number to increase margin, negative number otherwise.
767
767
768
768
try :
@@ -831,7 +831,7 @@ api_client = gate_api.ApiClient(configuration)
831
831
# Create an instance of the API class
832
832
api_instance = gate_api.DeliveryApi(api_client)
833
833
settle = ' usdt' # str | Settle currency
834
- contract = ' BTC_USDT_WEEKLY_20200703 ' # str | Futures contract
834
+ contract = ' BTC_USDT_20200814 ' # str | Futures contract
835
835
leverage = ' 10' # str | New position leverage
836
836
837
837
try :
@@ -900,7 +900,7 @@ api_client = gate_api.ApiClient(configuration)
900
900
# Create an instance of the API class
901
901
api_instance = gate_api.DeliveryApi(api_client)
902
902
settle = ' usdt' # str | Settle currency
903
- contract = ' BTC_USDT_WEEKLY_20200703 ' # str | Futures contract
903
+ contract = ' BTC_USDT_20200814 ' # str | Futures contract
904
904
risk_limit = ' 10' # str | New position risk limit
905
905
906
906
try :
@@ -972,7 +972,7 @@ api_client = gate_api.ApiClient(configuration)
972
972
api_instance = gate_api.DeliveryApi(api_client)
973
973
settle = ' usdt' # str | Settle currency
974
974
status = ' open' # str | List orders based on status
975
- contract = ' BTC_USDT_WEEKLY_20200703 ' # str | Futures contract (optional)
975
+ contract = ' BTC_USDT_20200814 ' # str | Futures contract (optional)
976
976
limit = 100 # int | Maximum number of records returned in one list (optional) (default to 100)
977
977
offset = 0 # int | List offset, starting from 0 (optional) (default to 0)
978
978
last_id = ' 12345' # str | Specify list staring point using the `id` of last record in previous list-query results (optional)
@@ -1050,7 +1050,7 @@ api_client = gate_api.ApiClient(configuration)
1050
1050
# Create an instance of the API class
1051
1051
api_instance = gate_api.DeliveryApi(api_client)
1052
1052
settle = ' usdt' # str | Settle currency
1053
- futures_order = { " id " : 15675394 , " user " : 100000 , " contract " : " BTC_USD " , " create_time " : 1546569968 , " size " : 6024 , " iceberg " : 0 , " left " : 6024 , " price " : " 3765 " , " fill_price " : " 0 " , " mkfr " : " -0.00025 " , " tkfr " : " 0.00075 " , " tif " : " gtc " , " refu " : 0 , " is_reduce_only " :false, " is_close " :false, " is_liq " :false, " text " : " t-my-custom-id " , " status " : " finished " , " finish_time " : 1514764900 , " finish_as " : " cancelled " } # FuturesOrder |
1053
+ futures_order = gate_api.FuturesOrder() # FuturesOrder |
1054
1054
1055
1055
try :
1056
1056
# Create a futures order
@@ -1119,7 +1119,7 @@ api_client = gate_api.ApiClient(configuration)
1119
1119
# Create an instance of the API class
1120
1120
api_instance = gate_api.DeliveryApi(api_client)
1121
1121
settle = ' usdt' # str | Settle currency
1122
- contract = ' BTC_USDT_WEEKLY_20200703 ' # str | Futures contract
1122
+ contract = ' BTC_USDT_20200814 ' # str | Futures contract
1123
1123
side = ' ask' # str | All bids or asks. Both included in not specified (optional)
1124
1124
1125
1125
try :
@@ -1324,7 +1324,7 @@ api_client = gate_api.ApiClient(configuration)
1324
1324
# Create an instance of the API class
1325
1325
api_instance = gate_api.DeliveryApi(api_client)
1326
1326
settle = ' usdt' # str | Settle currency
1327
- contract = ' BTC_USDT_WEEKLY_20200703 ' # str | Futures contract (optional)
1327
+ contract = ' BTC_USDT_20200814 ' # str | Futures contract (optional)
1328
1328
order = 12345 # int | Futures order ID, return related data only if specified (optional)
1329
1329
limit = 100 # int | Maximum number of records returned in one list (optional) (default to 100)
1330
1330
offset = 0 # int | List offset, starting from 0 (optional) (default to 0)
@@ -1401,7 +1401,7 @@ api_client = gate_api.ApiClient(configuration)
1401
1401
# Create an instance of the API class
1402
1402
api_instance = gate_api.DeliveryApi(api_client)
1403
1403
settle = ' usdt' # str | Settle currency
1404
- contract = ' BTC_USDT_WEEKLY_20200703 ' # str | Futures contract (optional)
1404
+ contract = ' BTC_USDT_20200814 ' # str | Futures contract (optional)
1405
1405
limit = 100 # int | Maximum number of records returned in one list (optional) (default to 100)
1406
1406
1407
1407
try :
@@ -1470,7 +1470,7 @@ api_client = gate_api.ApiClient(configuration)
1470
1470
# Create an instance of the API class
1471
1471
api_instance = gate_api.DeliveryApi(api_client)
1472
1472
settle = ' usdt' # str | Settle currency
1473
- contract = ' BTC_USDT_WEEKLY_20200703 ' # str | Futures contract (optional)
1473
+ contract = ' BTC_USDT_20200814 ' # str | Futures contract (optional)
1474
1474
limit = 100 # int | Maximum number of records returned in one list (optional) (default to 100)
1475
1475
at = 0 # int | Specify a liquidation timestamp (optional) (default to 0)
1476
1476
@@ -1541,7 +1541,7 @@ api_client = gate_api.ApiClient(configuration)
1541
1541
# Create an instance of the API class
1542
1542
api_instance = gate_api.DeliveryApi(api_client)
1543
1543
settle = ' usdt' # str | Settle currency
1544
- contract = ' BTC_USDT_WEEKLY_20200703 ' # str | Futures contract (optional)
1544
+ contract = ' BTC_USDT_20200814 ' # str | Futures contract (optional)
1545
1545
limit = 100 # int | Maximum number of records returned in one list (optional) (default to 100)
1546
1546
at = 0 # int | Specify a settlement timestamp (optional) (default to 0)
1547
1547
@@ -1685,7 +1685,7 @@ api_client = gate_api.ApiClient(configuration)
1685
1685
# Create an instance of the API class
1686
1686
api_instance = gate_api.DeliveryApi(api_client)
1687
1687
settle = ' usdt' # str | Settle currency
1688
- futures_price_triggered_order = { " initial " :{ " contract " : " BTC_USD " , " size " : 100 , " price " : " 5.03 " , " close " :false, " tif " : " gtc " , " text " : " web " }, " trigger " :{ " strategy_type " : 0 , " price_type " : 0 , " price " : " 3000 " , " rule " : 1 , " expiration " : 86400 }, " id " : 1283293 , " user " : 1234 , " create_time " : 1514764800 , " finish_time " : 1514764900 , " trade_id " : 13566 , " status " : " finished " , " finish_as " : " cancelled " , " reason " : " " } # FuturesPriceTriggeredOrder |
1688
+ futures_price_triggered_order = gate_api.FuturesPriceTriggeredOrder() # FuturesPriceTriggeredOrder |
1689
1689
1690
1690
try :
1691
1691
# Create a price-triggered order
0 commit comments