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).

1  
lib 1400587 // BitGet Java SDK
2  
3  
import com.bitget.openapi.ws.*;
4  
import com.alibaba.fastjson.JSONObject;
5  
6  
static BitgetWsHandle.BitgetClientBuilder bitGetWSClientBuilder(BitGetCredentials cred) {
7  
  S PUSH_URL = "wss://ws.bitget.com/mix/v1/stream";
8  
9  
  ret BitgetWsHandle.builder()
10  
    .pushUrl(PUSH_URL)
11  
    .apiKey(cred.apiKey())
12  
    .secretKey(cred.secretKey())
13  
    .passPhrase(cred.passphrase())
14  
    .isLogin(true);
15  
}

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: 134 / 216
Version history: 5 change(s)
Referenced in: [show references]