Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

15
LINES

< > BotCompany Repo | #1036025 // bitGetWSClientBuilder

JavaX fragment (include) [tags: use-pretranspiled]

Uses 15070K of libraries. Click here for Pure Java version (65L/1K).

lib 1400587 // BitGet Java SDK

import com.bitget.openapi.ws.*;
import com.alibaba.fastjson.JSONObject;

static BitgetWsHandle.BitgetClientBuilder bitGetWSClientBuilder(BitGetCredentials cred) {
  S PUSH_URL = "wss://ws.bitget.com/mix/v1/stream";

  ret BitgetWsHandle.builder()
    .pushUrl(PUSH_URL)
    .apiKey(cred.apiKey())
    .secretKey(cred.secretKey())
    .passPhrase(cred.passphrase())
    .isLogin(true);
}

download  show line numbers  debug dex  old transpilations   

Travelled to 3 computer(s): elmgxqgtpvxh, mqqgnosmbjvj, wnsclhtenguj

No comments. add comment

Snippet ID: #1036025
Snippet name: bitGetWSClientBuilder
Eternal ID of this version: #1036025/6
Text MD5: 3b5d2ac04b5e64a38196e49c737ead86
Transpilation MD5: c8a3bd7ca9b1fe1467b802d424c1a092
Author: stefan
Category: javax / networking
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-09-01 16:21:56
Source code size: 432 bytes / 15 lines
Pitched / IR pitched: No / No
Views / Downloads: 68 / 105
Version history: 5 change(s)
Referenced in: [show references]