@@ -111,7 +111,7 @@ api_client = gate_api.ApiClient(configuration)
111111# Create an instance of the API class
112112api_instance = gate_api.DeliveryApi(api_client)
113113settle = ' usdt' # str | Settle currency
114- contract = ' BTC_USDT_WEEKLY_20200703 ' # str | Futures contract
114+ contract = ' BTC_USDT_20200814 ' # str | Futures contract
115115
116116try :
117117 # Get a single contract
@@ -171,7 +171,7 @@ api_client = gate_api.ApiClient(configuration)
171171# Create an instance of the API class
172172api_instance = gate_api.DeliveryApi(api_client)
173173settle = ' usdt' # str | Settle currency
174- contract = ' BTC_USDT_WEEKLY_20200703 ' # str | Futures contract
174+ contract = ' BTC_USDT_20200814 ' # str | Futures contract
175175interval = ' 0' # str | Order depth. 0 means no aggregation is applied. default to 0 (optional) (default to '0')
176176limit = 10 # int | Maximum number of order depth data in asks or bids (optional) (default to 10)
177177
@@ -233,7 +233,7 @@ api_client = gate_api.ApiClient(configuration)
233233# Create an instance of the API class
234234api_instance = gate_api.DeliveryApi(api_client)
235235settle = ' usdt' # str | Settle currency
236- contract = ' BTC_USDT_WEEKLY_20200703 ' # str | Futures contract
236+ contract = ' BTC_USDT_20200814 ' # str | Futures contract
237237limit = 100 # int | Maximum number of records returned in one list (optional) (default to 100)
238238last_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)
239239_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)
301301# Create an instance of the API class
302302api_instance = gate_api.DeliveryApi(api_client)
303303settle = ' usdt' # str | Settle currency
304- contract = ' BTC_USDT_WEEKLY_20200703 ' # str | Futures contract
304+ contract = ' BTC_USDT_20200814 ' # str | Futures contract
305305_from = 1546905600 # float | Start time of candlesticks, formatted in Unix timestamp in seconds. Default to`to - 100 * interval` if not specified (optional)
306306to = 1546935600 # float | End time of candlesticks, formatted in Unix timestamp in seconds. Default to current time (optional)
307307limit = 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)
367367# Create an instance of the API class
368368api_instance = gate_api.DeliveryApi(api_client)
369369settle = ' usdt' # str | Settle currency
370- contract = ' BTC_USDT_WEEKLY_20200703 ' # str | Futures contract (optional)
370+ contract = ' BTC_USDT_20200814 ' # str | Futures contract (optional)
371371
372372try :
373373 # List futures tickers
@@ -695,7 +695,7 @@ api_client = gate_api.ApiClient(configuration)
695695# Create an instance of the API class
696696api_instance = gate_api.DeliveryApi(api_client)
697697settle = ' usdt' # str | Settle currency
698- contract = ' BTC_USDT_WEEKLY_20200703 ' # str | Futures contract
698+ contract = ' BTC_USDT_20200814 ' # str | Futures contract
699699
700700try :
701701 # Get single position
@@ -762,7 +762,7 @@ api_client = gate_api.ApiClient(configuration)
762762# Create an instance of the API class
763763api_instance = gate_api.DeliveryApi(api_client)
764764settle = ' usdt' # str | Settle currency
765- contract = ' BTC_USDT_WEEKLY_20200703 ' # str | Futures contract
765+ contract = ' BTC_USDT_20200814 ' # str | Futures contract
766766change = ' 0.01' # str | Margin change. Use positive number to increase margin, negative number otherwise.
767767
768768try :
@@ -831,7 +831,7 @@ api_client = gate_api.ApiClient(configuration)
831831# Create an instance of the API class
832832api_instance = gate_api.DeliveryApi(api_client)
833833settle = ' usdt' # str | Settle currency
834- contract = ' BTC_USDT_WEEKLY_20200703 ' # str | Futures contract
834+ contract = ' BTC_USDT_20200814 ' # str | Futures contract
835835leverage = ' 10' # str | New position leverage
836836
837837try :
@@ -900,7 +900,7 @@ api_client = gate_api.ApiClient(configuration)
900900# Create an instance of the API class
901901api_instance = gate_api.DeliveryApi(api_client)
902902settle = ' usdt' # str | Settle currency
903- contract = ' BTC_USDT_WEEKLY_20200703 ' # str | Futures contract
903+ contract = ' BTC_USDT_20200814 ' # str | Futures contract
904904risk_limit = ' 10' # str | New position risk limit
905905
906906try :
@@ -972,7 +972,7 @@ api_client = gate_api.ApiClient(configuration)
972972api_instance = gate_api.DeliveryApi(api_client)
973973settle = ' usdt' # str | Settle currency
974974status = ' 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)
976976limit = 100 # int | Maximum number of records returned in one list (optional) (default to 100)
977977offset = 0 # int | List offset, starting from 0 (optional) (default to 0)
978978last_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)
10501050# Create an instance of the API class
10511051api_instance = gate_api.DeliveryApi(api_client)
10521052settle = ' 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 |
10541054
10551055try :
10561056 # Create a futures order
@@ -1119,7 +1119,7 @@ api_client = gate_api.ApiClient(configuration)
11191119# Create an instance of the API class
11201120api_instance = gate_api.DeliveryApi(api_client)
11211121settle = ' usdt' # str | Settle currency
1122- contract = ' BTC_USDT_WEEKLY_20200703 ' # str | Futures contract
1122+ contract = ' BTC_USDT_20200814 ' # str | Futures contract
11231123side = ' ask' # str | All bids or asks. Both included in not specified (optional)
11241124
11251125try :
@@ -1324,7 +1324,7 @@ api_client = gate_api.ApiClient(configuration)
13241324# Create an instance of the API class
13251325api_instance = gate_api.DeliveryApi(api_client)
13261326settle = ' usdt' # str | Settle currency
1327- contract = ' BTC_USDT_WEEKLY_20200703 ' # str | Futures contract (optional)
1327+ contract = ' BTC_USDT_20200814 ' # str | Futures contract (optional)
13281328order = 12345 # int | Futures order ID, return related data only if specified (optional)
13291329limit = 100 # int | Maximum number of records returned in one list (optional) (default to 100)
13301330offset = 0 # int | List offset, starting from 0 (optional) (default to 0)
@@ -1401,7 +1401,7 @@ api_client = gate_api.ApiClient(configuration)
14011401# Create an instance of the API class
14021402api_instance = gate_api.DeliveryApi(api_client)
14031403settle = ' usdt' # str | Settle currency
1404- contract = ' BTC_USDT_WEEKLY_20200703 ' # str | Futures contract (optional)
1404+ contract = ' BTC_USDT_20200814 ' # str | Futures contract (optional)
14051405limit = 100 # int | Maximum number of records returned in one list (optional) (default to 100)
14061406
14071407try :
@@ -1470,7 +1470,7 @@ api_client = gate_api.ApiClient(configuration)
14701470# Create an instance of the API class
14711471api_instance = gate_api.DeliveryApi(api_client)
14721472settle = ' usdt' # str | Settle currency
1473- contract = ' BTC_USDT_WEEKLY_20200703 ' # str | Futures contract (optional)
1473+ contract = ' BTC_USDT_20200814 ' # str | Futures contract (optional)
14741474limit = 100 # int | Maximum number of records returned in one list (optional) (default to 100)
14751475at = 0 # int | Specify a liquidation timestamp (optional) (default to 0)
14761476
@@ -1541,7 +1541,7 @@ api_client = gate_api.ApiClient(configuration)
15411541# Create an instance of the API class
15421542api_instance = gate_api.DeliveryApi(api_client)
15431543settle = ' usdt' # str | Settle currency
1544- contract = ' BTC_USDT_WEEKLY_20200703 ' # str | Futures contract (optional)
1544+ contract = ' BTC_USDT_20200814 ' # str | Futures contract (optional)
15451545limit = 100 # int | Maximum number of records returned in one list (optional) (default to 100)
15461546at = 0 # int | Specify a settlement timestamp (optional) (default to 0)
15471547
@@ -1685,7 +1685,7 @@ api_client = gate_api.ApiClient(configuration)
16851685# Create an instance of the API class
16861686api_instance = gate_api.DeliveryApi(api_client)
16871687settle = ' 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 |
16891689
16901690try :
16911691 # Create a price-triggered order
0 commit comments