Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

计算指标接口, 请求期权标的有成交量但无成交额 #101

Open
nkjshlsqja7331 opened this issue Nov 5, 2024 · 1 comment
Open

Comments

@nkjshlsqja7331
Copy link

问题描述

计算指标接口, 请求期权标的有成交量但无成交额

代码例子

import (
	"github.com/longportapp/openapi-go/config"
	"github.com/longportapp/openapi-go/quote"
	...
)

calcIndexes, err := quoteCtx.CalcIndex(context.Background(),
		[]string{"MSTR241108C227500.US", "MSTR241101C240000.US"},
		[]quote.CalcIndex{
			quote.CalcIndexUnknown,
			quote.CalcIndexLastDone,
			quote.CalcIndexChangeVal,
			quote.CalcIndexChangeRate,
			quote.CalcIndexVolume,
			quote.CalcIndexTurnover,
			quote.CalcIndexYtdChangeRate,
			quote.CalcIndexTurnoverRate,
			quote.CalcIndexTotalMarketValue,
			quote.CalcIndexCapitalFlow,
			quote.CalcIndexAmplitude,
			quote.CalcIndexVolumeRatio,
			quote.CalcIndexPeTTMRatio,
			quote.CalcIndexPbRatio,
			quote.CalcIndexDividendRatioTTM,
			quote.CalcIndexFiveDayChangeRate,
			quote.CalcIndexTenDayChangeRate,
			quote.CalcIndexHalfYearChangeRate,
			quote.CalcIndexFiveMinutesChangeRate,
			quote.CalcIndexExpiryDate,
			quote.CalcIndexStrikePrice,
			quote.CalcIndexUpperStrikePrice,
			quote.CalcIndexLowerStrikePrice,
			quote.CalcIndexOutstandingQTY,
			quote.CalcIndexOutstandingRatio,
			quote.CalcIndexPremium,
			quote.CalcIndexItmOtm,
			quote.CalcIndexImpliedVolatility,
			quote.CalcIndexWarrantDelta,
			quote.CalcIndexCallPrice,
			quote.CalcIndexToCallPrice,
			quote.CalcIndexEffectiveLeverage,
			quote.CalcIndexLeverageRatio,
			quote.CalcIndexConversionRatio,
			quote.CalcIndexBalancePoint,
			quote.CalcIndexOpenInterest,
			quote.CalcIndexDELTA,
			quote.CalcIndexGAMMA,
			quote.CalcIndexTHETA,
			quote.CalcIndexVEGA,
			quote.CalcIndexRHO,
		},
	)

结果截图
image

你的环境信息

  • 操作系统: macOS
  • 开发语言: Go
  • SDK 版本号:0.16.0
@juffson
Copy link

juffson commented Nov 13, 2024

目前 golang sdk 暂不支持,已经排期在支持中

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants