Is there a way to get a trade history report from the Bitfinex API?

0 votes

I'm using Bitfinex's WebSockets API v2 via their Node.JS package. I am not able to get a report on my trade history through the API. When I authenticate like below:

const BFX = require('bitfinex-api-node')

const bitfinexClient = new BFX(API_KEY, API_SECRET, {
  version: 2,
  transform: true

bitfinexClient.on('open', () => {
  bws .auth()

The following code delivers nothing:

bitfinexClient.on('auth', () => {
  bitfinexClient.on('te', (data) => {

Both v1 and v2 of the API return an error saying that fetchMyTrades/fetchMyOrders is not supported yet. How do I get it done?

Aug 29, 2018 in Blockchain by sabby
• 4,050 points

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
0 votes

You can still fetch your private trades from Bitfinex v1 with CCXT, like here:

"use strict";

const ccxt = require ('ccxt')

const exchange = new ccxt.bitfinex ({
    'apiKey': 'YOUR_API_KEY', // ←---- change your credentials
    'secret': 'YOUR_SECRET',

(async () => {
    await exchange.loadMarkets ()
    const myTrades = await exchange.private_post_mytrades ({
        'symbol':['BTC/USD'].id, // ←-- choose your pair
        'timestamp': exchange.seconds () - 86400 * 365, // ← last 365 days
    console.log (myTrades)
}) ()
answered Aug 29, 2018 by Perry
• 16,450 points

Related Questions In Blockchain

+1 vote
1 answer

How does a miner get to know that a transaction is verified by all the nodes?

Contrary to the popular belief, it is ...READ MORE

answered Mar 26, 2018 in Blockchain by Johnathon
• 9,050 points
+1 vote
1 answer

I would like to create a blockchain network which will stay at the same level of complexity, is it possible?

You can very easily create a cryptocurrency having a ...READ MORE

answered Apr 4, 2018 in Blockchain by Christine
• 15,790 points
0 votes
1 answer

In a Blockchain, how difficult is it to modify the third to last block?

Technically, it's not difficult at all, all ...READ MORE

answered Apr 20, 2018 in Blockchain by Christine
• 15,790 points
0 votes
1 answer

How to send Bitcoins with node.js?

This website will successfully do the bitcoin transaction. You ...READ MORE

answered Jul 20, 2018 in Blockchain by Christine
• 15,790 points
0 votes
1 answer api_code is missing

Check the blockchain api. it should be $Blockchain ...READ MORE

answered Aug 22, 2018 in Blockchain by slayer
• 29,040 points
0 votes
1 answer
0 votes
1 answer

Is there a way to send funds from a specific bitcoin address in a wallet?

I'll answer my own question, It was unbelievably ...READ MORE

answered Sep 3, 2018 in Blockchain by Perry
• 16,450 points
+1 vote
1 answer

What is the best way to search for an item in blockchain?

All transactions and records in blockchain are ...READ MORE

answered Apr 20, 2018 in Blockchain by Perry
• 16,450 points

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.