deribit는 SetContractType에서 this_week next_week에 이 함수를 통합할 수 있습니까?

저자:조오, 2018-04-18 11:47:56, 업데이트:

방금 데리비트에서 SetContractType를 시도했는데 이 주간의 매개 변수를 사용할 수 없다는 것을 발견했습니다. 하지만 거래소는 BTC-THISWEEK의 계약서를 지원하고 있었습니다. 이제 모든 구독 계약에 BTC-27APR18을 수동으로 입력해야 합니다.


더 많은

작은 꿈데리빗은 this_week과 next_week을 사용하지 않고, 데리빗은 모든 사용 가능한 계약을 얻을 수 있는 인터페이스를 가지고 있습니다. 데리비트 문서에서 선택 오픈 및 사용 가능한 거래 도구를 얻으십시오. URI: https://www.deribit.com/api/v1/public/getinstruments URI 경로: /api/v1/public/getinstruments Parameters: expired=true for returning all expired instruments. Else all currently traded instruments will be returned. 그렇지 않으면 현재 거래 중인 모든 도구가 반환됩니다. 메소드:GET JSON 객체입니다. `` { "success": true, // false or true 이므로 "message": "", // 빈 또는 문자 메시지 "result": [{ "kind": "option", // 미래 또는 옵션 "baseCurrency": "BTC", // 현재 BTC만 "currency": "USD", // 현재 USD만 "minTradeSize": 0.01, // 최소 크기 "instrumentName": "BTC-30JAN15-450-P", // instrument name "isActive": true, // true 또는 false "settlement": "month", "month", "month", "month", "month", "month", "month", "month", "month", "month", "month", "month", "month", "month", "month", "month", "month", "month", "month", "month", "month", "month", "month", "month", "month", "month", "month", "month", "month", "month", "month", "month", "month", "month", "month", "month", "month", "month", "month", "month", "month", "month", "month", "month" "Created": "2014-12-09 11:34:24 GMT", // GMT 날짜 시간 "expiration": "2015-01-30 15:00:00 GMT" // GMT 날짜 시간 "pricePrecision": 4 //는 기기 가격에 대한 소수점을 지정합니다. // 보통 4개의 소수점으로 선택지, 2 -- 미래에 대해 그리고,... ``