Bitcoin Forum
June 17, 2024, 06:29:10 AM *
News: Voting for pizza day contest
 
  Home Help Search Login Register More  
  Show Posts
Pages: « 1 [2] 3 4 5 6 7 »
21  Bitcoin / Project Development / Re: Need help making my first volume monitor bot on: November 06, 2017, 12:13:12 AM
Hello,

I'm developing also a trading bot but with Node JS.
There is an node.bittrex.api and it's simple to use it but there isn't many doncumentations about that.
22  Economy / Exchanges / Re: Informations given par Bittrex API on: November 02, 2017, 09:55:26 AM
- Volume should represent how many LTC (in this case) has been traded in the last 24 hours
- Base volume is more like the first pair (In this case BTC as Its BTC/LTC). It's the total value traded (doesn't matter If it's a buy or sell order).
- How many buy/sell orders are available
- The price in BTC (for this case) of the previous day (I believe its needed to calculate the last 24 hours % changes)

Thank you for these informations. So, for example, tradingview use the property "volume" to draw the bellow volume indicator ?

23  Economy / Exchanges / Informations given par Bittrex API on: November 01, 2017, 03:41:30 PM
Hi all,

Could you please explain the following informations given by this web service for example :
- Volume
- BaseVolume
- OpenBuyOrders
- OpenSellOrders
- PrevDay

Many thanks  Wink
24  Local / Développement et technique / Informations données par l'API Bittrex on: November 01, 2017, 09:24:09 AM
Bonjour à tous,

Je me suis fait un fichier excel pour suivre mon portefeuille ainsi que mes trades en utilisant l'api Bittrex.
Je souhaiterais ajouter des informations dans mon fichier et j'ai des doutes sur la signification de certaines données.
Pouvez-vous m'expliquer la signification des données suivantes :
- Volume
- BaseVolume
- OpenBuyOrders
- OpenSellOrders
- PrevDay

Merci par avance  Smiley
25  Local / Développement et technique / Re: Outils pour analyser les courbes des cours de la bourse on: November 01, 2017, 09:06:18 AM
Le top du top, c'est Metatrader:
https://www.metatrader4.com/fr


Combien ca coute ?
26  Local / Altcoins (Français) / Re: BTC / BTC GOLD on: October 24, 2017, 06:35:58 AM
Sur Bittrex, si on achete des altcoins maintenant avec les BTC, on aura quand même les BTG après le fork (Je les ai mis avant le 23 octobre dessus) ?
27  Local / Développement et technique / Re: feuille excel d'evaluation de richesse crypto on: September 23, 2017, 09:46:39 AM
@holepauvre,

Tu nous donnerais pas le bout de code qui permet d'intégrer le json dans excel par hasard ?


Code:
/**
 * Retrieves all the rows in the active spreadsheet that contain data and logs the
 * values for each row.
 * For more information on using the Spreadsheet API, see
 * https://developers.google.com/apps-script/service_spreadsheet
 */
function readRows() {
  var sheet = SpreadsheetApp.getActiveSheet();
  var rows = sheet.getDataRange();
  var numRows = rows.getNumRows();
  var values = rows.getValues();

  for (var i = 0; i <= numRows - 1; i++) {
    var row = values[i];
    Logger.log(row);
  }
};

/**
 * Adds a custom menu to the active spreadsheet, containing a single menu item
 * for invoking the readRows() function specified above.
 * The onOpen() function, when defined, is automatically invoked whenever the
 * spreadsheet is opened.
 * For more information on using the Spreadsheet API, see
 * https://developers.google.com/apps-script/service_spreadsheet
 */
function onOpen() {
  var sheet = SpreadsheetApp.getActiveSpreadsheet();
  var entries = [{
    name : "Read Data",
    functionName : "readRows"
  }];
  sheet.addMenu("Script Center Menu", entries);
};

/*====================================================================================================================================*
  ImportJSON by Trevor Lohrbeer (@FastFedora)
  ====================================================================================================================================
  Version:      1.1
  Project Page: http://blog.fastfedora.com/projects/import-json
  Copyright:    (c) 2012 by Trevor Lohrbeer
  License:      GNU General Public License, version 3 (GPL-3.0)
                http://www.opensource.org/licenses/gpl-3.0.html
  ------------------------------------------------------------------------------------------------------------------------------------
  A library for importing JSON feeds into Google spreadsheets. Functions include:
     ImportJSON            For use by end users to import a JSON feed from a URL
     ImportJSONAdvanced    For use by script developers to easily extend the functionality of this library
  Future enhancements may include:
   - Support for a real XPath like syntax similar to ImportXML for the query parameter
   - Support for OAuth authenticated APIs
  Or feel free to write these and add on to the library yourself!
  ------------------------------------------------------------------------------------------------------------------------------------
  Changelog:
  
  1.1    Added support for the noHeaders option
  1.0    Initial release
 *====================================================================================================================================*/
/**
 * Imports a JSON feed and returns the results to be inserted into a Google Spreadsheet. The JSON feed is flattened to create
 * a two-dimensional array. The first row contains the headers, with each column header indicating the path to that data in
 * the JSON feed. The remaining rows contain the data.
 *
 * By default, data gets transformed so it looks more like a normal data import. Specifically:
 *
 *   - Data from parent JSON elements gets inherited to their child elements, so rows representing child elements contain the values
 *      of the rows representing their parent elements.
 *   - Values longer than 256 characters get truncated.
 *   - Headers have slashes converted to spaces, common prefixes removed and the resulting text converted to title case.
 *
 * To change this behavior, pass in one of these values in the options parameter:
 *
 *    noInherit:     Don't inherit values from parent elements
 *    noTruncate:    Don't truncate values
 *    rawHeaders:    Don't prettify headers
 *    noHeaders:     Don't include headers, only the data
 *    debugLocation: Prepend each value with the row & column it belongs in
 *
 * For example:
 *
 *   =ImportJSON("http://gdata.youtube.com/feeds/api/standardfeeds/most_popular?v=2&alt=json", "/feed/entry/title,/feed/entry/content",
 *               "noInherit,noTruncate,rawHeaders")
 *
 * @param {url} the URL to a public JSON feed
 * @param {query} a comma-separated lists of paths to import. Any path starting with one of these paths gets imported.
 * @param {options} a comma-separated list of options that alter processing of the data
 *
 * @return a two-dimensional array containing the data, with the first row containing headers
 * @customfunction
 **/
function ImportJSON(url, query, options) {
  return ImportJSONAdvanced(url, query, options, includeXPath_, defaultTransform_);
}

/**
 * An advanced version of ImportJSON designed to be easily extended by a script. This version cannot be called from within a
 * spreadsheet.
 *
 * Imports a JSON feed and returns the results to be inserted into a Google Spreadsheet. The JSON feed is flattened to create
 * a two-dimensional array. The first row contains the headers, with each column header indicating the path to that data in
 * the JSON feed. The remaining rows contain the data.
 *
 * Use the include and transformation functions to determine what to include in the import and how to transform the data after it is
 * imported.
 *
 * For example:
 *
 *   =ImportJSON("http://gdata.youtube.com/feeds/api/standardfeeds/most_popular?v=2&alt=json",
 *               "/feed/entry",
 *                function (query, path) { return path.indexOf(query) == 0; },
 *                function (data, row, column) { data[row][column] = data[row][column].toString().substr(0, 100); } )
 *
 * In this example, the import function checks to see if the path to the data being imported starts with the query. The transform
 * function takes the data and truncates it. For more robust versions of these functions, see the internal code of this library.
 *
 * @param {url}           the URL to a public JSON feed
 * @param {query}         the query passed to the include function
 * @param {options}       a comma-separated list of options that may alter processing of the data
 * @param {includeFunc}   a function with the signature func(query, path, options) that returns true if the data element at the given path
 *                        should be included or false otherwise.
 * @param {transformFunc} a function with the signature func(data, row, column, options) where data is a 2-dimensional array of the data
 *                        and row & column are the current row and column being processed. Any return value is ignored. Note that row 0
 *                        contains the headers for the data, so test for row==0 to process headers only.
 *
 * @return a two-dimensional array containing the data, with the first row containing headers
 **/
function ImportJSONAdvanced(url, query, options, includeFunc, transformFunc) {
  var jsondata = UrlFetchApp.fetch(url);
  var object   = JSON.parse(jsondata.getContentText());
  
  return parseJSONObject_(object, query, options, includeFunc, transformFunc);
}

/**
 * Encodes the given value to use within a URL.
 *
 * @param {value} the value to be encoded
 *
 * @return the value encoded using URL percent-encoding
 */
function URLEncode(value) {
  return encodeURIComponent(value.toString());  
}

/**
 * Parses a JSON object and returns a two-dimensional array containing the data of that object.
 */
function parseJSONObject_(object, query, options, includeFunc, transformFunc) {
  var headers = new Array();
  var data    = new Array();
  
  if (query && !Array.isArray(query) && query.toString().indexOf(",") != -1) {
    query = query.toString().split(",");
  }
  
  if (options) {
    options = options.toString().split(",");
  }
    
  parseData_(headers, data, "", 1, object, query, options, includeFunc);
  parseHeaders_(headers, data);
  transformData_(data, options, transformFunc);
  
  return hasOption_(options, "noHeaders") ? (data.length > 1 ? data.slice(1) : new Array()) : data;
}

/**
 * Parses the data contained within the given value and inserts it into the data two-dimensional array starting at the rowIndex.
 * If the data is to be inserted into a new column, a new header is added to the headers array. The value can be an object,
 * array or scalar value.
 *
 * If the value is an object, it's properties are iterated through and passed back into this function with the name of each
 * property extending the path. For instance, if the object contains the property "entry" and the path passed in was "/feed",
 * this function is called with the value of the entry property and the path "/feed/entry".
 *
 * If the value is an array containing other arrays or objects, each element in the array is passed into this function with
 * the rowIndex incremeneted for each element.
 *
 * If the value is an array containing only scalar values, those values are joined together and inserted into the data array as
 * a single value.
 *
 * If the value is a scalar, the value is inserted directly into the data array.
 */
function parseData_(headers, data, path, rowIndex, value, query, options, includeFunc) {
  var dataInserted = false;
  
  if (isObject_(value)) {
    for (key in value) {
      if (parseData_(headers, data, path + "/" + key, rowIndex, value[key], query, options, includeFunc)) {
        dataInserted = true;
      }
    }
  } else if (Array.isArray(value) && isObjectArray_(value)) {
    for (var i = 0; i < value.length; i++) {
      if (parseData_(headers, data, path, rowIndex, value[i], query, options, includeFunc)) {
        dataInserted = true;
        rowIndex++;
      }
    }
  } else if (!includeFunc || includeFunc(query, path, options)) {
    // Handle arrays containing only scalar values
    if (Array.isArray(value)) {
      value = value.join();
    }
    
    // Insert new row if one doesn't already exist
    if (!data[rowIndex]) {
      data[rowIndex] = new Array();
    }
    
    // Add a new header if one doesn't exist
    if (!headers[path] && headers[path] != 0) {
      headers[path] = Object.keys(headers).length;
    }
    
    // Insert the data
    data[rowIndex][headers[path]] = value;
    dataInserted = true;
  }
  
  return dataInserted;
}

/**
 * Parses the headers array and inserts it into the first row of the data array.
 */
function parseHeaders_(headers, data) {
  data[0] = new Array();

  for (key in headers) {
    data[0][headers[key]] = key;
  }
}

/**
 * Applies the transform function for each element in the data array, going through each column of each row.
 */
function transformData_(data, options, transformFunc) {
  for (var i = 0; i < data.length; i++) {
    for (var j = 0; j < data[i].length; j++) {
      transformFunc(data, i, j, options);
    }
  }
}

/**
 * Returns true if the given test value is an object; false otherwise.
 */
function isObject_(test) {
  return Object.prototype.toString.call(test) === '[object Object]';
}

/**
 * Returns true if the given test value is an array containing at least one object; false otherwise.
 */
function isObjectArray_(test) {
  for (var i = 0; i < test.length; i++) {
    if (isObject_(test[i])) {
      return true;
    }
  }  

  return false;
}

/**
 * Returns true if the given query applies to the given path.
 */
function includeXPath_(query, path, options) {
  if (!query) {
    return true;
  } else if (Array.isArray(query)) {
    for (var i = 0; i < query.length; i++) {
      if (applyXPathRule_(query[i], path, options)) {
        return true;
      }
    }  
  } else {
    return applyXPathRule_(query, path, options);
  }
  
  return false;
};

/**
 * Returns true if the rule applies to the given path.
 */
function applyXPathRule_(rule, path, options) {
  return path.indexOf(rule) == 0;
}

/**
 * By default, this function transforms the value at the given row & column so it looks more like a normal data import. Specifically:
 *
 *   - Data from parent JSON elements gets inherited to their child elements, so rows representing child elements contain the values
 *     of the rows representing their parent elements.
 *   - Values longer than 256 characters get truncated.
 *   - Values in row 0 (headers) have slashes converted to spaces, common prefixes removed and the resulting text converted to title
*      case.
 *
 * To change this behavior, pass in one of these values in the options parameter:
 *
 *    noInherit:     Don't inherit values from parent elements
 *    noTruncate:    Don't truncate values
 *    rawHeaders:    Don't prettify headers
 *    debugLocation: Prepend each value with the row & column it belongs in
 */
function defaultTransform_(data, row, column, options) {
  if (!data[row][column]) {
    if (row < 2 || hasOption_(options, "noInherit")) {
      data[row][column] = "";
    } else {
      data[row][column] = data[row-1][column];
    }
  }

  if (!hasOption_(options, "rawHeaders") && row == 0) {
    if (column == 0 && data[row].length > 1) {
      removeCommonPrefixes_(data, row);  
    }
    
    data[row][column] = toTitleCase_(data[row][column].toString().replace(/[\/\_]/g, " "));
  }
  
  if (!hasOption_(options, "noTruncate") && data[row][column]) {
    data[row][column] = data[row][column].toString().substr(0, 256);
  }

  if (hasOption_(options, "debugLocation")) {
    data[row][column] = "[" + row + "," + column + "]" + data[row][column];
  }
}

/**
 * If all the values in the given row share the same prefix, remove that prefix.
 */
function removeCommonPrefixes_(data, row) {
  var matchIndex = data[row][0].length;

  for (var i = 1; i < data[row].length; i++) {
    matchIndex = findEqualityEndpoint_(data[row][i-1], data[row][i], matchIndex);

    if (matchIndex == 0) {
      return;
    }
  }
  
  for (var i = 0; i < data[row].length; i++) {
    data[row][i] = data[row][i].substring(matchIndex, data[row][i].length);
  }
}

/**
 * Locates the index where the two strings values stop being equal, stopping automatically at the stopAt index.
 */
function findEqualityEndpoint_(string1, string2, stopAt) {
  if (!string1 || !string2) {
    return -1;
  }
  
  var maxEndpoint = Math.min(stopAt, string1.length, string2.length);
  
  for (var i = 0; i < maxEndpoint; i++) {
    if (string1.charAt(i) != string2.charAt(i)) {
      return i;
    }
  }
  
  return maxEndpoint;
}
  

/**
 * Converts the text to title case.
 */
function toTitleCase_(text) {
  if (text == null) {
    return null;
  }
  
  return text.replace(/\w\S*/g, function(word) { return word.charAt(0).toUpperCase() + word.substr(1).toLowerCase(); });
}

/**
 * Returns true if the given set of options contains the given option.
 */
function hasOption_(options, option) {
  return options && options.indexOf(option) >= 0;
}
28  Local / Développement et technique / Re: feuille excel d'evaluation de richesse crypto on: September 21, 2017, 10:14:02 AM
J'utilisais un portofolio en ligne auparavant mais je n'arrivais pas à gérer correctement les fees et d'une manière général, j'aime bien avoir la main sur tout Smiley
Dans mon Google Spreasheet, j'entre donc tous mes trades et le profit/loss est calculé par rapport au "Last" de Bittrex (J'alimente mon fichier part appel de Web Service Bittrex).  Pas de surprise, en connaissant le "last", je connais la valeur de mon portefeuille au dollars prêt.
Ayant tous mes trades, je peux donc suivre la répartition en temps réel :



J'ai un google script qui se lance tous les matins automatiquement et qui récupère ma valeur de mon portefeuille. Cela me permet de voir l'évolution de mon portefeuille par graphique :



L'avantage que je vois de l'avoir fait sur Google, c'est que j'y ai accès de partout (Chez moi, smartphone, en voyage) et que c'est sauvegardé automatiquement.
29  Alternate cryptocurrencies / Speculation (Altcoins) / Swing traders on: September 19, 2017, 02:07:01 PM
Hi all,

Few questions for the swing traders to open a discussion  Wink

1 - What indicators do you mostly use ? (MACD, Bollinger, Ichimoku, RSI, ADX)
2 - How much time do you spend per day on charts ?
3 - How many cryptocurrencies do you trade ? What's your favorite ?

30  Economy / Trading Discussion / Re: Turn $10,000 into 1 Million on: September 15, 2017, 12:55:00 PM
(this could be lower because of btc value has down a lot).

He said that he sold BTC.
31  Economy / Trading Discussion / Re: Turn $10,000 into 1 Million on: September 14, 2017, 11:10:49 PM
HR, could you please speak about your money management ?
How do you choose the amount (% of your portfolio) for one cryptocurrency ?
32  Economy / Trading Discussion / Re: Turn $10,000 into 1 Million on: September 13, 2017, 12:03:14 PM
I'm getting defensive again. Hedging a bit by selling all the portfolio BTC balance for USDT.

What's your target to buy BTC ?
33  Local / Altcoins (Français) / Re: Quelles sont les cryptomonnaies prometteuses ? on: September 12, 2017, 12:56:23 PM
Bon allez c'est bon on peut arrêter là non..?

C'est marrant de voir le côté épidermique que peut provoquer DeepOnion.

Mais bon sur ce fil on est pas là pour s'engrener..  Grin

Puisque apparemment il y a apparemment pas mal de multi-compte, ce qui n'est pas encore mon cas! Y a des moyens de nous repérer quand c'est le cas?

Avec ton IP.
34  Local / Altcoins (Français) / Re: Quelles sont les campagnes de signature rentables ? on: September 12, 2017, 07:42:38 AM
Je souhaiterais effectuer ma première campagne de signature.
Me conseillez-vous d'attendre qu'une nouvelle sorte ou de partir sur une existante ?
35  Local / Altcoins (Français) / Re: Quelles sont les cryptomonnaies prometteuses ? on: September 11, 2017, 11:22:43 AM
Bonjour à tous,

Je voudrais savoir quel est votre TOP des cryptomonnaies à quelques centimes (nouvelles ou pas) qui pourront prendre de la valeur (quelques euro) d'ici début 2018 ?

Merci  Grin
le doge, all in dessus , bientot 5 euros . je le sais de source sure

Tu as une boule de crystal c'est ça  ?
36  Economy / Trading Discussion / Do you trade altcoin with BTC ? on: September 11, 2017, 11:15:58 AM
Hi all,

Do you trade altcoin with BTC or fiat ? (or USDT)
Why did you choose this option ?

Thanks Wink
37  Economy / Trading Discussion / Re: Turn $10,000 into 1 Million on: September 07, 2017, 07:30:24 PM
Do you still use Excel to track this portfolio? If so, How do you track the buy price when you make changes and sell something?

You can use thise Api
38  Local / Échanges / Re: Quelle est votre plateforme de trading préférée ? on: August 31, 2017, 08:12:40 AM
Ce qui est dommage sur Bittrex, c'est que l'on ne peut pas configurer une vente en stop loss et en take profit en même temps
39  Economy / Trading Discussion / Re: Turn $10,000 into 1 Million on: August 30, 2017, 06:50:59 AM
I have also 10K$ to invest. I'ts a dream for a beginner like me to make 60K$ in few months  Cheesy
40  Local / Altcoins (Français) / Re: Quelles sont les cryptomonnaies prometteuses ? on: August 29, 2017, 05:39:00 PM
va falloir etre patient avec RLC...

Perso j'ai des doutes. Et la team ne me convainc pas
Pages: « 1 [2] 3 4 5 6 7 »
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!