New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trading volume of the House market is incredibly large. #569

Closed
CrystalBallBe opened this Issue Jan 18, 2019 · 3 comments

Comments

Projects
None yet
2 participants
@CrystalBallBe
Copy link

CrystalBallBe commented Jan 18, 2019

To get a market info, I called augur.markets.getMarketsInfo. And I noticed the volume of the market "Which party will control the House after 2018 U.S. Midterm Election?" is incredibly large. Is it correct value?

  • marketId: 0xbbbc0a8baa03535e0a680ee2f057162aaaafd570
  • volume: 16232472.55386295

I believe the unit is Shares(=ETH). If so, about 2 billion USD were traded on this market. I cannot believe that. Or I'm mistaken something😔

The following is what I did:

'use strict';

let Augur = require('augur.js');
let augur = new Augur();

augur.connect({
  ethereumNode: {
    httpAddresses: ['https://eth-mainnet.alchemyapi.io/jsonrpc/7sE1TzCIRIQA3NJPD5wg7YRiVjhxuWAE'],
  },
  augurNode: 'http://localhost:9001'
}, function (error, connectionInfo) {

  augur.augurNode.getSyncData(
    function(error, result) {
      console.log('******************** sync data ******************** ');
      console.log(result);
    }
  );

  augur.markets.getMarketsInfo({
    marketIds: ["0xbbbc0a8baa03535e0a680ee2f057162aaaafd570"],
  }, function (error, result) {
    console.log('******************** market info ******************** ');
    console.log(result);
  });
});

The return values (please check volume of market info):

/******************** sync data ********************/
{ version: '6.5.1',
  augurNodeVersion: '7.4.0-0',
  net_version: '1',
  netId: '1',
  isSyncFinished: true,
  addresses:
   { Controller: '0xb3337164e91b9f05c87c7662c7ac684e8e0ff3e7',
     Universe: '0xe991247b78f937d7b69cfc00f1a487a293557677',
     Augur: '0x75228dce4d82566d93068a8d5d49435216551599',
     OrdersFinder: '0x01f2aba090b5fa26a64ea9e5afd32f6aab6ba3df',
     LegacyReputationToken: '0xe94327d07fc17907b4db788e5adf2ed424addff6',
     CancelOrder: '0x3448209268e97652bb67ea12777d4dfba81e3aaf',
     Cash: '0xd5524179cb7ae012f5b642c1d6d700bbaa76b96b',
     ClaimTradingProceeds: '0x4334477348222a986fc88a05410aa6b07507872a',
     CompleteSets: '0xa6bff4f91016c2b4aac140b2d8d7317b36afe5ab',
     CreateOrder: '0x7f27b0598949dbf9e539bbd217f15bf3f5e97999',
     FillOrder: '0x39c230f89981274177e79708c921582bd4bd0303',
     Order: '0x75d789ef6344579fbe75a4d2d9217ec23b005f8f',
     Orders: '0xd7a14019aeeba25e676a1b596bb19b6f37db74d2',
     OrdersFetcher: '0xa97a3e2ac932bc7a9c65393ee2c0f9d2f7b2e692',
     ShareToken: '0x2a21d90745dfed999aa0b6e08d648855c5f14663',
     Trade: '0x24e2b1d415e6e0d04042eaa45dc2a08fc33ca6cd',
     TradingEscapeHatch: '0x10b5589fc6922f5c27061ac79ad9a4af35e15806' },
  highestBlock:
   { number: 7082034,
     hash: '0xa673e0b6ba461e4abaeb272292384179025f6f61c3ba591d2983a3e81202ff97',
     timestamp: 1547736279 },
  lastProcessedBlock:
   { number: 7082034,
     hash: '0xa673e0b6ba461e4abaeb272292384179025f6f61c3ba591d2983a3e81202ff97',
     timestamp: 1547736279 } }
/******************** market info ********************/
[ { id: '0xbbbc0a8baa03535e0a680ee2f057162aaaafd570',
    universe: '0xe991247b78f937d7b69cfc00f1a487a293557677',
    marketType: 'categorical',
    numOutcomes: 3,
    minPrice: '0',
    maxPrice: '1',
    cumulativeScale: '1',
    author: '0xc64e96319366da7d00ef4bc14b42e8b1f3a31f52',
    consensus: null,
    creationTime: 1531684474,
    creationBlock: 5970620,
    creationFee: '0.01',
    settlementFee: '0.0001',
    reportingFeeRate: '0.0001',
    marketCreatorFeeRate: '0',
    marketCreatorFeesBalance: '0',
    marketCreatorMailbox: '0x90a80c4cc0e86e285a9cba6fb2bc47f9e454cc3f',
    marketCreatorMailboxOwner: '0xc64e96319366da7d00ef4bc14b42e8b1f3a31f52',
    initialReportSize: '30383328740824500488',
    category: 'POLITICS',
    tags: [ 'CONGRESS', 'MIDTERM' ],
    volume: '16232472.55386295',
    openInterest: '5715.8682',
    outstandingShares: '5715.8682',
    feeWindow: '0x78aabc89d1acf357f692bf29986c5ba1270f720b',
    endTime: 1544500800,
    finalizationBlockNumber: null,
    finalizationTime: null,
    lastTradeBlockNumber: 7079684,
    lastTradeTime: 1547699568,
    reportingState: 'AWAITING_NEXT_WINDOW',
    forking: 0,
    needsMigration: 0,
    description: 'Which party will control the House after 2018 U.S. Midterm Election?',
    details: null,
    scalarDenomination: null,
    designatedReporter: '0xc64e96319366da7d00ef4bc14b42e8b1f3a31f52',
    designatedReportStake: '0.349680582682291667',
    resolutionSource: null,
    numTicks: '10000',
    outcomes: [ [Object], [Object], [Object] ],
    tickSize: '0.0001' } ]

And my augur-node is running by this command:

docker container run -d --restart=on-failure -p 9001:9001 -p 9002:9002 -e ETHEREUM_HTTP=https://eth-mainnet.alchemyapi.io/jsonrpc/7sE1TzCIRIQA3NJPD5wg7YRiVjhxuWAE -e AUGUR_DATABASE_DIR=/app/db --mount "source=augur-node,dst=/app/db" augurproject/augur-node:2019-01-14-2253
@adrake33

This comment has been minimized.

Copy link
Member

adrake33 commented Jan 18, 2019

@CrystalBalle Thanks for reporting this! We've actually had several other people make similar reports when they were using Augur App. From what I understand, this did not turn out to be a bug in any of these cases. I'm not sure of the exact details of what was found when these reports were investigated, but since you are seeing this while using a different environment than Augur App, we'll look into this more and let you know what we find.

@CrystalBallBe

This comment has been minimized.

Copy link
Author

CrystalBallBe commented Feb 13, 2019

@adrake33 I updated augur-node version from '7.4.0-0' to '7.6.0-0', this problem was solved. (but I have another issue with volume...)
Anyway, If it's OK with you, please close this issue. Thank you for your support.

For reference, I add the return value of the above function after updating.

/******************** sync data ********************/ 
{ version: '6.5.1',
  augurNodeVersion: '7.6.0-0',
  net_version: '1',
  netId: '1',
  isSyncFinished: true,
  addresses: 
   { Controller: '0xb3337164e91b9f05c87c7662c7ac684e8e0ff3e7',
     Universe: '0xe991247b78f937d7b69cfc00f1a487a293557677',
     Augur: '0x75228dce4d82566d93068a8d5d49435216551599',
     OrdersFinder: '0x01f2aba090b5fa26a64ea9e5afd32f6aab6ba3df',
     LegacyReputationToken: '0xe94327d07fc17907b4db788e5adf2ed424addff6',
     CancelOrder: '0x3448209268e97652bb67ea12777d4dfba81e3aaf',
     Cash: '0xd5524179cb7ae012f5b642c1d6d700bbaa76b96b',
     ClaimTradingProceeds: '0x4334477348222a986fc88a05410aa6b07507872a',
     CompleteSets: '0xa6bff4f91016c2b4aac140b2d8d7317b36afe5ab',
     CreateOrder: '0x7f27b0598949dbf9e539bbd217f15bf3f5e97999',
     FillOrder: '0x39c230f89981274177e79708c921582bd4bd0303',
     Order: '0x75d789ef6344579fbe75a4d2d9217ec23b005f8f',
     Orders: '0xd7a14019aeeba25e676a1b596bb19b6f37db74d2',
     OrdersFetcher: '0xa97a3e2ac932bc7a9c65393ee2c0f9d2f7b2e692',
     ShareToken: '0x2a21d90745dfed999aa0b6e08d648855c5f14663',
     Trade: '0x24e2b1d415e6e0d04042eaa45dc2a08fc33ca6cd',
     TradingEscapeHatch: '0x10b5589fc6922f5c27061ac79ad9a4af35e15806' },
  highestBlock: 
   { number: 7213961,
     hash: '0x62a207c80f218aeeaa81b6350eb9603c702237f0633cd871feda2424a46a8ecf',
     timestamp: 1550036605 },
  lastProcessedBlock: 
   { number: 7213961,
     hash: '0x62a207c80f218aeeaa81b6350eb9603c702237f0633cd871feda2424a46a8ecf',
     timestamp: 1550036605 } }
/******************** market info ********************/
[ { id: '0xbbbc0a8baa03535e0a680ee2f057162aaaafd570',
    universe: '0xe991247b78f937d7b69cfc00f1a487a293557677',
    marketType: 'categorical',
    numOutcomes: 3,
    minPrice: '0',
    maxPrice: '1',
    cumulativeScale: '1',
    author: '0xc64e96319366da7d00ef4bc14b42e8b1f3a31f52',
    consensus: { isInvalid: false, payout: [Array] },
    creationTime: 1531684474,
    creationBlock: 5970620,
    creationFee: '0.01',
    settlementFee: '0.0001',
    reportingFeeRate: '0.0001',
    marketCreatorFeeRate: '0',
    marketCreatorFeesBalance: '10000000000000000',
    marketCreatorMailbox: '0x90a80c4cc0e86e285a9cba6fb2bc47f9e454cc3f',
    marketCreatorMailboxOwner: '0xc64e96319366da7d00ef4bc14b42e8b1f3a31f52',
    initialReportSize: '30383328740824500488',
    category: 'POLITICS',
    tags: [ 'CONGRESS', 'MIDTERM' ],
    volume: '15634.77935895',
    openInterest: '5589.1562',
    outstandingShares: '8298.6371',
    feeWindow: '0x78aabc89d1acf357f692bf29986c5ba1270f720b',
    endTime: 1544500800,
    finalizationBlockNumber: 7151242,
    finalizationTime: 1548893598,
    lastTradeBlockNumber: 7166001,
    lastTradeTime: 1549153559,
    reportingState: 'FINALIZED',
    forking: 0,
    needsMigration: 0,
    description: 'Which party will control the House after 2018 U.S. Midterm Election?',
    details: null,
    scalarDenomination: null,
    designatedReporter: '0xc64e96319366da7d00ef4bc14b42e8b1f3a31f52',
    designatedReportStake: '0.349680582682291667',
    resolutionSource: null,
    numTicks: '10000',
    outcomes: [ [Object], [Object], [Object] ],
    tickSize: '0.0001' } ]
@adrake33

This comment has been minimized.

Copy link
Member

adrake33 commented Feb 13, 2019

Thanks for the update, CBB. I'll close this issue.

@adrake33 adrake33 closed this Feb 13, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment