MCPcopy Index your code
hub / github.com/ccxt/ccxt / signIn

Method signIn

java/lib/src/main/java/io/github/ccxt/exchanges/AsterCore.java:4893–4915  ·  view source on GitHub ↗

@method @name aster#signIn @description sign in, must be called prior to using other authenticated methods @see https://asterdex.github.io/aster-api-website/asterCode/integration-flow/ @param {object} [params] extra parameters specific to the exchange API endpoint @returns response from exchange

(Object... optionalArgs)

Source from the content-addressed store, hash-verified

4891 * @returns response from exchange
4892 */
4893 public java.util.concurrent.CompletableFuture<Object> signIn(Object... optionalArgs)
4894 {
4895
4896 return java.util.concurrent.CompletableFuture.supplyAsync(() -> {
4897
4898 Object parameters = Helpers.getArg(optionalArgs, 0, new java.util.HashMap<String, Object>() {{}});
4899 if (Helpers.isTrue(this.isEmptyString(this.privateKey)))
4900 {
4901 if (Helpers.isTrue(!Helpers.isTrue(this.isEmptyString(this.apiKey)) || !Helpers.isTrue(this.isEmptyString(this.secret))))
4902 {
4903 throw new NotSupported((String)Helpers.add(this.id, "after the latest upgrade (v4.5.52), CCXT now expects the l1 private key to be provided in the credentials.")) ;
4904 }
4905 return false;
4906 }
4907 if (Helpers.isTrue(Helpers.isGreaterThan(((String)this.privateKey).length(), 66)))
4908 {
4909 throw new NotSupported((String)Helpers.add(this.id, " after the latest update (v4.5.52), CCXT now expects the l1 private key to be provided in the credentials.")) ;
4910 }
4911 (this.initializeClient(parameters)).join();
4912 return true;
4913 });
4914
4915 }
4916
4917 public java.util.concurrent.CompletableFuture<Object> initializeClient(Object... optionalArgs)
4918 {

Callers 2

fetchMarketsMethod · 0.95
loadMarketsAndSignInMethod · 0.95

Calls 7

getArgMethod · 0.95
isTrueMethod · 0.95
addMethod · 0.95
isGreaterThanMethod · 0.95
initializeClientMethod · 0.95
isEmptyStringMethod · 0.45
lengthMethod · 0.45

Tested by

no test coverage detected