Type/to search
0
Follow
0
Followers
Deribit에서 this_week와 next_week 매개변수를 SetContractType 함수에 통합할 수 있나요?
FAQ
Created 2018-04-18 11:47:56  
 1
 2152

방금 데리비트에서 SetContractType를 시도했는데, this-week라는 변수가 안되는 것을 알았습니다. 하지만 거래소는 원래 BTC-THISWEEK라는 계약을 지원한다는 것을 알았습니다.
이제 모든 가입 계약은 BTC-27APR18에 수동으로 작성됩니다.

qing'wen는 어떤 해결책이 있는지 묻습니다.

Related Recommendations
Comment
All comments (1)

    Deribit 没有 this_week 和 next_week , Deribit 有接口 获取所有 可用合约 :

    节选自 Deribit 文档
    Get the open and available trading instruments.
    URI: https://www.deribit.com/api/v1/public/getinstruments
    URI Path: /api/v1/public/getinstruments
    Parameters: expired=true for returning all expired instruments. Else all currently traded instruments will be returned.
    Method: GET
    Result is JSON object:

    {"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 }, ...]}
    8 years ago
  • 1
Forums
PINE Language
Get the app
iPhone Download
© 2015 - ∞ INVENTOR PTE LTD (SG)