{"id":36,"date":"2026-11-25T22:35:49","date_gmt":"2026-11-25T22:35:49","guid":{"rendered":"https:\/\/rulemancer.com\/blog\/docs\/api-key-safety\/"},"modified":"2026-11-25T22:42:55","modified_gmt":"2026-11-25T22:42:55","password":"","slug":"api-key-safety","status":"publish","type":"docs","link":"https:\/\/rulemancer.com\/blog\/docs\/api-key-safety\/","title":{"rendered":"Keep API keys safe"},"content":{"rendered":"<p>A bot needs to place orders; it never needs to move funds. That distinction is the whole security model.<\/p>\n<h2>Rules that matter<\/h2>\n<ul>\n<li><strong>Never enable withdrawals.<\/strong> Rulemancer refuses such keys, and an exchange key without withdrawal permission cannot empty an account.<\/li>\n<li><strong>Bind to an IP<\/strong> where the exchange allows it. A stolen key used elsewhere simply fails.<\/li>\n<li><strong>One key per purpose.<\/strong> A separate key per platform makes revocation surgical.<\/li>\n<li><strong>Rotate every few months.<\/strong> Create the new key, connect it, confirm a fill, then delete the old one.<\/li>\n<\/ul>\n<h2>If a key leaks<\/h2>\n<ol>\n<li>Revoke it at the exchange first \u2014 that is immediate.<\/li>\n<li>Cancel open orders it placed.<\/li>\n<li>Disconnect it in Rulemancer so the bot stops retrying.<\/li>\n<li>Check trade history for orders you did not write.<\/li>\n<li>Create a new restricted key and reconnect.<\/li>\n<\/ol>\n<h2>How keys are stored<\/h2>\n<p>Keys are encrypted at rest with the platform&#8217;s application key and never displayed again after saving. They are not written to logs. For the longer version, read <a href=\"\/blog\/trade-only-api-keys\">trade-only API keys<\/a>.<\/p>\n<p><!--rm-related-start--><\/p>\n<aside class=\"rm-related\" style=\"margin-top:48px;padding-top:24px;border-top:1px solid #E6E6F0;\">\n<h2 style=\"font-size:18px;margin:0 0 12px;\">Related reading<\/h2>\n<ul style=\"list-style:none;padding:0;margin:0 0 4px;display:grid;gap:8px;\">\n<li><a href=\"https:\/\/rulemancer.com\/blog\/trade-only-api-keys\/\">Trade-only API keys: connect an exchange without handing over your funds<\/a><\/li>\n<\/ul>\n<p style=\"margin:12px 0 0;font-size:14px;color:#5B5B72;\"><a href=\"https:\/\/rulemancer.com\/blog\/docs\/\">All documentation<\/a> &nbsp;\u00b7&nbsp; <a href=\"https:\/\/rulemancer.com\/register\">Start free<\/a><\/p>\n<\/aside>\n<p><!--rm-related-end--><\/p>\n","protected":false},"excerpt":{"rendered":"<p>A bot needs to place orders; it never needs to move funds. That distinction is the whole security model. Rules that matter Never enable withdrawals. Rulemancer\u2026<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"footnotes":""},"doc_category":[7],"doc_tag":[],"class_list":["post-36","docs","type-docs","status-publish","hentry","doc_category-exchanges"],"year_month":"2026-11","word_count":180,"total_views":0,"reactions":{"happy":0,"normal":0,"sad":0},"author_info":{"name":"admin","author_nicename":"admin","author_url":"https:\/\/rulemancer.com\/blog\/author\/admin\/"},"doc_category_info":[{"term_name":"Exchanges & API keys","term_url":"https:\/\/rulemancer.com\/blog\/docs-category\/exchanges\/"}],"doc_tag_info":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.9 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Keep API keys safe - Rulemancer Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/rulemancer.com\/blog\/docs\/api-key-safety\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Keep API keys safe - Rulemancer Blog\" \/>\n<meta property=\"og:description\" content=\"A bot needs to place orders; it never needs to move funds. That distinction is the whole security model. Rules that matter Never enable withdrawals. Rulemancer\u2026\" \/>\n<meta property=\"og:url\" content=\"https:\/\/rulemancer.com\/blog\/docs\/api-key-safety\/\" \/>\n<meta property=\"og:site_name\" content=\"Rulemancer Blog\" \/>\n<meta property=\"article:modified_time\" content=\"2026-11-25T22:42:55+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/rulemancer.com\\\/blog\\\/docs\\\/api-key-safety\\\/\",\"url\":\"https:\\\/\\\/rulemancer.com\\\/blog\\\/docs\\\/api-key-safety\\\/\",\"name\":\"Keep API keys safe - Rulemancer Blog\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/rulemancer.com\\\/blog\\\/#website\"},\"datePublished\":\"2026-11-25T22:35:49+00:00\",\"dateModified\":\"2026-11-25T22:42:55+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/rulemancer.com\\\/blog\\\/docs\\\/api-key-safety\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/rulemancer.com\\\/blog\\\/docs\\\/api-key-safety\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/rulemancer.com\\\/blog\\\/docs\\\/api-key-safety\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Anasayfa\",\"item\":\"https:\\\/\\\/rulemancer.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Docs\",\"item\":\"https:\\\/\\\/rulemancer.com\\\/blog\\\/docs\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Keep API keys safe\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/rulemancer.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/rulemancer.com\\\/blog\\\/\",\"name\":\"Rulemancer Blog\",\"description\":\"Guides for rule-based crypto trading bots\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/rulemancer.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Keep API keys safe - Rulemancer Blog","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/rulemancer.com\/blog\/docs\/api-key-safety\/","og_locale":"en_US","og_type":"article","og_title":"Keep API keys safe - Rulemancer Blog","og_description":"A bot needs to place orders; it never needs to move funds. That distinction is the whole security model. Rules that matter Never enable withdrawals. Rulemancer\u2026","og_url":"https:\/\/rulemancer.com\/blog\/docs\/api-key-safety\/","og_site_name":"Rulemancer Blog","article_modified_time":"2026-11-25T22:42:55+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/rulemancer.com\/blog\/docs\/api-key-safety\/","url":"https:\/\/rulemancer.com\/blog\/docs\/api-key-safety\/","name":"Keep API keys safe - Rulemancer Blog","isPartOf":{"@id":"https:\/\/rulemancer.com\/blog\/#website"},"datePublished":"2026-11-25T22:35:49+00:00","dateModified":"2026-11-25T22:42:55+00:00","breadcrumb":{"@id":"https:\/\/rulemancer.com\/blog\/docs\/api-key-safety\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/rulemancer.com\/blog\/docs\/api-key-safety\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/rulemancer.com\/blog\/docs\/api-key-safety\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Anasayfa","item":"https:\/\/rulemancer.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Docs","item":"https:\/\/rulemancer.com\/blog\/docs\/"},{"@type":"ListItem","position":3,"name":"Keep API keys safe"}]},{"@type":"WebSite","@id":"https:\/\/rulemancer.com\/blog\/#website","url":"https:\/\/rulemancer.com\/blog\/","name":"Rulemancer Blog","description":"Guides for rule-based crypto trading bots","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/rulemancer.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"knowledge_base_info":[],"knowledge_base_slug":[],"_links":{"self":[{"href":"https:\/\/rulemancer.com\/blog\/wp-json\/wp\/v2\/docs\/36","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/rulemancer.com\/blog\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/rulemancer.com\/blog\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/rulemancer.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/rulemancer.com\/blog\/wp-json\/wp\/v2\/comments?post=36"}],"version-history":[{"count":1,"href":"https:\/\/rulemancer.com\/blog\/wp-json\/wp\/v2\/docs\/36\/revisions"}],"predecessor-version":[{"id":49,"href":"https:\/\/rulemancer.com\/blog\/wp-json\/wp\/v2\/docs\/36\/revisions\/49"}],"wp:attachment":[{"href":"https:\/\/rulemancer.com\/blog\/wp-json\/wp\/v2\/media?parent=36"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/rulemancer.com\/blog\/wp-json\/wp\/v2\/doc_category?post=36"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/rulemancer.com\/blog\/wp-json\/wp\/v2\/doc_tag?post=36"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}