CCXT币安订单费用详情

CCXT Binance Order fees details

提问人:Julien 提问时间:11/5/2023 更新时间:11/5/2023 访问量:28

问:

我正在使用 CCXT 在 Binance 上下达买单,现在正在玩测试网,但不幸的是,测试网不包括任何费用,所以我试图弄清楚它们在生产中是如何工作的。

以测试网购买价值 100 USDT 的 BTC 为例:

[
  {
    info: {
      e: 'executionReport',
      E: 1699055641074,
      s: 'BTCUSDT',
      c: '42731e90-7aa4-11ee-abd2-67e2b7c88c42',
      S: 'BUY',
      o: 'MARKET',
      f: 'GTC',
      q: '0.00287000',
      p: '0.00000000',
      P: '0.00000000',
      F: '0.00000000',
      g: -1,
      C: '',
      x: 'TRADE',
      X: 'FILLED',
      r: 'NONE',
      i: 723414,
      l: '0.00287000',
      z: '0.00287000',
      L: '34760.45000000',
      n: '0.00000000',
      N: 'BTC',
      T: 1699055641074,
      t: 251825,
      I: 1696629,
      w: false,
      m: false,
      M: true,
      O: 1699055641074,
      Z: '99.76249150',
      Y: '99.76249150',
      Q: '100.00000000',
      W: 1699055641074,
      V: 'NONE'
    },
    symbol: 'BTC/USDT',
    id: '723414',
    clientOrderId: '42731e90-7aa4-11ee-abd2-67e2b7c88c42',
    timestamp: 1699055641074,
    datetime: '2023-11-03T23:54:01.074Z',
    lastTradeTimestamp: 1699055641074,
    lastUpdateTimestamp: 1699055641074,
    type: 'market',
    timeInForce: 'GTC',
    postOnly: false,
    reduceOnly: undefined,
    side: 'buy',
    price: 34760.45,
    stopPrice: 0,
    triggerPrice: 0,
    amount: 0.00287,
    cost: 99.7624915,
    average: 34760.45,
    filled: 0.00287,
    remaining: 0,
    status: 'closed',
    fee: { cost: 0, currency: 'BTC' },
    trades: [
      {
        info: {
          e: 'executionReport',
          E: 1699055641074,
          s: 'BTCUSDT',
          c: '42731e90-7aa4-11ee-abd2-67e2b7c88c42',
          S: 'BUY',
          o: 'MARKET',
          f: 'GTC',
          q: '0.00287000',
          p: '0.00000000',
          P: '0.00000000',
          F: '0.00000000',
          g: -1,
          C: '',
          x: 'TRADE',
          X: 'FILLED',
          r: 'NONE',
          i: 723414,
          l: '0.00287000',
          z: '0.00287000',
          L: '34760.45000000',
          n: '0.00000000',
          N: 'BTC',
          T: 1699055641074,
          t: 251825,
          I: 1696629,
          w: false,
          m: false,
          M: true,
          O: 1699055641074,
          Z: '99.76249150',
          Y: '99.76249150',
          Q: '100.00000000',
          W: 1699055641074,
          V: 'NONE'
        },
        timestamp: 1699055641074,
        datetime: '2023-11-03T23:54:01.074Z',
        symbol: 'BTC/USDT',
        id: '251825',
        order: '723414',
        type: 'market',
        takerOrMaker: 'taker',
        side: 'buy',
        price: 34760.45,
        amount: 0.00287,
        cost: 99.7624915,
        fee: { cost: 0, currency: 'BTC' },
        fees: [ { cost: 0, currency: 'BTC' } ]
      }
    ],
    fees: [],
    takeProfitPrice: undefined,
    stopLossPrice: undefined
  }
]

你可以看到我投资的资金是USDT,然后我们看到我们为这项投资获得了BTC,而且它的价格为。但是费用的细节是空的,因为如上所述,测试网不包括这些。info.Q100.00amount0.00287cost99.7624915price34760.45

现在我试图了解的是生产网络,我已经得到的 Binance 会向我收取从中扣除的订单的任何费用,还是记入我余额的最终金额是?amountamount - fee.cost

币安 加密货币 CCXT

评论


答: 暂无答案