{"id":34060879,"url":"https://github.com/emrementese/binance-ema","last_synced_at":"2026-04-02T02:12:25.929Z","repository":{"id":44753825,"uuid":"423573431","full_name":"emrementese/binance-ema","owner":"emrementese","description":"Exchange indicators \u0026 professional functions for Binance API. ","archived":false,"fork":false,"pushed_at":"2025-01-21T11:55:42.000Z","size":902,"stargazers_count":25,"open_issues_count":1,"forks_count":4,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-02-08T10:45:54.789Z","etag":null,"topics":["api","binance","binance-api","blockchain","bot","crypto","cryptocurrency","exchange","indicator","macd","python","trade","trade-bot","trading"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/binance-ema/","language":"Python","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/emrementese.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":"2021-11-01T18:27:17.000Z","updated_at":"2025-12-09T22:18:05.000Z","dependencies_parsed_at":"2022-09-02T06:44:21.566Z","dependency_job_id":null,"html_url":"https://github.com/emrementese/binance-ema","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/emrementese/binance-ema","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emrementese%2Fbinance-ema","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emrementese%2Fbinance-ema/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emrementese%2Fbinance-ema/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emrementese%2Fbinance-ema/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/emrementese","download_url":"https://codeload.github.com/emrementese/binance-ema/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emrementese%2Fbinance-ema/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31294422,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-02T01:43:37.129Z","status":"online","status_checked_at":"2026-04-02T02:00:08.535Z","response_time":89,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["api","binance","binance-api","blockchain","bot","crypto","cryptocurrency","exchange","indicator","macd","python","trade","trade-bot","trading"],"created_at":"2025-12-14T04:24:01.040Z","updated_at":"2026-04-02T02:12:25.922Z","avatar_url":"https://github.com/emrementese.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# binance-ema\r\nSimplified \u0026 Professional Binance API.\r\n                      \r\n- Get crypto coin information in an easy way.\r\n- Get account information (balance,quantity etc.)\r\n- Buy / Sell / Limit / Stop Loss --\u003e Orders any way.\r\n- Calculate SMA, EMA, MACD etc. functions (custom indicators)\r\n- https://pypi.org/project/binance-ema/\r\n           \r\n           pip install binance-ema\r\n           \r\n# Nots\r\n- This python library has been written to calculate SMA, EMA, MACD etc. functions with Binance API.\r\n- Complex functions in the Binance API, has been facilitate for developers.\r\n- After installing the libary, don't forget reading the funcions content !\r\n- We are not responsible the your code mistake\r\n\r\n# Usage\r\nFirstly, for the use this library you have to create an API via Binance. This documentation will help you for create an safe API.\r\n\r\n1) Visit the Binance web site and log in:  https://www.binance.com/\r\n            \r\n2) After, click to your profile photo. Select api management from the menu that appears.\r\n\r\n   ![](https://github.com/emrementese/binance-ema/blob/main/examples/images/menu.png)\r\n\r\n\r\n3) Third, you can create an API now. After the API creatation,  move the API List and click the edit button your API. \r\n\r\n- After the API creatation, save your \"API KEY\" \u0026 \"SECRET KEY\".\r\n- Page looks like;\r\n\r\n   ![](https://github.com/emrementese/binance-ema/blob/main/examples/images/binance-api-settings.png)\r\n   \r\n* Enable Reading was default active. This settings give you authority for reading the coins information. (Red circle in the image)\r\n* Enable Spot-Marign Trading was default passive. !! IF YOU DON'T SPOT-MARGİN TRADİNG, YOU MUST DON'T ACTİVE THİS SETTİNG FOR YOUR SECURİTY. (Green circle in the image)\r\n* Trusted IP default null. You must add your ip adress here for your security. Other ip adress cannot read coins information or trade.\r\n       \r\n\u003e Binance Connector\r\n- This project uses the official binance documentation.\r\n- Github Referance for Binance Connector  --\u003ehttps://github.com/binance/binance-connector-python\r\n- Original Binance Connector Document     --\u003e https://binance-docs.github.io/apidocs/spot/en/#introduction\r\n- Referance 3 --\u003e https://binance-connector.readthedocs.io/en/stable/\r\n- [Binance Spot Trade Rules](https://www.binance.com/en/trade-rule)\r\n                 \r\n- You can download and start using and developing the library now.\r\n- Don't forget to sen message me for any mistake. Don't forget give star. I waiting for your pull requests (Forks) :)\r\n\r\n## Example connect to API \u0026 Info Functions\r\n```py\r\n\r\n# Example connect to API \u0026 Info Functions\r\n\r\nfrom binance.spot import Spot\r\nfrom binancema.coininfo import *\r\n\r\nKEY         = \"XXXXXXXXXXXXXXXXXXXXXX\"\r\nSECRET      = \"XXXXXXXXXXXXXXXXXXXXXX\"\r\n\r\nClient = Spot(KEY,SECRET)  # connect binance api\r\n\r\nsymbol = \"OXT\"\r\nmarket = \"OXTUSDT\"\r\n\r\n# use libary binancema functions\r\nprint(f\"Your USDT ($) Balance:                  {balance_usdt(Client)} $\\n\")              #float\r\n\r\nprint(f\"OXT Quantity (Free):                    {quantity_free(Client,symbol)} OXT\\n\")     #float\r\n\r\nprint(f\"OXT Quantity (locked):                  {quantity_locked(Client,symbol)} OXT\\n\")   #float\r\n\r\nprint(f\"OXT Quantity (all):                     {quantity_all(Client,symbol)} OXT\\n\")      #float\r\n\r\nprint(f\"OXT Balance ($) (free):                 {balance_free(Client,symbol)} $\\n\")        #float\r\n\r\nprint(f\"OXT Balance ($) (locked):               {balance_locked(Client,symbol)} $\\n\")      #float\r\n\r\nprint(f\"OXT Balance ($) (all):                  {balance_all(Client,symbol)} $\\n\")         #float\r\n\r\nprint(f\"OXT/USDT Price (now):                   {price(Client,market)}\\n\")             #float\r\n\r\nprint(f\"OXT/USDT Price (before 24hr):           {price_before_24hr(Client,market)}\\n\") #float\r\n\r\nprint(f\"OXT/USDT Price Change Value (24hr):     {price_change24(Client,market)}\\n\")    #float     \r\n\r\nprint(f\"OXT/USDT Price Change (%) (24hr):       % {price_change_percent24(Client,market)}\\n\")  #float\r\n\r\nprint(f\"OXT/USDT Price High Value (24hr):       {price_high24(Client,market)}\\n\")       #float\r\n\r\nprint(f\"OXT/USDT Price Low Value (24hr):        {price_low24(Client,market)}\\n\")        #float\r\n\r\n```\r\n## Example Trade Functions\r\n```py\r\n\r\nfrom binance.spot import Spot\r\nfrom binancema.coininfo import *\r\n\r\nKEY         = \"XXXXXXXXXXXXXXXXXXXXXX\"\r\nSECRET      = \"XXXXXXXXXXXXXXXXXXXXXX\"\r\n\r\nClient = Spot(KEY,SECRET)  # connect binance api\r\n\r\nsymbol = \"OXT\"\r\nmarket = \"OXTUSDT\"\r\n\r\n# TRADE with binance-ema\r\nprint(market_buy_with_price(Client, market,30))  # buy 30 $ BTC (market price)\r\n\r\nprint(market_buy_with_quantity(Client, market,0.01233)) # buy 0.01233 BTC (market price)\r\n\r\n# default binance-connector functions\r\nprint(f\"All Open Orders (LIMIT): {Client.get_open_orders()}\\n\") #list\r\n\r\nprint(f\"OXT Open Orders (LIMIT): {Client.get_open_orders(market)}\\n\") #list\r\n\r\nprint(f\"Get only 1 order:{Client.get_order(market,orderId = 55555)} \\n\") # dict (inpur order id gettin to get_open_orders)\r\n```\r\n# Contributors\r\n\r\n\u003ctable\u003e\r\n  \u003ctr\u003e\r\n    \r\n   \u003ctd align=\"center\"\u003e\u003ca href=\"https://github.com/emrementese\"\u003e\u003cimg src=\"https://avatars.githubusercontent.com/u/76906642?v=4\" width=\"100px;\" alt=\"\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eEmre MENTEŞE (Owner)\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003c/td\u003e\r\n\r\n   \u003ctd align=\"center\"\u003e\u003ca href=\"https://github.com/ozanmutlu\"\u003e\u003cimg src=\"https://avatars.githubusercontent.com/u/62659953?v=4\" width=\"100px;\" alt=\"\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eOzan Mutlu\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003c/td\u003e\r\n\r\n  \u003c/tr\u003e\r\n\u003c/table\u003e\r\n\r\n# License\r\n\r\n    MIT License | Copyright (c) 2022 Emre MENTEŞE\r\n\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Femrementese%2Fbinance-ema","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Femrementese%2Fbinance-ema","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Femrementese%2Fbinance-ema/lists"}