{"id":19026185,"url":"https://github.com/konstantinzolotarev/cryptopia_api","last_synced_at":"2025-04-23T12:51:04.608Z","repository":{"id":57487349,"uuid":"101502669","full_name":"konstantinzolotarev/cryptopia_api","owner":"konstantinzolotarev","description":"Cryptopia Exchange API client","archived":false,"fork":false,"pushed_at":"2018-01-22T11:27:27.000Z","size":22,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-18T00:11:00.037Z","etag":null,"topics":["cryptopia","cryptopia-api","elixir"],"latest_commit_sha":null,"homepage":"","language":"Elixir","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/konstantinzolotarev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-08-26T17:45:22.000Z","updated_at":"2023-05-14T14:46:56.000Z","dependencies_parsed_at":"2022-09-01T23:02:09.152Z","dependency_job_id":null,"html_url":"https://github.com/konstantinzolotarev/cryptopia_api","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/konstantinzolotarev%2Fcryptopia_api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/konstantinzolotarev%2Fcryptopia_api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/konstantinzolotarev%2Fcryptopia_api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/konstantinzolotarev%2Fcryptopia_api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/konstantinzolotarev","download_url":"https://codeload.github.com/konstantinzolotarev/cryptopia_api/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250438077,"owners_count":21430809,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cryptopia","cryptopia-api","elixir"],"created_at":"2024-11-08T20:47:55.762Z","updated_at":"2025-04-23T12:51:04.583Z","avatar_url":"https://github.com/konstantinzolotarev.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CryptopiaApi [![Hex pm](http://img.shields.io/hexpm/v/cryptopia_api.svg?style=flat)](https://hex.pm/packages/cryptopia_api) [![hex.pm downloads](https://img.shields.io/hexpm/dt/cryptopia_api.svg?style=flat)](https://hex.pm/packages/cryptopia_api)\n\nCryptopia Crypto currency exchange API.\n\n[Public API](https://www.cryptopia.co.nz/Forum/Thread/255)\n\n[Private API](https://www.cryptopia.co.nz/Forum/Thread/256)\n\nList of methods for module in [documentation](https://hexdocs.pm/cryptopia_api/api-reference.html)\n\n## Installation\n\nFirst add `cryptopia_api` to your `mix.exs` dependencies:\n\n```elixir\ndef deps do\n  [\n    {:cryptopia_api, \"~\u003e 0.1.0\"}\n  ]\nend\n```\n\nand run `$ mix deps.get`. Then add `:cryptopia_api` to your applications list.\n\n```elixir\ndef application do\n  [applications: [:cryptopia_api]]\nend\n```\n\n## Configuration\n\nFor Pulic API only no configuration is required.\n\nBut for Private API you have to configure application:\n\nAdd this lines to you application `config.exs`:\n\n```elixir\nuse Mix.Config\n\nconfig :cryptopia_api, api_key: \"you-api-key-here\"\nconfig :cryptopia_api, secret_key: \"your-secret-key-here\"\n```\n\n## Timeout option\nLibrary supports special `:request_timeout` option. \nIt iwll set defaul timeout for reply from cryptopia api. \nBy default it set to **8 seconds**\n\nYou could change it using your application `config.exs`:\n\n```elixir\nuse Mix.Config\n\nconfig :cryptopia_api, request_timeout: 10_000\n```\n\nthis option will be applied to all requests\n\n## Usage\n\n```elixir\niex(1)\u003e CryptopiaApi.Public.get_market(\"ACC_BTC\")\n{:ok,\n %{AskPrice: 4.263e-5, BaseVolume: 0.68372883, BidPrice: 4.021e-5,\n   BuyBaseVolume: 1.26308814, BuyVolume: 941758.73640983, Change: 35.97,\n   Close: 4.007e-5, High: 4.809e-5, Label: \"ACC/BTC\", LastPrice: 4.007e-5,\n   Low: 2.402e-5, Open: 2.947e-5, SellBaseVolume: 41.79914411,\n   SellVolume: 67079.729386, TradePairId: 5331, Volume: 20217.2373583}}\n\niex(2)\u003e CryptopiaApi.Public.get_market(\"ACC_BTC\", 24)\n{:ok,\n %{AskPrice: 4.263e-5, BaseVolume: 0.68367683, BidPrice: 4.022e-5,\n   BuyBaseVolume: 1.28937411, BuyVolume: 942412.29131635, Change: 52.36,\n   Close: 4.007e-5, High: 4.809e-5, Label: \"ACC/BTC\", LastPrice: 4.007e-5,\n   Low: 2.402e-5, Open: 2.63e-5, SellBaseVolume: 41.79914411,\n   SellVolume: 67079.729386, TradePairId: 5331, Volume: 20215.47258623}}\n```\n\n## License\n\n    Copyright © 2017 Konstantin Zolotarev\n\n    This work is free. You can redistribute it and/or modify it under the\n    terms of the MIT License. See the LICENSE file for more details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkonstantinzolotarev%2Fcryptopia_api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkonstantinzolotarev%2Fcryptopia_api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkonstantinzolotarev%2Fcryptopia_api/lists"}