@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)
| 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 | { |
no test coverage detected