mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-06-06 07:26:47 +00:00
Implementation of Exchange GetOrder through GRPC for Coinbase (#453)
* fix 440: SubmitOrder and CB-ACCESS-TIMESTAMP value * removed gctcli executable and added it to gitignore * implemented GetOrderInfo * getOrder also has trades attached to an order * getOrder also has trades attached to an order * fix 440: SubmitOrder and CB-ACCESS-TIMESTAMP value * removed gctcli executable and added it to gitignore * fix 440: SubmitOrder and CB-ACCESS-TIMESTAMP value * removed gctcli executable and added it to gitignore * minor * go lint fixes * removed clutter * fixed Amount, Executed Amount, Remaining Amount * removed default value declarations * removed useless nil chceck * iteration rewritten go style from java style * returning error if GetFills fails * returning error if GetOrderInfo fails * ExecutedAmont value is FilledSize * added TODO to fix asset type * chnages after merging #446 * range without copy value, using index * removed useless slice initialisation * couple of nits from code review * fix indentation * Update rpc.proto Fixes indentation Co-authored-by: Adrian Gallagher <thrasher@addictionsoftware.com>
This commit is contained in:
1017
gctrpc/rpc.pb.go
1017
gctrpc/rpc.pb.go
File diff suppressed because it is too large
Load Diff
@@ -301,6 +301,19 @@ message OrderDetails {
|
||||
double price = 10;
|
||||
double amount = 11;
|
||||
double open_volume = 12;
|
||||
double fee = 13;
|
||||
repeated TradeHistory trades = 14;
|
||||
}
|
||||
|
||||
message TradeHistory {
|
||||
int64 creation_time = 1;
|
||||
string id = 2;
|
||||
double price = 3;
|
||||
double amount = 4;
|
||||
string exchange = 5;
|
||||
string asset_type = 6;
|
||||
string order_side = 7;
|
||||
double fee = 8;
|
||||
}
|
||||
|
||||
message GetOrdersRequest {
|
||||
|
||||
@@ -2952,6 +2952,16 @@
|
||||
"open_volume": {
|
||||
"type": "number",
|
||||
"format": "double"
|
||||
},
|
||||
"fee": {
|
||||
"type": "number",
|
||||
"format": "double"
|
||||
},
|
||||
"trades": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/definitions/gctrpcTradeHistory"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -3242,6 +3252,39 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"gctrpcTradeHistory": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"creation_time": {
|
||||
"type": "string",
|
||||
"format": "int64"
|
||||
},
|
||||
"id": {
|
||||
"type": "string"
|
||||
},
|
||||
"price": {
|
||||
"type": "number",
|
||||
"format": "double"
|
||||
},
|
||||
"amount": {
|
||||
"type": "number",
|
||||
"format": "double"
|
||||
},
|
||||
"exchange": {
|
||||
"type": "string"
|
||||
},
|
||||
"asset_type": {
|
||||
"type": "string"
|
||||
},
|
||||
"order_side": {
|
||||
"type": "string"
|
||||
},
|
||||
"fee": {
|
||||
"type": "number",
|
||||
"format": "double"
|
||||
}
|
||||
}
|
||||
},
|
||||
"gctrpcWhaleBombRequest": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
|
||||
Reference in New Issue
Block a user