Title: Unexpected Behavior of Amount Parameter in Spot (in v6.57.0) · Issue #25 · gateio/gateapi-java · GitHub
Open Graph Title: Unexpected Behavior of Amount Parameter in Spot (in v6.57.0) · Issue #25 · gateio/gateapi-java
X Title: Unexpected Behavior of Amount Parameter in Spot (in v6.57.0) · Issue #25 · gateio/gateapi-java
Description: Problem Summary: When creating a create order(type=market) and specifying a certain amount in the amount parameter, the order seems to execute as a $15 USDT transaction instead of fulfilling the specified amount of 15 units. Reproduction...
Open Graph Description: Problem Summary: When creating a create order(type=market) and specifying a certain amount in the amount parameter, the order seems to execute as a $15 USDT transaction instead of fulfilling the sp...
X Description: Problem Summary: When creating a create order(type=market) and specifying a certain amount in the amount parameter, the order seems to execute as a $15 USDT transaction instead of fulfilling the sp...
Opengraph URL: https://github.com/gateio/gateapi-java/issues/25
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Unexpected Behavior of Amount Parameter in Spot (in v6.57.0) ","articleBody":"Problem Summary:\r\n\r\nWhen creating a create order(**type=market**) and specifying a certain amount in the **amount** parameter, the order seems to execute as a $15 USDT transaction instead of fulfilling the specified amount of 15 units.\r\n\r\n\r\nReproduction Steps:\r\n\r\nSent a request to create a market order with the following details:\r\n\r\n```\r\n{\r\n \"currencyPair\": \"RBN_USDT\",\r\n \"type\": \"market\",\r\n \"account\": \"spot\",\r\n \"side\": \"buy\",\r\n **\"amount\": 15,**\r\n \"price\": null,\r\n \"timeInForce\": \"fok\",\r\n \"iceberg\": 0,\r\n \"autoBorrow\": false\r\n}\r\n```\r\n\r\n\r\n```\r\nclass Order {\r\n text: apiv4\r\n amendText: -\r\n createTime: 1710584768\r\n updateTime: 1710584768\r\n createTimeMs: 1710584768511\r\n updateTimeMs: 1710584768511\r\n status: closed\r\n currencyPair: RBN_USDT\r\n type: market\r\n **account: spot**\r\n **side: buy**\r\n **amount: 15**\r\n price: 0\r\n timeInForce: fok\r\n iceberg: 0\r\n autoBorrow: null\r\n autoRepay: null\r\n left: 0.011427\r\n **fillPrice: 14.988573**\r\n filledTotal: 14.988573\r\n avgDealPrice: 1.47962222\r\n fee: 0\r\n feeCurrency: RBN\r\n pointFee: 0\r\n gtFee: 0.00185570777145296712\r\n gtMakerFee: 0\r\n gtTakerFee: 0.00087\r\n gtDiscount: true\r\n rebatedFee: 0\r\n rebatedFeeCurrency: USDT\r\n stpId: null\r\n stpAct: null\r\n finishAs: filled\r\n}\r\n```\r\n\r\nExpected Behavior:\r\nWhen creating a market order and specifying a certain amount, I expect the order to execute exactly as specified. For instance, if I request 15 units of RBN, I expect the order to fulfill 15 units of RBN.\r\n\r\nAdditional Information:\r\nIt appears that the API is executing the order as a $15 USDT transaction instead of fulfilling the specified amount. This behavior is unexpected and I would appreciate assistance in resolving this issue.\r\n\r\nThank you.","author":{"url":"https://github.com/mzgg","@type":"Person","name":"mzgg"},"datePublished":"2024-03-16T10:47:00.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/25/gateapi-java/issues/25"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:d9240b22-c062-802c-6711-5c995f055533 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A040:EB239:12F65A9:17F3EDF:699163A6 |
| html-safe-nonce | ec49367d1898085a843ac2bfccfa64c15d4da96b3eea1a17dce707df0b8662a2 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMDQwOkVCMjM5OjEyRjY1QTk6MTdGM0VERjo2OTkxNjNBNiIsInZpc2l0b3JfaWQiOiI3NTk4MzkyMzA2MzA4MzA5OTI2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | e8326f02e741872a5108bbbe22e2f6ab1f69ee95671376d6daf279dcfce55d43 |
| hovercard-subject-tag | issue:2189908149 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/gateio/gateapi-java/25/issue_layout |
| twitter:image | https://opengraph.githubassets.com/84ee7eb5be61dca39f5799a79f899f04712bbbde879a8e75e2ad33bc76522cc1/gateio/gateapi-java/issues/25 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/84ee7eb5be61dca39f5799a79f899f04712bbbde879a8e75e2ad33bc76522cc1/gateio/gateapi-java/issues/25 |
| og:image:alt | Problem Summary: When creating a create order(type=market) and specifying a certain amount in the amount parameter, the order seems to execute as a $15 USDT transaction instead of fulfilling the sp... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | mzgg |
| hostname | github.com |
| expected-hostname | github.com |
| None | 42c603b9d642c4a9065a51770f75e5e27132fef0e858607f5c9cb7e422831a7b |
| turbo-cache-control | no-preview |
| go-import | github.com/gateio/gateapi-java git https://github.com/gateio/gateapi-java.git |
| octolytics-dimension-user_id | 32661171 |
| octolytics-dimension-user_login | gateio |
| octolytics-dimension-repository_id | 163492710 |
| octolytics-dimension-repository_nwo | gateio/gateapi-java |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 163492710 |
| octolytics-dimension-repository_network_root_nwo | gateio/gateapi-java |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 848bc6032dcc93a9a7301dcc3f379a72ba13b96e |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width