-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4975 from bigscoop/gateio_open-orders
[gateio] Implement getting of open orders
- Loading branch information
Showing
9 changed files
with
145 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
xchange-gateio-v4/src/test/resources/__files/api_v4_spot_orders-open-limit-order.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
{ | ||
"id": "745504484392", | ||
"text": "web", | ||
"amend_text": "-", | ||
"create_time": "1733442414", | ||
"update_time": "1733442414", | ||
"create_time_ms": 1733442414447, | ||
"update_time_ms": 1733442414447, | ||
"status": "open", | ||
"currency_pair": "BTC_USDT", | ||
"type": "limit", | ||
"account": "spot", | ||
"side": "buy", | ||
"amount": "0.00012", | ||
"price": "80000", | ||
"time_in_force": "gtc", | ||
"iceberg": "0", | ||
"left": "0.00012", | ||
"filled_amount": "0", | ||
"fill_price": "0", | ||
"filled_total": "0", | ||
"fee": "0", | ||
"fee_currency": "BTC", | ||
"point_fee": "0", | ||
"gt_fee": "0", | ||
"gt_maker_fee": "0", | ||
"gt_taker_fee": "0", | ||
"gt_discount": false, | ||
"rebated_fee": "0", | ||
"rebated_fee_currency": "USDT", | ||
"finish_as": "open" | ||
} |
20 changes: 10 additions & 10 deletions
20
.../__files/api_v4_spot_orders-btc-open.json → ...resources/__files/api_v4_spot_orders.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
xchange-gateio-v4/src/test/resources/mappings/api_v4_spot_orders-open-limit-order.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"id" : "f8252706-fe0c-4407-b415-02ae3999fc40", | ||
"name" : "api_v4_spot_orders_745504484392", | ||
"request" : { | ||
"url" : "/api/v4/spot/orders/745504484392?currency_pair=BTC_USDT", | ||
"method" : "GET" | ||
}, | ||
"response" : { | ||
"status" : 200, | ||
"bodyFileName" : "api_v4_spot_orders-open-limit-order.json" | ||
}, | ||
"uuid" : "f8252706-fe0c-4407-b415-02ae3999fc40", | ||
"persistent" : true, | ||
"insertionIndex" : 38 | ||
} |
8 changes: 4 additions & 4 deletions
8
...mappings/api_v4_spot_orders-btc-open.json → ...esources/mappings/api_v4_spot_orders.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
{ | ||
"id" : "8597ffe9-f28d-40d6-9a47-5f378dd53515", | ||
"id" : "703035f1-28e6-4e58-8af5-7a486fe294bb", | ||
"name" : "api_v4_spot_orders", | ||
"request" : { | ||
"url" : "/api/v4/spot/orders?currency_pair=BTC_USDT&status=open", | ||
"method" : "GET" | ||
}, | ||
"response" : { | ||
"status" : 200, | ||
"bodyFileName" : "api_v4_spot_orders-btc-open.json" | ||
"bodyFileName" : "api_v4_spot_orders.json" | ||
}, | ||
"uuid" : "8597ffe9-f28d-40d6-9a47-5f378dd53515", | ||
"uuid" : "703035f1-28e6-4e58-8af5-7a486fe294bb", | ||
"persistent" : true, | ||
"insertionIndex" : 16 | ||
"insertionIndex" : 37 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters