Skip to content

Instantly share code, notes, and snippets.

@mastercyb
Last active November 9, 2015 12:41
Show Gist options
  • Save mastercyb/844562a5b423e671ff0a to your computer and use it in GitHub Desktop.
Save mastercyb/844562a5b423e671ff0a to your computer and use it in GitHub Desktop.

cyber•Fund Minsk Hackathon Contest

Two tasks. Bounty for each:

Plus respect from cryptocurrency community. Publishing in cyber•Fund official organization under MIT.

REST Service for Cryptoproperty Market Analysis

Requirements of contest:

  • Should be based on XChange library
  • Ready to deploy docker container with simple installation doc.
  • Basic unit test coverage
  • Should be able to provide updates at least every minute.
  • Server for live application will be provided by cyber•Fund

Basic Market Analysis: 1/3 of bounty

Request: /markets Should return json file with the most recent updates from all supported markets split by exchange with calculated VWAP based on 24 hours volumes. Target json output:

{
  "exchange": "Poloniex",
  "last_update": "timestamp",
  "markets": {
    "bctusd": ["last_price", "24h_volume"],
    "bcteur": ["last_price", "24h_volume"]
  },
  "exchange": "Bitstamp",
  "last_update": "timestamp",
  "markets": {
    "bctusd": ["last_price", "24h_volume"],
    "bcteur": ["last_price", "24h_volume"]
  }
}

Advanced Market Analysis: 1/3 of bounty

Request: /systems

Should return json file with the most recent updates from all supported markets split by system. Target json output:

{
  "system": "Bitcoin",
  "last_update": "timestamp",
  "markets": {
    "bctusd": ["24h_vwap", "24h_volume"],
    "bcteur": ["24h_vwap", "24h_volume"]
  },
  "system": "Ethereum",
  "last_update": "timestamp",
  "markets": {
    "bctusd": ["24h_vwap", "24h_volume"],
    "bcteur": ["24h_vwap", "24h_volume"]
  },

}

VWAP - Volume weighted average price.

Deep Market Analysis: 1/3 of bounty

Request: /marketblock/?system=bitcoin&start_timestamp=1442576101&end_timestamp=1442578601

Should return json file with calculations of VWAP based on cleared transactions from all supported markets for a given period of time. Target json output:

{
  "system": "Bitcoin",
  "last_update": "timestamp",
  "markets": {
    "bctusd": ["period_vwap", "period_volume"],
    "bcteur": ["period_vwap", "period_volume"]
  },
  "system": "Ethereum",
  "last_update": "timestamp",
  "markets": {
    "bctusd": ["period_vwap", "period_volume"],
    "bcteur": ["period_vwap", "period_volume"]
  },

}

cyber•Fund Proof of Сoncept protocol

Basic Idea

Basic_Idea

Requirements of contest:

Expected process:

  • Generation of Address and Private Key check using any open source soultion
  • Update of ether balance
  • One button write of pulbic keys associated with account using Contract ABI
  • Verification for of Ethereum and Bitcoin addresses.
  • Update of stored records.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment