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:
Adrian Gallagher
2020-03-05 10:19:58 +11:00
committed by GitHub
parent 97b71dd9bd
commit 3fae5a0924
7 changed files with 722 additions and 453 deletions

View File

@@ -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": {