Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Unexpected Behavior of Amount Parameter in Spot (in v6.57.0)  #25

Copy link
Copy link
@mzgg

Description

@mzgg
Issue body actions

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 Steps:

Sent a request to create a market order with the following details:

{
  "currencyPair": "RBN_USDT",
  "type": "market",
  "account": "spot",
  "side": "buy",
  **"amount": 15,**
  "price": null,
  "timeInForce": "fok",
  "iceberg": 0,
  "autoBorrow": false
}
class Order {
      text: apiv4
      amendText: -
      createTime: 1710584768
      updateTime: 1710584768
      createTimeMs: 1710584768511
      updateTimeMs: 1710584768511
      status: closed
      currencyPair: RBN_USDT
      type: market
      **account: spot**
      **side: buy**
      **amount: 15**
      price: 0
      timeInForce: fok
      iceberg: 0
      autoBorrow: null
      autoRepay: null
      left: 0.011427
      **fillPrice: 14.988573**
      filledTotal: 14.988573
      avgDealPrice: 1.47962222
      fee: 0
      feeCurrency: RBN
      pointFee: 0
      gtFee: 0.00185570777145296712
      gtMakerFee: 0
      gtTakerFee: 0.00087
      gtDiscount: true
      rebatedFee: 0
      rebatedFeeCurrency: USDT
      stpId: null
      stpAct: null
      finishAs: filled
}

Expected Behavior:
When 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.

Additional Information:
It 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.

Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.