mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-05-17 23:16:52 +00:00
bithumb: Add websocket support (#745)
* bithumb: Add websocket support (WIP) * bithumb: cont impl. * bithumb: finish, issues with orderbook needs review * linter issues * bithumb: move to separate file * bithumb: change to pointer for book * bithumb: Add tests * bithumb: Address nits * websocket: Export subscription error and wrap returns * bithumb: cleanup/ fix tests * gctrpc/bithumb: fix misspelling * bithumb: gofmt * readme: update support table, regen doc * tradesReadme: update * readme: update template
This commit is contained in:
3745
gctrpc/rpc.pb.go
3745
gctrpc/rpc.pb.go
File diff suppressed because it is too large
Load Diff
@@ -61,7 +61,7 @@ message GetExchangesResponse {
|
||||
string exchanges = 1;
|
||||
}
|
||||
|
||||
message GetExchangeOTPReponse {
|
||||
message GetExchangeOTPResponse {
|
||||
string otp_code = 1;
|
||||
}
|
||||
|
||||
@@ -1016,7 +1016,7 @@ service GoCryptoTrader {
|
||||
};
|
||||
}
|
||||
|
||||
rpc GetExchangeOTPCode (GenericExchangeNameRequest) returns (GetExchangeOTPReponse) {
|
||||
rpc GetExchangeOTPCode (GenericExchangeNameRequest) returns (GetExchangeOTPResponse) {
|
||||
option (google.api.http) = {
|
||||
get: "/v1/getexchangeotp"
|
||||
};
|
||||
|
||||
@@ -1285,7 +1285,7 @@
|
||||
"200": {
|
||||
"description": "A successful response.",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/gctrpcGetExchangeOTPReponse"
|
||||
"$ref": "#/definitions/gctrpcGetExchangeOTPResponse"
|
||||
}
|
||||
},
|
||||
"default": {
|
||||
@@ -3793,7 +3793,7 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"gctrpcGetExchangeOTPReponse": {
|
||||
"gctrpcGetExchangeOTPResponse": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"otpCode": {
|
||||
|
||||
@@ -27,7 +27,7 @@ type GoCryptoTraderClient interface {
|
||||
GetExchanges(ctx context.Context, in *GetExchangesRequest, opts ...grpc.CallOption) (*GetExchangesResponse, error)
|
||||
DisableExchange(ctx context.Context, in *GenericExchangeNameRequest, opts ...grpc.CallOption) (*GenericResponse, error)
|
||||
GetExchangeInfo(ctx context.Context, in *GenericExchangeNameRequest, opts ...grpc.CallOption) (*GetExchangeInfoResponse, error)
|
||||
GetExchangeOTPCode(ctx context.Context, in *GenericExchangeNameRequest, opts ...grpc.CallOption) (*GetExchangeOTPReponse, error)
|
||||
GetExchangeOTPCode(ctx context.Context, in *GenericExchangeNameRequest, opts ...grpc.CallOption) (*GetExchangeOTPResponse, error)
|
||||
GetExchangeOTPCodes(ctx context.Context, in *GetExchangeOTPsRequest, opts ...grpc.CallOption) (*GetExchangeOTPsResponse, error)
|
||||
EnableExchange(ctx context.Context, in *GenericExchangeNameRequest, opts ...grpc.CallOption) (*GenericResponse, error)
|
||||
GetTicker(ctx context.Context, in *GetTickerRequest, opts ...grpc.CallOption) (*TickerResponse, error)
|
||||
@@ -197,8 +197,8 @@ func (c *goCryptoTraderClient) GetExchangeInfo(ctx context.Context, in *GenericE
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *goCryptoTraderClient) GetExchangeOTPCode(ctx context.Context, in *GenericExchangeNameRequest, opts ...grpc.CallOption) (*GetExchangeOTPReponse, error) {
|
||||
out := new(GetExchangeOTPReponse)
|
||||
func (c *goCryptoTraderClient) GetExchangeOTPCode(ctx context.Context, in *GenericExchangeNameRequest, opts ...grpc.CallOption) (*GetExchangeOTPResponse, error) {
|
||||
out := new(GetExchangeOTPResponse)
|
||||
err := c.cc.Invoke(ctx, "/gctrpc.GoCryptoTrader/GetExchangeOTPCode", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
@@ -1059,7 +1059,7 @@ type GoCryptoTraderServer interface {
|
||||
GetExchanges(context.Context, *GetExchangesRequest) (*GetExchangesResponse, error)
|
||||
DisableExchange(context.Context, *GenericExchangeNameRequest) (*GenericResponse, error)
|
||||
GetExchangeInfo(context.Context, *GenericExchangeNameRequest) (*GetExchangeInfoResponse, error)
|
||||
GetExchangeOTPCode(context.Context, *GenericExchangeNameRequest) (*GetExchangeOTPReponse, error)
|
||||
GetExchangeOTPCode(context.Context, *GenericExchangeNameRequest) (*GetExchangeOTPResponse, error)
|
||||
GetExchangeOTPCodes(context.Context, *GetExchangeOTPsRequest) (*GetExchangeOTPsResponse, error)
|
||||
EnableExchange(context.Context, *GenericExchangeNameRequest) (*GenericResponse, error)
|
||||
GetTicker(context.Context, *GetTickerRequest) (*TickerResponse, error)
|
||||
@@ -1172,7 +1172,7 @@ func (UnimplementedGoCryptoTraderServer) DisableExchange(context.Context, *Gener
|
||||
func (UnimplementedGoCryptoTraderServer) GetExchangeInfo(context.Context, *GenericExchangeNameRequest) (*GetExchangeInfoResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method GetExchangeInfo not implemented")
|
||||
}
|
||||
func (UnimplementedGoCryptoTraderServer) GetExchangeOTPCode(context.Context, *GenericExchangeNameRequest) (*GetExchangeOTPReponse, error) {
|
||||
func (UnimplementedGoCryptoTraderServer) GetExchangeOTPCode(context.Context, *GenericExchangeNameRequest) (*GetExchangeOTPResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method GetExchangeOTPCode not implemented")
|
||||
}
|
||||
func (UnimplementedGoCryptoTraderServer) GetExchangeOTPCodes(context.Context, *GetExchangeOTPsRequest) (*GetExchangeOTPsResponse, error) {
|
||||
|
||||
Reference in New Issue
Block a user