Class GateioStreamingAuthHelper

java.lang.Object
info.bitrich.xchangestream.gateio.GateioStreamingAuthHelper

public class GateioStreamingAuthHelper extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    sign(String channel, String event, String timestamp)
    Generates signature based on payload Signature string concatenation method: channel=invalid input: '&event'=invalid input: '&time'=
    signUserTrade(String channel, String event, String timestamp, String req_param)
    Generates signature based on payload for userTrade service Signature string concatenation method: "\n\n\n", where , ,, are corresponding request information req_param in login channel always empty string Authentication information are sent in request body in field payload.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • GateioStreamingAuthHelper

      public GateioStreamingAuthHelper(String apiSecret)
  • Method Details

    • sign

      public String sign(String channel, String event, String timestamp)
      Generates signature based on payload Signature string concatenation method: channel=invalid input: '&event'=invalid input: '&time'=
    • signUserTrade

      public String signUserTrade(String channel, String event, String timestamp, String req_param)
      Generates signature based on payload for userTrade service Signature string concatenation method: "\n\n\n", where , ,, are corresponding request information req_param in login channel always empty string Authentication information are sent in request body in field payload.