public class MarginAPIAdapter extends AuthRetrofitAPIImpl<MarginAPIRetrofit> implements MarginAPI
apiKey, apiKeyVersion, baseUrl, passPhrase, secret| 构造器和说明 |
|---|
MarginAPIAdapter(String baseUrl,
String apiKey,
String secret,
String passPhrase,
Integer apiKeyVersion) |
| 限定符和类型 | 方法和说明 |
|---|---|
MarginOrderCreateResponse |
createMarginOrder(MarginOrderCreateRequest request)
You can place two types of orders: limit and market.
|
MarginAccountResponse |
getMarginAccount()
Get Margin Account
Request via this endpoint to get the info of the margin account.
|
MarginConfigResponse |
getMarginConfig()
Get Margin Configuration Info
Request via this endpoint to get the configure info of the margin.
|
List<MarginPriceStrategyResponse> |
getMarginPriceStrategy(String marginModel)
Get Margin Price Strategy
Request via this endpoint to get the cross/isolated margin risk limit.
|
MarkPriceResponse |
getMarkPrice(String symbol)
Get Mark Price
Request via this endpoint to get the index price of the specified symbol.
|
getAPIImplexecuteSync, getApiKey, getBaseUrl, getErrorResponse, getPassPhrase, getSecret, setApiKey, setBaseUrl, setPassPhrase, setSecretpublic MarkPriceResponse getMarkPrice(String symbol) throws IOException
MarginAPIRequest via this endpoint to get the index price of the specified symbol.
getMarkPrice 在接口中 MarginAPIIOExceptionpublic MarginConfigResponse getMarginConfig() throws IOException
MarginAPIRequest via this endpoint to get the configure info of the margin.
getMarginConfig 在接口中 MarginAPIIOExceptionpublic MarginAccountResponse getMarginAccount() throws IOException
MarginAPIRequest via this endpoint to get the info of the margin account.
getMarginAccount 在接口中 MarginAPIIOExceptionpublic MarginOrderCreateResponse createMarginOrder(MarginOrderCreateRequest request) throws IOException
MarginAPIcreateMarginOrder 在接口中 MarginAPIIOExceptionpublic List<MarginPriceStrategyResponse> getMarginPriceStrategy(String marginModel) throws IOException
MarginAPIRequest via this endpoint to get the cross/isolated margin risk limit.
getMarginPriceStrategy 在接口中 MarginAPIIOExceptionCopyright © 2023. All rights reserved.