can deribit integrate this_week next_week into SetContractType?

Author: jiaozheng, Created: 2018-04-18 11:47:56, Updated:

I just tried SetContractType in deribit and found that it can't use this-week, but found that the exchange was originally supporting the BTC-THISWEEK subscription contract. Now, every subscription contract has to be written in BTC-27APR18 manually.

Qing Xuanwen, is there a solution?


More

The Little DreamDeribit does not have this_week and next_week, Deribit has an interface to access all available contracts: Selected from the Deribit archive Get the open and available trading instruments. URI: https://www.deribit.com/api/v1/public/getinstruments URI Path: /api/v1/public/getinstruments This is the URI path of the URI Parameters: expired=true for returning all expired instruments. Method: GET The result is a JSON object: What's up? {"success": true, // false or true "message": "", // empty or text message "result": "kind": "option", // future or option "baseCurrency": "BTC", // currently BTC only "currency": "USD", // currently USD only "minTradeSize": 0.01, // minimum size "instrumentName": "BTC-30JAN15-450-P", // instrument name "isActive": true, // true or false "settlement": "month", "created": "2014-12-09 11:34:24 GMT", // GMT date time "expiration": "2015-01-30 15:00:00 GMT" // GMT date time "pricePrecision": 4 // specifies the number of decimal places for instrument prices, // usually 4 decimal places for options, 2 -- for futures I'm not going to lie. What's up?