diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..14570b8
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,73 @@
+##############################
+## Java
+##############################
+.mtj.tmp/
+*.class
+*.war
+*.ear
+*.nar
+hs_err_pid*
+
+##############################
+## Maven
+##############################
+target/
+pom.xml.tag
+pom.xml.releaseBackup
+pom.xml.versionsBackup
+pom.xml.next
+pom.xml.bak
+release.properties
+dependency-reduced-pom.xml
+buildNumber.properties
+.mvn/timing.properties
+.mvn/wrapper/maven-wrapper.jar
+
+##############################
+## IntelliJ
+##############################
+out/
+.idea/
+.idea_modules/
+*.iml
+*.ipr
+*.iws
+
+##############################
+## Eclipse
+##############################
+.settings/
+bin/
+tmp/
+.metadata
+.classpath
+.project
+*.tmp
+*.bak
+*.swp
+*~.nib
+local.properties
+.loadpath
+.factorypath
+
+##############################
+## NetBeans
+##############################
+nbproject/private/
+build/
+nbbuild/
+dist/
+nbdist/
+nbactions.xml
+nb-configuration.xml
+
+##############################
+## Visual Studio Code
+##############################
+.vscode/
+.code-workspace
+
+##############################
+## OS X
+##############################
+.DS_Store
diff --git a/.idea/workspace.xml b/.idea/workspace.xml
index 29009de..10312a9 100644
--- a/.idea/workspace.xml
+++ b/.idea/workspace.xml
@@ -2,7 +2,136 @@
-
@@ -37,6 +166,11 @@
"settings.editor.selected.configurable": "MTConfigurable"
}
}]]>
public class Routes
-extends java.lang.Object
-| Modifier and Type | -Field and Description | -
|---|---|
java.util.Map<java.lang.String,java.lang.String> |
-routes |
-
| Modifier and Type | -Method and Description | -
|---|---|
java.lang.String |
-get(java.lang.String key) |
-
java.lang.String |
-getLoginUrl() |
-
java.lang.String |
-getWsuri() |
-
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic class SmartConnect
-extends java.lang.Object
-| Modifier and Type | -Field and Description | -
|---|---|
static boolean |
-ENABLE_LOGGING |
-
static SessionExpiryHook |
-sessionExpiryHook |
-
| Constructor and Description | -
|---|
SmartConnect() |
-
| Modifier and Type | -Method and Description | -
|---|---|
Order |
-cancelOrder(java.lang.String orderId,
- java.lang.String variety)
-Cancels an order.
- |
-
org.json.JSONObject |
-convertPosition(org.json.JSONObject params)
-Retrieves conversion.
- |
-
User |
-generateSession(java.lang.String clientCode,
- java.lang.String password)
-Do the token exchange with the `request_token` obtained after the login flow,
- and retrieve the `access_token` required for all subsequent requests.
- |
-
java.lang.String |
-getAccessToken()
-Returns accessToken.
- |
-
java.lang.String |
-getApiKey()
-Returns apiKey of the App.
- |
-
org.json.JSONObject |
-getHolding()
-Retrieves Holding.
- |
-
java.lang.String |
-getLoginURL()
-Retrieves login url
- |
-
org.json.JSONObject |
-getLTP(java.lang.String exchange,
- java.lang.String tradingSymbol,
- java.lang.String symboltoken)
-Retrieves last price.
- |
-
java.util.List<Order> |
-getOrderHistory(java.lang.String clientId)
-Returns list of different stages an order has gone through.
- |
-
org.json.JSONObject |
-getPosition()
-Retrieves position.
- |
-
User |
-getProfile()
-Get the profile details of the use.
- |
-
java.lang.String |
-getPublicToken()
-Returns publicToken.
- |
-
org.json.JSONObject |
-getRMS()
-Retrieves RMS.
- |
-
java.util.List<Trade> |
-getTrades()
-Retrieves list of trades executed.
- |
-
java.lang.String |
-getUserId()
-Returns userId.
- |
-
org.json.JSONObject |
-logout()
-Logs out user by invalidating the access token.
- |
-
Order |
-modifyOrder(java.lang.String orderId,
- OrderParams orderParams,
- java.lang.String variety)
-Modifies an open order.
- |
-
Order |
-placeOrder(OrderParams orderParams,
- java.lang.String variety)
-Places an order.
- |
-
TokenSet |
-renewAccessToken(java.lang.String accessToken,
- java.lang.String refreshToken)
-Get a new access token using refresh token.
- |
-
void |
-setAccessToken(java.lang.String accessToken)
-Set the accessToken received after a successful authentication.
- |
-
void |
-setApiKey(java.lang.String apiKey) |
-
void |
-setRefreshToken(java.lang.String refreshToken)
-Set publicToken.
- |
-
void |
-setSessionExpiryHook(SessionExpiryHook hook)
-Registers callback for session error.
- |
-
void |
-setUserId(java.lang.String id)
-Set userId.
- |
-
java.lang.String |
-sha256Hex(java.lang.String str)
-Hex encodes sha256 output for android support.
- |
-
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic static SessionExpiryHook sessionExpiryHook-
public static boolean ENABLE_LOGGING-
public void setApiKey(java.lang.String apiKey)-
public void setSessionExpiryHook(SessionExpiryHook hook)-
hook - can be set to get callback when session is expired.public java.lang.String getApiKey() - throws java.lang.NullPointerException-
java.lang.NullPointerException - if _apiKey is not found.public java.lang.String getAccessToken() - throws java.lang.NullPointerException-
java.lang.NullPointerException - if accessToken is null.public java.lang.String getUserId() - throws java.lang.NullPointerException-
java.lang.NullPointerException - if userId is null.public void setUserId(java.lang.String id)-
id - is user_id.public java.lang.String getPublicToken() - throws java.lang.NullPointerException-
java.lang.NullPointerException - if publicToken is null.public void setAccessToken(java.lang.String accessToken)-
accessToken - is the access token received after sending request token
- and api secret.public void setRefreshToken(java.lang.String refreshToken)-
publicToken - is the public token received after sending request token
- and api secret.public java.lang.String getLoginURL() - throws java.lang.NullPointerException-
java.lang.NullPointerExceptionpublic User generateSession(java.lang.String clientCode, - java.lang.String password) - throws SmartAPIException, - org.json.JSONException, - java.io.IOException-
requestToken - received from login process.apiSecret - which is unique for each aap.SmartAPIExceptionSmartAPIException - is thrown for all SmartAPI trade related errors.org.json.JSONException - is thrown when there is exception while parsing
- response.java.io.IOException - is thrown when there is connection error.public TokenSet renewAccessToken(java.lang.String accessToken, - java.lang.String refreshToken) - throws java.io.IOException, - SmartAPIException, - org.json.JSONException-
refreshToken - is the refresh token obtained after generateSession.apiSecret - is unique for each app.java.io.IOException - is thrown when there is connection error.SmartAPIException - is thrown for all SmartAPI trade related errors.org.json.JSONExceptionpublic java.lang.String sha256Hex(java.lang.String str)-
str - is the String that has to be encrypted.public User getProfile() - throws java.io.IOException, - SmartAPIException, - org.json.JSONException-
java.io.IOException - is thrown when there is connection error.SmartAPIException - is thrown for all SmartAPI trade related errors.org.json.JSONExceptionpublic Order placeOrder(OrderParams orderParams, - java.lang.String variety) - throws SmartAPIException, - org.json.JSONException, - java.io.IOException-
orderParams - is Order params.variety - variety="regular". Order variety can be bo, co, amo,
- regular.SmartAPIException - is thrown for all SmartAPI trade related errors.org.json.JSONException - is thrown when there is exception while parsing
- response.java.io.IOException - is thrown when there is connection error.public Order modifyOrder(java.lang.String orderId, - OrderParams orderParams, - java.lang.String variety) - throws SmartAPIException, - org.json.JSONException, - java.io.IOException-
orderParams - is Order params.variety - variety="regular". Order variety can be bo, co, amo,
- regular.orderId - order id of the order being modified.SmartAPIException - is thrown for all SmartAPI trade related errors.org.json.JSONException - is thrown when there is exception while parsing
- response.java.io.IOException - is thrown when there is connection error.public Order cancelOrder(java.lang.String orderId, - java.lang.String variety) - throws SmartAPIException, - org.json.JSONException, - java.io.IOException-
orderId - order id of the order to be cancelled.variety - [variety="regular"]. Order variety can be bo, co, amo,
- regular.SmartAPIException - is thrown for all Angel trade related errors.org.json.JSONException - is thrown when there is exception while parsing
- response.java.io.IOException - is thrown when there is connection error.public java.util.List<Order> getOrderHistory(java.lang.String clientId) - throws SmartAPIException, - java.io.IOException, - org.json.JSONException-
orderId - is the order id which is obtained from orderbook.SmartAPIException - is thrown for all Smart API trade related errors.SmartAPIException - is thrown for all Smart API trade related errors.java.io.IOException - is thrown when there is connection error.org.json.JSONExceptionpublic org.json.JSONObject getLTP(java.lang.String exchange, - java.lang.String tradingSymbol, - java.lang.String symboltoken) - throws SmartAPIException, - java.io.IOException, - org.json.JSONException-
instruments - is the array of tradingsymbol and exchange or instruments
- token.SmartAPIException - is thrown for all Smart API trade related errors.java.io.IOException - is thrown when there is connection related error.org.json.JSONExceptionpublic java.util.List<Trade> getTrades() - throws SmartAPIException, - org.json.JSONException, - java.io.IOException-
SmartAPIException - is thrown for all Smart API trade related errors.org.json.JSONException - is thrown when there is exception while parsing
- response.java.io.IOException - is thrown when there is connection error.public org.json.JSONObject getRMS() - throws org.json.JSONException, - java.io.IOException, - SmartAPIException-
SmartAPIException - is thrown for all Smart API trade related errors.org.json.JSONException - is thrown when there is exception while parsing
- response.java.io.IOException - is thrown when there is connection error.public org.json.JSONObject getHolding() - throws org.json.JSONException, - java.io.IOException, - SmartAPIException-
SmartAPIException - is thrown for all Smart API trade related errors.org.json.JSONException - is thrown when there is exception while parsing
- response.java.io.IOException - is thrown when there is connection error.public org.json.JSONObject getPosition() - throws org.json.JSONException, - java.io.IOException, - SmartAPIException-
SmartAPIException - is thrown for all Smart API trade related errors.org.json.JSONException - is thrown when there is exception while parsing
- response.java.io.IOException - is thrown when there is connection error.public org.json.JSONObject convertPosition(org.json.JSONObject params) - throws SmartAPIException, - java.io.IOException, - org.json.JSONException-
SmartAPIException - is thrown for all Smart API trade related errors.org.json.JSONException - is thrown when there is exception while parsing
- response.java.io.IOException - is thrown when there is connection error.public org.json.JSONObject logout() - throws SmartAPIException, - java.io.IOException, - org.json.JSONException-
SmartAPIException - is thrown for all Smart API trade related errors.java.io.IOException - is thrown when there is connection related error.org.json.JSONException| Package | -Description | -
|---|---|
| com.angelbroking.smartapi.sample | -- |
| Modifier and Type | -Method and Description | -
|---|---|
void |
-Examples.cancelOrder(SmartConnect smartConnect)
-Cancel an order
- |
-
void |
-Examples.convertPosition(SmartConnect smartConnect)
-convert Position
- |
-
void |
-Examples.getHolding(SmartConnect smartConnect)
-Get Holdings
- |
-
void |
-Examples.getLTP(SmartConnect smartConnect)
-Get last price for multiple instruments at once.
- |
-
void |
-Examples.getOrder(SmartConnect smartConnect)
-Get order details
- |
-
void |
-Examples.getPosition(SmartConnect smartConnect)
-Get Position
- |
-
void |
-Examples.getProfile(SmartConnect smartConnect) |
-
void |
-Examples.getRMS(SmartConnect smartConnect)
-Get RMS
- |
-
void |
-Examples.getTrades(SmartConnect smartConnect)
-Get tradebook
- |
-
void |
-Examples.logout(SmartConnect smartConnect)
-Logout user.
- |
-
void |
-Examples.modifyOrder(SmartConnect smartConnect)
-Modify order.
- |
-
void |
-Examples.placeOrder(SmartConnect smartConnect)
-Place order.
- |
-
public interface SessionExpiryHook
-| Modifier and Type | -Method and Description | -
|---|---|
void |
-sessionExpired() |
-
public class SmartAPIRequestHandler
-extends java.lang.Object
-| Constructor and Description | -
|---|
SmartAPIRequestHandler(java.net.Proxy proxy)
-Initialize request handler.
- |
-
| Modifier and Type | -Method and Description | -
|---|---|
okhttp3.Request |
-createDeleteRequest(java.lang.String url,
- java.util.Map<java.lang.String,java.lang.Object> params,
- java.lang.String apiKey,
- java.lang.String accessToken)
-Creates a DELETE request.
- |
-
okhttp3.Request |
-createGetRequest(java.lang.String apiKey,
- java.lang.String url,
- java.lang.String accessToken)
-Creates a GET request.
- |
-
okhttp3.Request |
-createGetRequest(java.lang.String url,
- java.lang.String commonKey,
- java.lang.String[] values,
- java.lang.String apiKey,
- java.lang.String accessToken)
-Creates a GET request.
- |
-
okhttp3.Request |
-createJsonPostRequest(java.lang.String url,
- org.json.JSONArray jsonArray,
- java.lang.String apiKey,
- java.lang.String accessToken)
-Create a POST request with body type JSON.
- |
-
okhttp3.Request |
-createPostRequest(java.lang.String apiKey,
- java.lang.String url,
- org.json.JSONObject params)
-Creates a POST request.
- |
-
okhttp3.Request |
-createPostRequest(java.lang.String apiKey,
- java.lang.String url,
- org.json.JSONObject params,
- java.lang.String accessToken)
-Creates a POST request.
- |
-
okhttp3.Request |
-createPutRequest(java.lang.String url,
- java.util.Map<java.lang.String,java.lang.Object> params,
- java.lang.String apiKey,
- java.lang.String accessToken)
-Creates a PUT request.
- |
-
org.json.JSONObject |
-deleteRequest(java.lang.String url,
- java.util.Map<java.lang.String,java.lang.Object> params,
- java.lang.String apiKey,
- java.lang.String accessToken)
-Makes a DELETE request.
- |
-
org.json.JSONObject |
-getRequest(java.lang.String apiKey,
- java.lang.String url,
- java.lang.String accessToken)
-Makes a GET request.
- |
-
org.json.JSONObject |
-postRequest(java.lang.String apiKey,
- java.lang.String url,
- org.json.JSONObject params)
-Makes a POST request.
- |
-
org.json.JSONObject |
-postRequest(java.lang.String apiKey,
- java.lang.String url,
- org.json.JSONObject params,
- java.lang.String accessToken)
-Makes a POST request.
- |
-
org.json.JSONObject |
-postRequestJSON(java.lang.String url,
- org.json.JSONArray jsonArray,
- java.lang.String apiKey,
- java.lang.String accessToken)
-Make a JSON POST request.
- |
-
org.json.JSONObject |
-putRequest(java.lang.String url,
- java.util.Map<java.lang.String,java.lang.Object> params,
- java.lang.String apiKey,
- java.lang.String accessToken)
-Makes a PUT request.
- |
-
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic SmartAPIRequestHandler(java.net.Proxy proxy)-
proxy - to be set for making requests.public org.json.JSONObject postRequest(java.lang.String apiKey, - java.lang.String url, - org.json.JSONObject params) - throws java.io.IOException, - org.json.JSONException, - SmartAPIException-
url - is the endpoint to which request has to be sent.accessToken - is the access token obtained after successful login
- process.params - is the map of params which has to be sent in the body.java.io.IOException - is thrown when there is a connection related error.SmartAPIException - is thrown for all Smart API Trade related errors.org.json.JSONException - is thrown for parsing errors.public org.json.JSONObject postRequest(java.lang.String apiKey, - java.lang.String url, - org.json.JSONObject params, - java.lang.String accessToken) - throws java.io.IOException, - SmartAPIException, - org.json.JSONException-
url - is the endpoint to which request has to be sent.apiKey - is the api key of the Smart API Connect app.accessToken - is the access token obtained after successful login
- process.params - is the map of params which has to be sent in the body.java.io.IOException - is thrown when there is a connection related error.SmartAPIException - is thrown for all Smart API Trade related errors.org.json.JSONException - is thrown for parsing errors.public org.json.JSONObject postRequestJSON(java.lang.String url, - org.json.JSONArray jsonArray, - java.lang.String apiKey, - java.lang.String accessToken) - throws java.io.IOException, - SmartAPIException, - org.json.JSONException-
url - is the endpoint to which request has to be sent.apiKey - is the api key of the Smart API Connect app.accessToken - is the access token obtained after successful login
- process.jsonArray - is the JSON array of params which has to be sent in the
- body.java.io.IOException - is thrown when there is a connection related error.SmartAPIException - is thrown for all Smart API Trade related errors.org.json.JSONException - is thrown for parsing errors.public org.json.JSONObject putRequest(java.lang.String url, - java.util.Map<java.lang.String,java.lang.Object> params, - java.lang.String apiKey, - java.lang.String accessToken) - throws java.io.IOException, - SmartAPIException, - org.json.JSONException-
url - is the endpoint to which request has to be sent.apiKey - is the api key of the Smart API Connect app.accessToken - is the access token obtained after successful login
- process.params - is the map of params which has to be sent in the body.java.io.IOException - is thrown when there is a connection related error.SmartAPIException - is thrown for all Smart API Trade related errors.org.json.JSONException - is thrown for parsing errors.public org.json.JSONObject deleteRequest(java.lang.String url, - java.util.Map<java.lang.String,java.lang.Object> params, - java.lang.String apiKey, - java.lang.String accessToken) - throws java.io.IOException, - SmartAPIException, - org.json.JSONException-
url - is the endpoint to which request has to be sent.apiKey - is the api key of the Smart API Connect app.accessToken - is the access token obtained after successful login
- process.params - is the map of params which has to be sent in the query
- params.java.io.IOException - is thrown when there is a connection related error.SmartAPIException - is thrown for all Smart API Trade related errors.org.json.JSONException - is thrown for parsing errors.public org.json.JSONObject getRequest(java.lang.String apiKey, - java.lang.String url, - java.lang.String accessToken) - throws java.io.IOException, - SmartAPIException, - org.json.JSONException-
url - is the endpoint to which request has to be sent.apiKey - is the api key of the Smart API Connect app.accessToken - is the access token obtained after successful login
- process.commonKey - is the key that has to be sent in query param for quote
- calls.values - is the values that has to be sent in query param like 265,
- 256265, NSE:INFY.java.io.IOException - is thrown when there is a connection related error.SmartAPIException - is thrown for all Smart API Trade related errors.org.json.JSONException - is thrown for parsing errors.public okhttp3.Request createGetRequest(java.lang.String apiKey, - java.lang.String url, - java.lang.String accessToken) - throws java.io.IOException-
url - is the endpoint to which request has to be done.apiKey - is the api key of the Smart API Connect app.accessToken - is the access token obtained after successful login
- process.java.io.IOExceptionpublic okhttp3.Request createGetRequest(java.lang.String url, - java.lang.String commonKey, - java.lang.String[] values, - java.lang.String apiKey, - java.lang.String accessToken)-
url - is the endpoint to which request has to be done.apiKey - is the api key of the Smart API Connect app.accessToken - is the access token obtained after successful login
- process.commonKey - is the key that has to be sent in query param for quote
- calls.values - is the values that has to be sent in query param like 265,
- 256265, NSE:INFY.public okhttp3.Request createPostRequest(java.lang.String apiKey, - java.lang.String url, - org.json.JSONObject params)-
url - is the endpoint to which request has to be done.apiKey - is the api key of the Smart API Connect app.accessToken - is the access token obtained after successful login
- process.params - is the map of data that has to be sent in the body.public okhttp3.Request createPostRequest(java.lang.String apiKey, - java.lang.String url, - org.json.JSONObject params, - java.lang.String accessToken)-
url - is the endpoint to which request has to be done.apiKey - is the api key of the Smart API Connect app.accessToken - is the access token obtained after successful login
- process.params - is the map of data that has to be sent in the body.public okhttp3.Request createJsonPostRequest(java.lang.String url, - org.json.JSONArray jsonArray, - java.lang.String apiKey, - java.lang.String accessToken)-
url - is the endpoint to which request has to be done.apiKey - is the api key of the Smart API Connect app.accessToken - is the access token obtained after successful login
- process.jsonArray - is the JSONArray of data that has to be sent in the body.public okhttp3.Request createPutRequest(java.lang.String url, - java.util.Map<java.lang.String,java.lang.Object> params, - java.lang.String apiKey, - java.lang.String accessToken)-
url - is the endpoint to which request has to be done.apiKey - is the api key of the Smart API Connect app.accessToken - is the access token obtained after successful login
- process.params - is the map of data that has to be sent in the body.public okhttp3.Request createDeleteRequest(java.lang.String url, - java.util.Map<java.lang.String,java.lang.Object> params, - java.lang.String apiKey, - java.lang.String accessToken)-
url - is the endpoint to which request has to be done.apiKey - is the api key of the Smart API Connect app.accessToken - is the access token obtained after successful login
- process.params - is the map of data that has to be sent in the query
- params.public class SmartAPIResponseHandler
-extends java.lang.Object
-| Constructor and Description | -
|---|
SmartAPIResponseHandler() |
-
| Modifier and Type | -Method and Description | -
|---|---|
org.json.JSONObject |
-handle(okhttp3.Response response,
- java.lang.String body) |
-
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic SmartAPIResponseHandler()-
public org.json.JSONObject handle(okhttp3.Response response, - java.lang.String body) - throws java.io.IOException, - SmartAPIException, - org.json.JSONException-
java.io.IOExceptionSmartAPIExceptionorg.json.JSONException| Package | -Description | -
|---|---|
| com.angelbroking.smartapi | -- |
| Modifier and Type | -Field and Description | -
|---|---|
static SessionExpiryHook |
-SmartConnect.sessionExpiryHook |
-
| Modifier and Type | -Method and Description | -
|---|---|
void |
-SmartConnect.setSessionExpiryHook(SessionExpiryHook hook)
-Registers callback for session error.
- |
-
public class DataException -extends SmartAPIException-
code, message| Constructor and Description | -
|---|
DataException(java.lang.String message,
- java.lang.String code) |
-
toStringaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTraceequals, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic class GeneralException -extends SmartAPIException-
code, message| Constructor and Description | -
|---|
GeneralException(java.lang.String message,
- java.lang.String code) |
-
toStringaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTraceequals, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic class InputException -extends SmartAPIException-
code, message| Constructor and Description | -
|---|
InputException(java.lang.String message,
- java.lang.String code) |
-
toStringaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTraceequals, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic class NetworkException -extends SmartAPIException-
code, message| Constructor and Description | -
|---|
NetworkException(java.lang.String message,
- java.lang.String code) |
-
toStringaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTraceequals, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic class OrderException -extends SmartAPIException-
code, message| Constructor and Description | -
|---|
OrderException(java.lang.String message,
- java.lang.String code) |
-
toStringaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTraceequals, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic class PermissionException -extends SmartAPIException-
code, message| Constructor and Description | -
|---|
PermissionException(java.lang.String message,
- java.lang.String code) |
-
toStringaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTraceequals, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic class SmartAPIException
-extends java.lang.Throwable
-| Modifier and Type | -Field and Description | -
|---|---|
java.lang.String |
-code |
-
java.lang.String |
-message |
-
| Constructor and Description | -
|---|
SmartAPIException(java.lang.String message) |
-
SmartAPIException(java.lang.String message,
- java.lang.String code) |
-
| Modifier and Type | -Method and Description | -
|---|---|
java.lang.String |
-toString() |
-
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTraceequals, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic java.lang.String message-
public java.lang.String code-
public class TokenException -extends SmartAPIException-
code, message| Constructor and Description | -
|---|
TokenException(java.lang.String message,
- java.lang.String code) |
-
toStringaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTraceequals, getClass, hashCode, notify, notifyAll, wait, wait, wait| Package | -Description | -
|---|---|
| com.angelbroking.smartapi | -- |
| com.angelbroking.smartapi.http | -- |
| com.angelbroking.smartapi.http.exceptions | -- |
| com.angelbroking.smartapi.sample | -- |
| com.angelbroking.smartapi.ticker | -- |
| Modifier and Type | -Method and Description | -
|---|---|
Order |
-SmartConnect.cancelOrder(java.lang.String orderId,
- java.lang.String variety)
-Cancels an order.
- |
-
org.json.JSONObject |
-SmartConnect.convertPosition(org.json.JSONObject params)
-Retrieves conversion.
- |
-
User |
-SmartConnect.generateSession(java.lang.String clientCode,
- java.lang.String password)
-Do the token exchange with the `request_token` obtained after the login flow,
- and retrieve the `access_token` required for all subsequent requests.
- |
-
org.json.JSONObject |
-SmartConnect.getHolding()
-Retrieves Holding.
- |
-
org.json.JSONObject |
-SmartConnect.getLTP(java.lang.String exchange,
- java.lang.String tradingSymbol,
- java.lang.String symboltoken)
-Retrieves last price.
- |
-
java.util.List<Order> |
-SmartConnect.getOrderHistory(java.lang.String clientId)
-Returns list of different stages an order has gone through.
- |
-
org.json.JSONObject |
-SmartConnect.getPosition()
-Retrieves position.
- |
-
User |
-SmartConnect.getProfile()
-Get the profile details of the use.
- |
-
org.json.JSONObject |
-SmartConnect.getRMS()
-Retrieves RMS.
- |
-
java.util.List<Trade> |
-SmartConnect.getTrades()
-Retrieves list of trades executed.
- |
-
org.json.JSONObject |
-SmartConnect.logout()
-Logs out user by invalidating the access token.
- |
-
Order |
-SmartConnect.modifyOrder(java.lang.String orderId,
- OrderParams orderParams,
- java.lang.String variety)
-Modifies an open order.
- |
-
Order |
-SmartConnect.placeOrder(OrderParams orderParams,
- java.lang.String variety)
-Places an order.
- |
-
TokenSet |
-SmartConnect.renewAccessToken(java.lang.String accessToken,
- java.lang.String refreshToken)
-Get a new access token using refresh token.
- |
-
| Modifier and Type | -Method and Description | -
|---|---|
org.json.JSONObject |
-SmartAPIRequestHandler.deleteRequest(java.lang.String url,
- java.util.Map<java.lang.String,java.lang.Object> params,
- java.lang.String apiKey,
- java.lang.String accessToken)
-Makes a DELETE request.
- |
-
org.json.JSONObject |
-SmartAPIRequestHandler.getRequest(java.lang.String apiKey,
- java.lang.String url,
- java.lang.String accessToken)
-Makes a GET request.
- |
-
org.json.JSONObject |
-SmartAPIResponseHandler.handle(okhttp3.Response response,
- java.lang.String body) |
-
org.json.JSONObject |
-SmartAPIRequestHandler.postRequest(java.lang.String apiKey,
- java.lang.String url,
- org.json.JSONObject params)
-Makes a POST request.
- |
-
org.json.JSONObject |
-SmartAPIRequestHandler.postRequest(java.lang.String apiKey,
- java.lang.String url,
- org.json.JSONObject params,
- java.lang.String accessToken)
-Makes a POST request.
- |
-
org.json.JSONObject |
-SmartAPIRequestHandler.postRequestJSON(java.lang.String url,
- org.json.JSONArray jsonArray,
- java.lang.String apiKey,
- java.lang.String accessToken)
-Make a JSON POST request.
- |
-
org.json.JSONObject |
-SmartAPIRequestHandler.putRequest(java.lang.String url,
- java.util.Map<java.lang.String,java.lang.Object> params,
- java.lang.String apiKey,
- java.lang.String accessToken)
-Makes a PUT request.
- |
-
| Modifier and Type | -Class and Description | -
|---|---|
class |
-DataException
-Exceptions raised when invalid data is returned from Smart API trade.
- |
-
class |
-GeneralException
-An unclassified, general error.
- |
-
class |
-InputException
-Represents user input errors such as missing and invalid parameters.
- |
-
class |
-NetworkException
-Represents a network issue between Smart API and the backend Order Management System (OMS).
- |
-
class |
-OrderException
-Represents all order placement and manipulation errors.
- |
-
class |
-PermissionException
-Represents permission denied exceptions for certain calls.
- |
-
class |
-TokenException
-Denotes session is expired.
- |
-
| Modifier and Type | -Method and Description | -
|---|---|
void |
-Examples.cancelOrder(SmartConnect smartConnect)
-Cancel an order
- |
-
void |
-Examples.convertPosition(SmartConnect smartConnect)
-convert Position
- |
-
void |
-Examples.getHolding(SmartConnect smartConnect)
-Get Holdings
- |
-
void |
-Examples.getLTP(SmartConnect smartConnect)
-Get last price for multiple instruments at once.
- |
-
void |
-Examples.getOrder(SmartConnect smartConnect)
-Get order details
- |
-
void |
-Examples.getPosition(SmartConnect smartConnect)
-Get Position
- |
-
void |
-Examples.getProfile(SmartConnect smartConnect) |
-
void |
-Examples.getRMS(SmartConnect smartConnect)
-Get RMS
- |
-
void |
-Examples.getTrades(SmartConnect smartConnect)
-Get tradebook
- |
-
void |
-Examples.logout(SmartConnect smartConnect)
-Logout user.
- |
-
static void |
-Test.main(java.lang.String[] args) |
-
void |
-Examples.modifyOrder(SmartConnect smartConnect)
-Modify order.
- |
-
void |
-Examples.placeOrder(SmartConnect smartConnect)
-Place order.
- |
-
void |
-Examples.tickerUsage(java.lang.String clientId,
- java.lang.String feedToken,
- java.lang.String strWatchListScript) |
-
| Modifier and Type | -Method and Description | -
|---|---|
void |
-OnError.onError(SmartAPIException smartAPIException) |
-
| Modifier and Type | -Method and Description | -
|---|---|
void |
-SmartAPITicker.setMaximumRetries(int maxRetries)
-Set max number of retries for reconnection, for infinite retries set value as
- -1.
- |
-
void |
-SmartAPITicker.setMaximumRetryInterval(int interval) |
-
| Class | -Description | -
|---|---|
| DataException | -
- Exceptions raised when invalid data is returned from Smart API trade.
- |
-
| GeneralException | -
- An unclassified, general error.
- |
-
| InputException | -
- Represents user input errors such as missing and invalid parameters.
- |
-
| NetworkException | -
- Represents a network issue between Smart API and the backend Order Management System (OMS).
- |
-
| OrderException | -
- Represents all order placement and manipulation errors.
- |
-
| PermissionException | -
- Represents permission denied exceptions for certain calls.
- |
-
| SmartAPIException | -
- This is the base exception class which has a publicly accessible message and
- code that is received from Angel Connect api.
- |
-
| TokenException | -
- Denotes session is expired.
- |
-
| Package | -Description | -
|---|---|
| com.angelbroking.smartapi | -- |
| com.angelbroking.smartapi.http | -- |
| com.angelbroking.smartapi.http.exceptions | -- |
| com.angelbroking.smartapi.sample | -- |
| com.angelbroking.smartapi.ticker | -- |
| Class and Description | -
|---|
| SmartAPIException
- This is the base exception class which has a publicly accessible message and
- code that is received from Angel Connect api.
- |
-
| Class and Description | -
|---|
| SmartAPIException
- This is the base exception class which has a publicly accessible message and
- code that is received from Angel Connect api.
- |
-
| Class and Description | -
|---|
| SmartAPIException
- This is the base exception class which has a publicly accessible message and
- code that is received from Angel Connect api.
- |
-
| Class and Description | -
|---|
| SmartAPIException
- This is the base exception class which has a publicly accessible message and
- code that is received from Angel Connect api.
- |
-
| Class and Description | -
|---|
| SmartAPIException
- This is the base exception class which has a publicly accessible message and
- code that is received from Angel Connect api.
- |
-
| Interface | -Description | -
|---|---|
| SessionExpiryHook | -
- A callback whenever there is a token expiry
- |
-
| Class | -Description | -
|---|---|
| SmartAPIRequestHandler | -
- Request handler for all Http requests
- |
-
| SmartAPIResponseHandler | -
- Response handler for handling all the responses.
- |
-
| Package | -Description | -
|---|---|
| com.angelbroking.smartapi | -- |
| Class and Description | -
|---|
| SessionExpiryHook
- A callback whenever there is a token expiry
- |
-
public class Depth
-extends java.lang.Object
-| Modifier and Type | -Method and Description | -
|---|---|
int |
-getOrders() |
-
double |
-getPrice() |
-
int |
-getQuantity() |
-
void |
-setOrders(int orders) |
-
void |
-setPrice(double price) |
-
void |
-setQuantity(int quantity) |
-
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic int getQuantity()-
public void setQuantity(int quantity)-
public double getPrice()-
public void setPrice(double price)-
public int getOrders()-
public void setOrders(int orders)-
public class Holdings
-extends java.lang.Object
-| Modifier and Type | -Field and Description | -
|---|---|
java.lang.String |
-accountId |
-
java.lang.String |
-averagePrice |
-
java.lang.String |
-collateralQuantity |
-
java.lang.String |
-collateraltype |
-
java.lang.String |
-exchange |
-
java.lang.String |
-instrumentToken |
-
java.lang.String |
-isin |
-
java.lang.String |
-lastPrice |
-
java.lang.String |
-pnl |
-
java.lang.String |
-price |
-
java.lang.String |
-product |
-
java.lang.String |
-quantity |
-
java.lang.String |
-realisedQuantity |
-
java.lang.String |
-t1Quantity |
-
java.lang.String |
-tradingSymbol |
-
public java.lang.String product-
public java.lang.String lastPrice-
public java.lang.String price-
public java.lang.String tradingSymbol-
public java.lang.String t1Quantity-
public java.lang.String collateralQuantity-
public java.lang.String collateraltype-
public java.lang.String accountId-
public java.lang.String isin-
public java.lang.String pnl-
public java.lang.String quantity-
public java.lang.String realisedQuantity-
public java.lang.String averagePrice-
public java.lang.String exchange-
public java.lang.String instrumentToken-
public class Order
-extends java.lang.Object
-| Modifier and Type | -Field and Description | -
|---|---|
java.lang.String |
-accountId |
-
java.lang.String |
-averagePrice |
-
java.lang.String |
-disclosedQuantity |
-
java.lang.String |
-exchange |
-
java.lang.String |
-exchangeOrderId |
-
java.lang.String |
-exchangeTimestamp |
-
java.lang.String |
-exchangeUpdateTimestamp |
-
java.lang.String |
-filledQuantity |
-
java.lang.String |
-guid |
-
java.lang.String |
-orderId |
-
java.lang.String |
-orderTimestamp |
-
java.lang.String |
-orderType |
-
java.lang.String |
-orderVariety |
-
java.lang.String |
-parentOrderId |
-
java.lang.String |
-pendingQuantity |
-
java.lang.String |
-price |
-
java.lang.String |
-product |
-
java.lang.String |
-quantity |
-
java.lang.String |
-status |
-
java.lang.String |
-statusMessage |
-
java.lang.String |
-symbol |
-
java.lang.String |
-tag |
-
java.lang.String |
-tradingSymbol |
-
java.lang.String |
-transactionType |
-
java.lang.String |
-triggerPrice |
-
java.lang.String |
-userId |
-
java.lang.String |
-validity |
-
| Modifier and Type | -Method and Description | -
|---|---|
java.lang.String |
-toString() |
-
equals, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic java.lang.String exchangeOrderId-
public java.lang.String disclosedQuantity-
public java.lang.String validity-
public java.lang.String tradingSymbol-
public java.lang.String orderVariety-
public java.lang.String userId-
public java.lang.String orderType-
public java.lang.String triggerPrice-
public java.lang.String statusMessage-
public java.lang.String price-
public java.lang.String status-
public java.lang.String product-
public java.lang.String accountId-
public java.lang.String exchange-
public java.lang.String orderId-
public java.lang.String symbol-
public java.lang.String pendingQuantity-
public java.lang.String orderTimestamp-
public java.lang.String exchangeTimestamp-
public java.lang.String exchangeUpdateTimestamp-
public java.lang.String averagePrice-
public java.lang.String transactionType-
public java.lang.String filledQuantity-
public java.lang.String quantity-
public java.lang.String parentOrderId-
public java.lang.String tag-
public java.lang.String guid-
public class OrderParams
-extends java.lang.Object
-| Modifier and Type | -Field and Description | -
|---|---|
java.lang.String |
-duration
-Order duration (DAY, IOC).
- |
-
java.lang.String |
-exchange
-Exchange in which instrument is listed (NSE, BSE, NFO, BFO, CDS, MCX).
- |
-
java.lang.String |
-orderid |
-
java.lang.String |
-ordertype
-Order type (LIMIT, SL, SL-M, MARKET).
- |
-
java.lang.Double |
-price
-Order Price
- |
-
java.lang.String |
-producttype
-producttype code (NRML, MIS, CNC).
- |
-
java.lang.Integer |
-quantity
-Order quantity
- |
-
java.lang.String |
-squareoff |
-
java.lang.String |
-stoploss |
-
java.lang.String |
-symboltoken |
-
java.lang.String |
-symbolToken
-symboltoken of the instrument.
- |
-
java.lang.String |
-tradingsymbol
-Order duration (DAY, IOC).
- |
-
java.lang.String |
-transactiontype
-Transaction type (BUY or SELL).
- |
-
java.lang.String |
-variety
-variety
- |
-
| Constructor and Description | -
|---|
OrderParams() |
-
public java.lang.String orderid-
public java.lang.String exchange-
public java.lang.String symbolToken-
public java.lang.String transactiontype-
public java.lang.Integer quantity-
public java.lang.Double price-
public java.lang.String producttype-
public java.lang.String ordertype-
public java.lang.String duration-
public java.lang.String variety-
public java.lang.String tradingsymbol-
public java.lang.String squareoff-
public java.lang.String stoploss-
public java.lang.String symboltoken-
public class Position
-extends java.lang.Object
-| Modifier and Type | -Field and Description | -
|---|---|
double |
-averagePrice |
-
double |
-buym2m |
-
java.lang.Double |
-buyPrice |
-
int |
-buyQuantity |
-
java.lang.Double |
-buyValue |
-
java.lang.Double |
-closePrice |
-
double |
-dayBuyPrice |
-
double |
-dayBuyQuantity |
-
double |
-dayBuyValue |
-
double |
-daySellPrice |
-
double |
-daySellQuantity |
-
double |
-daySellValue |
-
java.lang.String |
-exchange |
-
java.lang.String |
-instrumentToken |
-
java.lang.Double |
-lastPrice |
-
java.lang.Double |
-m2m |
-
java.lang.Double |
-multiplier |
-
int |
-netQuantity |
-
java.lang.Double |
-netValue |
-
int |
-overnightQuantity |
-
java.lang.Double |
-pnl |
-
java.lang.String |
-product |
-
java.lang.Double |
-realised |
-
double |
-sellm2m |
-
java.lang.Double |
-sellPrice |
-
int |
-sellQuantity |
-
java.lang.Double |
-sellValue |
-
java.lang.String |
-tradingSymbol |
-
java.lang.Double |
-unrealised |
-
double |
-value |
-
public java.lang.String product-
public java.lang.String exchange-
public java.lang.Double sellValue-
public java.lang.Double lastPrice-
public java.lang.Double unrealised-
public java.lang.Double buyPrice-
public java.lang.Double sellPrice-
public java.lang.Double m2m-
public java.lang.String tradingSymbol-
public int netQuantity-
public int sellQuantity-
public java.lang.Double realised-
public int buyQuantity-
public java.lang.Double netValue-
public java.lang.Double buyValue-
public java.lang.Double multiplier-
public java.lang.String instrumentToken-
public java.lang.Double closePrice-
public java.lang.Double pnl-
public int overnightQuantity-
public double buym2m-
public double sellm2m-
public double dayBuyQuantity-
public double daySellQuantity-
public double dayBuyPrice-
public double daySellPrice-
public double dayBuyValue-
public double daySellValue-
public double value-
public double averagePrice-
public class Profile
-extends java.lang.Object
-| Modifier and Type | -Field and Description | -
|---|---|
java.lang.String |
-broker |
-
java.lang.String |
-email |
-
java.lang.String[] |
-exchanges |
-
java.lang.String[] |
-products |
-
java.lang.String |
-userName |
-
| Modifier and Type | -Method and Description | -
|---|---|
java.lang.String |
-getBroker() |
-
java.lang.String |
-getEmail() |
-
java.lang.String[] |
-getExchanges() |
-
java.lang.String[] |
-getProducts() |
-
java.lang.String |
-getUserName() |
-
void |
-setBroker(java.lang.String broker) |
-
void |
-setEmail(java.lang.String email) |
-
void |
-setExchanges(java.lang.String[] exchanges) |
-
void |
-setProducts(java.lang.String[] products) |
-
void |
-setUserName(java.lang.String userName) |
-
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic java.lang.String email-
public java.lang.String userName-
public java.lang.String broker-
public java.lang.String[] exchanges-
public java.lang.String[] products-
public java.lang.String getEmail()-
public void setEmail(java.lang.String email)-
public java.lang.String getUserName()-
public void setUserName(java.lang.String userName)-
public java.lang.String getBroker()-
public void setBroker(java.lang.String broker)-
public java.lang.String[] getExchanges()-
public void setExchanges(java.lang.String[] exchanges)-
public java.lang.String[] getProducts()-
public void setProducts(java.lang.String[] products)-
public class Tick
-extends java.lang.Object
-| Modifier and Type | -Method and Description | -
|---|---|
double |
-getAverageTradePrice() |
-
double |
-getChange() |
-
double |
-getClosePrice() |
-
double |
-getHighPrice() |
-
long |
-getInstrumentToken() |
-
double |
-getLastTradedPrice() |
-
double |
-getLastTradedQuantity() |
-
java.util.Date |
-getLastTradedTime() |
-
double |
-getLowPrice() |
-
java.util.Map<java.lang.String,java.util.ArrayList<Depth>> |
-getMarketDepth() |
-
java.lang.String |
-getMode() |
-
double |
-getOi() |
-
double |
-getOpenInterestDayHigh() |
-
double |
-getOpenInterestDayLow() |
-
double |
-getOpenPrice() |
-
java.util.Date |
-getTickTimestamp() |
-
double |
-getTotalBuyQuantity() |
-
double |
-getTotalSellQuantity() |
-
double |
-getVolumeTradedToday() |
-
boolean |
-isTradable() |
-
void |
-setAverageTradePrice(double averageTradePrice) |
-
void |
-setClosePrice(double closePrice) |
-
void |
-setHighPrice(double highPrice) |
-
void |
-setInstrumentToken(long token) |
-
void |
-setLastTradedPrice(double lastTradedPrice) |
-
void |
-setLastTradedQuantity(double lastTradedQuantity) |
-
void |
-setLastTradedTime(java.util.Date lastTradedTime) |
-
void |
-setLowPrice(double lowPrice) |
-
void |
-setMarketDepth(java.util.Map<java.lang.String,java.util.ArrayList<Depth>> marketDepth) |
-
void |
-setMode(java.lang.String mode) |
-
void |
-setNetPriceChangeFromClosingPrice(double netPriceChangeFromClosingPrice) |
-
void |
-setOi(double oi) |
-
void |
-setOpenInterestDayHigh(double dayHighOpenInterest) |
-
void |
-setOpenInterestDayLow(double dayLowOpenInterest) |
-
void |
-setOpenPrice(double openPrice) |
-
void |
-setTickTimestamp(java.util.Date tickTimestamp) |
-
void |
-setTotalBuyQuantity(double totalBuyQuantity) |
-
void |
-setTotalSellQuantity(double totalSellQuantity) |
-
void |
-setTradable(boolean tradable) |
-
void |
-setVolumeTradedToday(double volumeTradedToday) |
-
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic java.util.Date getLastTradedTime()-
public void setLastTradedTime(java.util.Date lastTradedTime)-
public double getOi()-
public void setOi(double oi)-
public double getOpenInterestDayHigh()-
public void setOpenInterestDayHigh(double dayHighOpenInterest)-
public double getOpenInterestDayLow()-
public void setOpenInterestDayLow(double dayLowOpenInterest)-
public java.util.Date getTickTimestamp()-
public void setTickTimestamp(java.util.Date tickTimestamp)-
public java.lang.String getMode()-
public void setMode(java.lang.String mode)-
public boolean isTradable()-
public void setTradable(boolean tradable)-
public long getInstrumentToken()-
public void setInstrumentToken(long token)-
public double getLastTradedPrice()-
public void setLastTradedPrice(double lastTradedPrice)-
public double getHighPrice()-
public void setHighPrice(double highPrice)-
public double getLowPrice()-
public void setLowPrice(double lowPrice)-
public double getOpenPrice()-
public void setOpenPrice(double openPrice)-
public double getClosePrice()-
public void setClosePrice(double closePrice)-
public double getChange()-
public void setNetPriceChangeFromClosingPrice(double netPriceChangeFromClosingPrice)-
public double getLastTradedQuantity()-
public void setLastTradedQuantity(double lastTradedQuantity)-
public double getAverageTradePrice()-
public void setAverageTradePrice(double averageTradePrice)-
public double getVolumeTradedToday()-
public void setVolumeTradedToday(double volumeTradedToday)-
public double getTotalBuyQuantity()-
public void setTotalBuyQuantity(double totalBuyQuantity)-
public double getTotalSellQuantity()-
public void setTotalSellQuantity(double totalSellQuantity)-
public java.util.Map<java.lang.String,java.util.ArrayList<Depth>> getMarketDepth()-
public void setMarketDepth(java.util.Map<java.lang.String,java.util.ArrayList<Depth>> marketDepth)-
public class TokenSet
-extends java.lang.Object
-| Modifier and Type | -Field and Description | -
|---|---|
java.lang.String |
-accessToken |
-
java.lang.String |
-refreshToken |
-
java.lang.String |
-userId |
-
| Modifier and Type | -Method and Description | -
|---|---|
java.lang.String |
-getAccessToken() |
-
java.lang.String |
-getRefreshToken() |
-
java.lang.String |
-getUserId() |
-
void |
-setAccessToken(java.lang.String accessToken) |
-
void |
-setRefreshToken(java.lang.String refreshToken) |
-
void |
-setUserId(java.lang.String userId) |
-
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic java.lang.String userId-
public java.lang.String accessToken-
public java.lang.String refreshToken-
public java.lang.String getUserId()-
public void setUserId(java.lang.String userId)-
public java.lang.String getAccessToken()-
public void setAccessToken(java.lang.String accessToken)-
public java.lang.String getRefreshToken()-
public void setRefreshToken(java.lang.String refreshToken)-
public class Trade
-extends java.lang.Object
-| Modifier and Type | -Field and Description | -
|---|---|
java.lang.String |
-averagePrice |
-
java.lang.String |
-exchange |
-
java.lang.String |
-exchangeOrderId |
-
java.util.Date |
-exchangeTimestamp |
-
java.util.Date |
-fillTimestamp |
-
java.lang.String |
-instrumentToken |
-
java.lang.String |
-orderId |
-
java.lang.String |
-product |
-
java.lang.String |
-quantity |
-
java.lang.String |
-tradeId |
-
java.lang.String |
-tradingSymbol |
-
java.lang.String |
-transactionType |
-
public java.lang.String tradeId-
public java.lang.String orderId-
public java.lang.String exchangeOrderId-
public java.lang.String tradingSymbol-
public java.lang.String exchange-
public java.lang.String instrumentToken-
public java.lang.String product-
public java.lang.String averagePrice-
public java.lang.String quantity-
public java.util.Date fillTimestamp-
public java.util.Date exchangeTimestamp-
public java.lang.String transactionType-
public class User
-extends java.lang.Object
-| Modifier and Type | -Field and Description | -
|---|---|
java.lang.String |
-accessToken |
-
java.lang.String |
-brokerName |
-
java.lang.String |
-email |
-
java.lang.String[] |
-exchanges |
-
java.lang.String |
-feedToken |
-
java.util.Date |
-lastLoginTime |
-
java.lang.String |
-mobileNo |
-
java.lang.String[] |
-products |
-
java.lang.String |
-refreshToken |
-
java.lang.String |
-userId |
-
java.lang.String |
-userName |
-
| Modifier and Type | -Method and Description | -
|---|---|
java.lang.String |
-getAccessToken() |
-
java.lang.String |
-getBrokerName() |
-
java.lang.String |
-getEmail() |
-
java.lang.String[] |
-getExchanges() |
-
java.lang.String |
-getFeedToken() |
-
java.util.Date |
-getLastLoginTime() |
-
java.lang.String |
-getMobileNo() |
-
java.lang.String[] |
-getProducts() |
-
java.lang.String |
-getRefreshToken() |
-
java.lang.String |
-getUserId() |
-
java.lang.String |
-getUserName() |
-
User |
-parseArray(User user,
- org.json.JSONObject response)
-Parses array details of product, exchange and order_type from json response.
- |
-
User |
-parseResponse(org.json.JSONObject response)
-Parses user details response from server.
- |
-
void |
-setAccessToken(java.lang.String accessToken) |
-
void |
-setBrokerName(java.lang.String brokerName) |
-
void |
-setEmail(java.lang.String email) |
-
void |
-setExchanges(java.lang.String[] exchanges) |
-
void |
-setFeedToken(java.lang.String feedToken) |
-
void |
-setLastLoginTime(java.util.Date lastLoginTime) |
-
void |
-setMobileNo(java.lang.String mobileNo) |
-
void |
-setProducts(java.lang.String[] products) |
-
void |
-setRefreshToken(java.lang.String refreshToken) |
-
void |
-setUserId(java.lang.String userId) |
-
void |
-setUserName(java.lang.String userName) |
-
java.lang.String |
-toString() |
-
equals, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic java.lang.String userName-
public java.lang.String userId-
public java.lang.String mobileNo-
public java.lang.String brokerName-
public java.lang.String email-
public java.util.Date lastLoginTime-
public java.lang.String accessToken-
public java.lang.String refreshToken-
public java.lang.String[] products-
public java.lang.String[] exchanges-
public java.lang.String feedToken-
public User parseResponse(org.json.JSONObject response) - throws org.json.JSONException-
response - is the json response from server.org.json.JSONException - is thrown when there is error while parsing response.public User parseArray(User user, - org.json.JSONObject response) - throws org.json.JSONException-
response - is the json response from server.user - is the object to which data is copied to from json response.org.json.JSONExceptionpublic java.lang.String getUserName()-
public void setUserName(java.lang.String userName)-
public java.lang.String getUserId()-
public void setUserId(java.lang.String userId)-
public java.lang.String getMobileNo()-
public void setMobileNo(java.lang.String mobileNo)-
public java.lang.String getBrokerName()-
public void setBrokerName(java.lang.String brokerName)-
public java.lang.String getEmail()-
public void setEmail(java.lang.String email)-
public java.util.Date getLastLoginTime()-
public void setLastLoginTime(java.util.Date lastLoginTime)-
public java.lang.String getAccessToken()-
public void setAccessToken(java.lang.String accessToken)-
public java.lang.String getRefreshToken()-
public void setRefreshToken(java.lang.String refreshToken)-
public java.lang.String[] getProducts()-
public void setProducts(java.lang.String[] products)-
public java.lang.String[] getExchanges()-
public void setExchanges(java.lang.String[] exchanges)-
public java.lang.String getFeedToken()-
public void setFeedToken(java.lang.String feedToken)-
public java.lang.String toString()-
toString in class java.lang.Object| Package | -Description | -
|---|---|
| com.angelbroking.smartapi.models | -- |
| Modifier and Type | -Method and Description | -
|---|---|
java.util.Map<java.lang.String,java.util.ArrayList<Depth>> |
-Tick.getMarketDepth() |
-
| Modifier and Type | -Method and Description | -
|---|---|
void |
-Tick.setMarketDepth(java.util.Map<java.lang.String,java.util.ArrayList<Depth>> marketDepth) |
-
| Package | -Description | -
|---|---|
| com.angelbroking.smartapi | -- |
| Modifier and Type | -Method and Description | -
|---|---|
Order |
-SmartConnect.cancelOrder(java.lang.String orderId,
- java.lang.String variety)
-Cancels an order.
- |
-
Order |
-SmartConnect.modifyOrder(java.lang.String orderId,
- OrderParams orderParams,
- java.lang.String variety)
-Modifies an open order.
- |
-
Order |
-SmartConnect.placeOrder(OrderParams orderParams,
- java.lang.String variety)
-Places an order.
- |
-
| Modifier and Type | -Method and Description | -
|---|---|
java.util.List<Order> |
-SmartConnect.getOrderHistory(java.lang.String clientId)
-Returns list of different stages an order has gone through.
- |
-
| Package | -Description | -
|---|---|
| com.angelbroking.smartapi | -- |
| Modifier and Type | -Method and Description | -
|---|---|
Order |
-SmartConnect.modifyOrder(java.lang.String orderId,
- OrderParams orderParams,
- java.lang.String variety)
-Modifies an open order.
- |
-
Order |
-SmartConnect.placeOrder(OrderParams orderParams,
- java.lang.String variety)
-Places an order.
- |
-
| Package | -Description | -
|---|---|
| com.angelbroking.smartapi | -- |
| Modifier and Type | -Method and Description | -
|---|---|
TokenSet |
-SmartConnect.renewAccessToken(java.lang.String accessToken,
- java.lang.String refreshToken)
-Get a new access token using refresh token.
- |
-
| Package | -Description | -
|---|---|
| com.angelbroking.smartapi | -- |
| Modifier and Type | -Method and Description | -
|---|---|
java.util.List<Trade> |
-SmartConnect.getTrades()
-Retrieves list of trades executed.
- |
-
| Package | -Description | -
|---|---|
| com.angelbroking.smartapi | -- |
| com.angelbroking.smartapi.models | -- |
| Modifier and Type | -Method and Description | -
|---|---|
User |
-SmartConnect.generateSession(java.lang.String clientCode,
- java.lang.String password)
-Do the token exchange with the `request_token` obtained after the login flow,
- and retrieve the `access_token` required for all subsequent requests.
- |
-
User |
-SmartConnect.getProfile()
-Get the profile details of the use.
- |
-
| Modifier and Type | -Method and Description | -
|---|---|
User |
-User.parseArray(User user,
- org.json.JSONObject response)
-Parses array details of product, exchange and order_type from json response.
- |
-
User |
-User.parseResponse(org.json.JSONObject response)
-Parses user details response from server.
- |
-
| Modifier and Type | -Method and Description | -
|---|---|
User |
-User.parseArray(User user,
- org.json.JSONObject response)
-Parses array details of product, exchange and order_type from json response.
- |
-
| Class | -Description | -
|---|---|
| Depth | -
- A wrapper for market depth.
- |
-
| Holdings | -- |
| Order | -
- A wrapper for order.
- |
-
| OrderParams | -
- A wrapper for order params to be sent while placing an order.
- |
-
| Position | -- |
| Profile | -
- A wrapper for profile response.
- |
-
| Tick | -- |
| TokenSet | -
- A wrapper for user id, access token, refresh token.
- |
-
| Trade | -- |
| User | -
- A wrapper for user and session details.
- |
-
| Package | -Description | -
|---|---|
| com.angelbroking.smartapi | -- |
| com.angelbroking.smartapi.models | -- |
| Class and Description | -
|---|
| Order
- A wrapper for order.
- |
-
| OrderParams
- A wrapper for order params to be sent while placing an order.
- |
-
| TokenSet
- A wrapper for user id, access token, refresh token.
- |
-
| Trade | -
| User
- A wrapper for user and session details.
- |
-
| Class and Description | -
|---|
| Depth
- A wrapper for market depth.
- |
-
| User
- A wrapper for user and session details.
- |
-
| Class | -Description | -
|---|---|
| Routes | -
- Generates end-points for all smart api calls.
- |
-
| SmartConnect | -- |
| Package | -Description | -
|---|---|
| com.angelbroking.smartapi.sample | -- |
| Class and Description | -
|---|
| SmartConnect | -
public class Examples
-extends java.lang.Object
-| Modifier and Type | -Method and Description | -
|---|---|
void |
-cancelOrder(SmartConnect smartConnect)
-Cancel an order
- |
-
void |
-convertPosition(SmartConnect smartConnect)
-convert Position
- |
-
void |
-getHolding(SmartConnect smartConnect)
-Get Holdings
- |
-
void |
-getLTP(SmartConnect smartConnect)
-Get last price for multiple instruments at once.
- |
-
void |
-getOrder(SmartConnect smartConnect)
-Get order details
- |
-
void |
-getPosition(SmartConnect smartConnect)
-Get Position
- |
-
void |
-getProfile(SmartConnect smartConnect) |
-
void |
-getRMS(SmartConnect smartConnect)
-Get RMS
- |
-
void |
-getTrades(SmartConnect smartConnect)
-Get tradebook
- |
-
void |
-logout(SmartConnect smartConnect)
-Logout user.
- |
-
void |
-modifyOrder(SmartConnect smartConnect)
-Modify order.
- |
-
void |
-placeOrder(SmartConnect smartConnect)
-Place order.
- |
-
void |
-tickerUsage(java.lang.String clientId,
- java.lang.String feedToken,
- java.lang.String strWatchListScript) |
-
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic void getProfile(SmartConnect smartConnect) - throws java.io.IOException, - SmartAPIException-
java.io.IOExceptionSmartAPIExceptionpublic void placeOrder(SmartConnect smartConnect) - throws SmartAPIException, - java.io.IOException-
SmartAPIExceptionjava.io.IOExceptionpublic void modifyOrder(SmartConnect smartConnect) - throws SmartAPIException, - java.io.IOException-
SmartAPIExceptionjava.io.IOExceptionpublic void cancelOrder(SmartConnect smartConnect) - throws SmartAPIException, - java.io.IOException-
SmartAPIExceptionjava.io.IOExceptionpublic void getOrder(SmartConnect smartConnect) - throws SmartAPIException, - java.io.IOException-
SmartAPIExceptionjava.io.IOExceptionpublic void getLTP(SmartConnect smartConnect) - throws SmartAPIException, - java.io.IOException-
SmartAPIExceptionjava.io.IOExceptionpublic void getTrades(SmartConnect smartConnect) - throws SmartAPIException, - java.io.IOException-
SmartAPIExceptionjava.io.IOExceptionpublic void getRMS(SmartConnect smartConnect) - throws SmartAPIException, - java.io.IOException-
SmartAPIExceptionjava.io.IOExceptionpublic void getHolding(SmartConnect smartConnect) - throws SmartAPIException, - java.io.IOException-
SmartAPIExceptionjava.io.IOExceptionpublic void getPosition(SmartConnect smartConnect) - throws SmartAPIException, - java.io.IOException-
SmartAPIExceptionjava.io.IOExceptionpublic void convertPosition(SmartConnect smartConnect) - throws SmartAPIException, - java.io.IOException-
SmartAPIExceptionjava.io.IOExceptionpublic void tickerUsage(java.lang.String clientId, - java.lang.String feedToken, - java.lang.String strWatchListScript) - throws SmartAPIException-
SmartAPIExceptionpublic void logout(SmartConnect smartConnect) - throws SmartAPIException, - java.io.IOException-
SmartAPIExceptionjava.io.IOExceptionpublic class Test
-extends java.lang.Object
-| Modifier and Type | -Method and Description | -
|---|---|
static void |
-main(java.lang.String[] args) |
-
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic static void main(java.lang.String[] args) - throws SmartAPIException-
SmartAPIExceptionpublic class WSCodeTest
-extends java.lang.Object
-| Constructor and Description | -
|---|
WSCodeTest() |
-
| Modifier and Type | -Method and Description | -
|---|---|
static void |
-main(java.lang.String[] args) |
-
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait| Class | -Description | -
|---|---|
| Examples | -- |
| Test | -- |
| WSCodeTest | -- |
public interface OnConnect
-| Modifier and Type | -Method and Description | -
|---|---|
void |
-onConnected() |
-
public interface OnDisconnect
-| Modifier and Type | -Method and Description | -
|---|---|
void |
-onDisconnected() |
-
public interface OnError
-| Modifier and Type | -Method and Description | -
|---|---|
void |
-onError(java.lang.Exception exception) |
-
void |
-onError(SmartAPIException smartAPIException) |
-
void |
-onError(java.lang.String error) |
-
void onError(java.lang.Exception exception)-
void onError(SmartAPIException smartAPIException)-
void onError(java.lang.String error)-
public interface OnTicks
-| Modifier and Type | -Method and Description | -
|---|---|
void |
-onTicks(org.json.JSONArray ticks) |
-
public class SmartAPITicker
-extends java.lang.Object
-| Constructor and Description | -
|---|
SmartAPITicker(java.lang.String clientId,
- java.lang.String feedToken)
-Initialize SmartAPITicker.
- |
-
| Modifier and Type | -Method and Description | -
|---|---|
void |
-connect()
-Establishes a web socket connection.
- |
-
static byte[] |
-decompress(byte[] compressedTxt) |
-
void |
-disconnect()
-Disconnects websocket connection.
- |
-
void |
-doReconnect()
-Performs reconnection after a particular interval if count is less than
- maximum retries.
- |
-
com.neovisionaries.ws.client.WebSocketAdapter |
-getWebsocketAdapter()
-Returns a WebSocketAdapter to listen to ticker related events.
- |
-
boolean |
-isConnectionOpen()
-Returns true if websocket connection is open.
- |
-
void |
-setMaximumRetries(int maxRetries)
-Set max number of retries for reconnection, for infinite retries set value as
- -1.
- |
-
void |
-setMaximumRetryInterval(int interval) |
-
void |
-setOnConnectedListener(OnConnect listener)
-Set listener for on connection established.
- |
-
void |
-setOnDisconnectedListener(OnDisconnect listener)
-Set listener for on connection is disconnected.
- |
-
void |
-setOnErrorListener(OnError listener)
-Set error listener.
- |
-
void |
-setOnTickerArrivalListener(OnTicks onTickerArrivalListener)
-Set listener for listening to ticks.
- |
-
void |
-setTryReconnection(boolean retry)
-Set tryReconnection, to instruct SmartAPITicker that it has to reconnect, if
- com.angelbroking.smartapi.ticker is disconnected.
- |
-
void |
-subscribe(java.lang.String script)
-Subscribes script.
- |
-
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic SmartAPITicker(java.lang.String clientId, - java.lang.String feedToken)-
public void doReconnect()-
public void setTryReconnection(boolean retry)-
retry - will denote whether reconnection should be tried or not.public void setOnErrorListener(OnError listener)-
listener - of type OnError which listens to all the type of errors that
- may arise in SmartAPITicker class.public void setMaximumRetries(int maxRetries) - throws SmartAPIException-
maxRetries - denotes maximum number of retries that the
- com.angelbroking.smartapi.ticker can perform.SmartAPIException - when maximum retries is less than 0.public void setMaximumRetryInterval(int interval) - throws SmartAPIException-
SmartAPIExceptionpublic void setOnTickerArrivalListener(OnTicks onTickerArrivalListener)-
onTickerArrivalListener - is listener which listens for each tick.public void setOnConnectedListener(OnConnect listener)-
listener - is used to listen to onConnected event.public void setOnDisconnectedListener(OnDisconnect listener)-
listener - is used to listen to onDisconnected event.public void connect()-
public com.neovisionaries.ws.client.WebSocketAdapter getWebsocketAdapter()-
public void disconnect()-
public boolean isConnectionOpen()-
public void subscribe(java.lang.String script)-
public static byte[] decompress(byte[] compressedTxt) - throws java.io.IOException-
java.io.IOException| Package | -Description | -
|---|---|
| com.angelbroking.smartapi.ticker | -- |
| Modifier and Type | -Method and Description | -
|---|---|
void |
-SmartAPITicker.setOnConnectedListener(OnConnect listener)
-Set listener for on connection established.
- |
-
| Package | -Description | -
|---|---|
| com.angelbroking.smartapi.ticker | -- |
| Modifier and Type | -Method and Description | -
|---|---|
void |
-SmartAPITicker.setOnDisconnectedListener(OnDisconnect listener)
-Set listener for on connection is disconnected.
- |
-
| Package | -Description | -
|---|---|
| com.angelbroking.smartapi.ticker | -- |
| Modifier and Type | -Method and Description | -
|---|---|
void |
-SmartAPITicker.setOnErrorListener(OnError listener)
-Set error listener.
- |
-
| Package | -Description | -
|---|---|
| com.angelbroking.smartapi.ticker | -- |
| Modifier and Type | -Method and Description | -
|---|---|
void |
-SmartAPITicker.setOnTickerArrivalListener(OnTicks onTickerArrivalListener)
-Set listener for listening to ticks.
- |
-
| Interface | -Description | -
|---|---|
| OnConnect | -- |
| OnDisconnect | -- |
| OnError | -- |
| OnTicks | -- |
| Class | -Description | -
|---|---|
| SmartAPITicker | -- |
| Package | -Description | -
|---|---|
| com.angelbroking.smartapi.ticker | -- |
| Class and Description | -
|---|
| OnConnect | -
| OnDisconnect | -
| OnError | -
| OnTicks | -
public class Constants
-extends java.lang.Object
-| Modifier and Type | -Field and Description | -
|---|---|
static java.lang.String |
-ACTIVE |
-
static java.lang.String |
-CANCELLED |
-
static java.lang.String |
-DELETED |
-
static java.lang.String |
-DISABLED |
-
static java.lang.String |
-EXCHANGE_BFO |
-
static java.lang.String |
-EXCHANGE_BSE |
-
static java.lang.String |
-EXCHANGE_CDS |
-
static java.lang.String |
-EXCHANGE_MCX |
-
static java.lang.String |
-EXCHANGE_NFO |
-
static java.lang.String |
-EXCHANGE_NSE
-Exchanges.
- |
-
static java.lang.String |
-EXPIRED |
-
static java.lang.String |
-INSTRUMENTS_SEGMENTS_COMMODITY |
-
static java.lang.String |
-INSTRUMENTS_SEGMENTS_CURRENCY |
-
static java.lang.String |
-INSTRUMENTS_SEGMENTS_EQUITY
-Instruments segments.
- |
-
static java.lang.String |
-INSTRUMENTS_SEGMENTS_FUTURES |
-
static java.lang.String |
-MARGIN_COMMODITY |
-
static java.lang.String |
-MARGIN_EQUITY
-Margin segments.
- |
-
static java.lang.String |
-OCO |
-
static java.lang.String |
-ORDER_TYPE_LIMIT |
-
static java.lang.String |
-ORDER_TYPE_MARKET
-Order types.
- |
-
static java.lang.String |
-ORDER_TYPE_SL |
-
static java.lang.String |
-ORDER_TYPE_SLM |
-
static java.lang.String |
-POSITION_DAY
-Position types.
- |
-
static java.lang.String |
-POSITION_OVERNIGHT |
-
static java.lang.String |
-PRODUCT_CNC |
-
static java.lang.String |
-PRODUCT_DELIVERY |
-
static java.lang.String |
-PRODUCT_INTRADAY |
-
static java.lang.String |
-PRODUCT_MIS
-Product types.
- |
-
static java.lang.String |
-PRODUCT_NRML |
-
static java.lang.String |
-REJECTED |
-
static java.lang.String |
-SINGLE |
-
static java.lang.String |
-TRANSACTION_TYPE_BUY
-Transaction types.
- |
-
static java.lang.String |
-TRANSACTION_TYPE_SELL |
-
static java.lang.String |
-TRIGGERED |
-
static java.lang.String |
-VALIDITY_DAY
-Validity types.
- |
-
static java.lang.String |
-VALIDITY_IOC |
-
static java.lang.String |
-VARIETY_AMO |
-
static java.lang.String |
-VARIETY_BO |
-
static java.lang.String |
-VARIETY_CO |
-
static java.lang.String |
-VARIETY_REGULAR
-Variety types.
- |
-
public static java.lang.String PRODUCT_MIS-
public static java.lang.String PRODUCT_CNC-
public static java.lang.String PRODUCT_NRML-
public static java.lang.String PRODUCT_DELIVERY-
public static java.lang.String PRODUCT_INTRADAY-
public static java.lang.String ORDER_TYPE_MARKET-
public static java.lang.String ORDER_TYPE_LIMIT-
public static java.lang.String ORDER_TYPE_SL-
public static java.lang.String ORDER_TYPE_SLM-
public static java.lang.String VARIETY_REGULAR-
public static java.lang.String VARIETY_BO-
public static java.lang.String VARIETY_CO-
public static java.lang.String VARIETY_AMO-
public static java.lang.String TRANSACTION_TYPE_BUY-
public static java.lang.String TRANSACTION_TYPE_SELL-
public static java.lang.String POSITION_DAY-
public static java.lang.String POSITION_OVERNIGHT-
public static java.lang.String VALIDITY_DAY-
public static java.lang.String VALIDITY_IOC-
public static java.lang.String EXCHANGE_NSE-
public static java.lang.String EXCHANGE_BSE-
public static java.lang.String EXCHANGE_NFO-
public static java.lang.String EXCHANGE_BFO-
public static java.lang.String EXCHANGE_MCX-
public static java.lang.String EXCHANGE_CDS-
public static java.lang.String MARGIN_EQUITY-
public static java.lang.String MARGIN_COMMODITY-
public static java.lang.String INSTRUMENTS_SEGMENTS_EQUITY-
public static java.lang.String INSTRUMENTS_SEGMENTS_COMMODITY-
public static java.lang.String INSTRUMENTS_SEGMENTS_FUTURES-
public static java.lang.String INSTRUMENTS_SEGMENTS_CURRENCY-
public static java.lang.String ACTIVE-
public static java.lang.String TRIGGERED-
public static java.lang.String DISABLED-
public static java.lang.String EXPIRED-
public static java.lang.String CANCELLED-
public static java.lang.String REJECTED-
public static java.lang.String DELETED-
public static java.lang.String OCO-
public static java.lang.String SINGLE-
public class NaiveSSLContext
-extends java.lang.Object
-SSLContext that naively accepts all
- certificates without verification.
-
-
- // Create an SSL context that naively accepts all certificates.
- SSLContext context = NaiveSSLContext.getInstance("TLS");
-
- // Create a socket factory from the SSL context.
- SSLSocketFactory factory = context.getSocketFactory();
-
- // Create a socket from the socket factory.
- SSLSocket socket = factory.createSocket("www.example.com", 443);
- | Modifier and Type | -Method and Description | -
|---|---|
static javax.net.ssl.SSLContext |
-getInstance(java.lang.String protocol)
-Get an SSLContext that implements the specified secure socket protocol and
- naively accepts all certificates without verification.
- |
-
static javax.net.ssl.SSLContext |
-getInstance(java.lang.String protocol,
- java.security.Provider provider)
-Get an SSLContext that implements the specified secure socket protocol and
- naively accepts all certificates without verification.
- |
-
static javax.net.ssl.SSLContext |
-getInstance(java.lang.String protocol,
- java.lang.String provider)
-Get an SSLContext that implements the specified secure socket protocol and
- naively accepts all certificates without verification.
- |
-
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic static javax.net.ssl.SSLContext getInstance(java.lang.String protocol) - throws java.security.NoSuchAlgorithmException-
java.security.NoSuchAlgorithmExceptionpublic static javax.net.ssl.SSLContext getInstance(java.lang.String protocol, - java.security.Provider provider) - throws java.security.NoSuchAlgorithmException-
java.security.NoSuchAlgorithmExceptionpublic static javax.net.ssl.SSLContext getInstance(java.lang.String protocol, - java.lang.String provider) - throws java.security.NoSuchAlgorithmException, - java.security.NoSuchProviderException-
java.security.NoSuchAlgorithmExceptionjava.security.NoSuchProviderException| Class | -Description | -
|---|---|
| Constants | -
- Contains all the Strings that are being used in the Smart API Connect library.
- |
-
| NaiveSSLContext | -
- A factory class which creates an
-SSLContext that naively accepts all
- certificates without verification. |
-
The Overview page is the front page of this API document and provides a list of all packages with a summary for each. This page can also contain an overall description of the set of packages.
-Each package has a page that contains a list of its classes and interfaces, with a summary for each. This page can contain six categories:
-Each class, interface, nested class and nested interface has its own separate page. Each of these pages has three sections consisting of a class/interface description, summary tables, and detailed member descriptions:
-Each summary entry contains the first sentence from the detailed description for that item. The summary entries are alphabetical, while the detailed descriptions are in the order they appear in the source code. This preserves the logical groupings established by the programmer.
-Each annotation type has its own separate page with the following sections:
-Each enum has its own separate page with the following sections:
-Each documented package, class and interface has its own Use page. This page describes what packages, classes, methods, constructors and fields use any part of the given class or package. Given a class or interface A, its Use page includes subclasses of A, fields declared as A, methods that return A, and methods and constructors with parameters of type A. You can access this page by first going to the package, class or interface, then clicking on the "Use" link in the navigation bar.
-There is a Class Hierarchy page for all packages, plus a hierarchy for each package. Each hierarchy page contains a list of classes and a list of interfaces. The classes are organized by inheritance structure starting with java.lang.Object. The interfaces do not inherit from java.lang.Object.
The Deprecated API page lists all of the API that have been deprecated. A deprecated API is not recommended for use, generally due to improvements, and a replacement API is usually given. Deprecated APIs may be removed in future implementations.
-The Index contains an alphabetic list of all classes, interfaces, constructors, methods, and fields.
-These links take you to the next or previous class, interface, package, or related page.
-These links show and hide the HTML frames. All pages are available with or without frames.
-The All Classes link shows all classes and interfaces except non-static nested types.
-Each serializable or externalizable class has a description of its serialization fields and methods. This information is of interest to re-implementors, not to developers using the API. While there is no link in the navigation bar, you can get to this information by going to any serialized class and clicking "Serialized Form" in the "See also" section of the class description.
-The Constant Field Values page lists the static final fields and their values.
-SSLContext that naively accepts all
- certificates without verification.- - diff --git a/doc/overview-summary.html b/doc/overview-summary.html deleted file mode 100644 index d3f331d..0000000 --- a/doc/overview-summary.html +++ /dev/null @@ -1,159 +0,0 @@ - - - - - -
| Package | -Description | -
|---|---|
| com.angelbroking.smartapi | -- |
| com.angelbroking.smartapi.http | -- |
| com.angelbroking.smartapi.http.exceptions | -- |
| com.angelbroking.smartapi.models | -- |
| com.angelbroking.smartapi.sample | -- |
| com.angelbroking.smartapi.ticker | -- |
| com.angelbroking.smartapi.utils | -- |
java.lang.String message-
java.lang.String code-