What happens to a request, and the rules every endpoint follows.
You send requests to the gateway, and we route them to a licensed broker, which places orders on the Nigerian Exchange. We store each order before we send it to the exchange, and we send it only once. For the broker’s name, ask us.The broker holds your customers’ accounts, their cash and their shares, and the money you pay in sits in the broker’s client bank account. We keep your wallet’s ledger, and we record each order, application and allocation before we send it on. A request we refuse before that point leaves no record.
Concept
What to know
Authentication
Send your API key in the Authorization header as Bearer $KEY. Sandbox keys start with mgw_test_ and live keys start with mgw_live_. Each key works only in its own environment.
Amounts
Amounts are integers in kobo, the smallest unit of the naira. For example, 47500 is ₦475.00. A field ending in _kobo_decimal, such as an average price, is a decimal string of kobo.
Idempotency
Requests that create an order, an application or an allocation require an Idempotency-Key header. Once we’ve stored a request, a retry with the same key answers about that request instead of making a duplicate.
Errors
Every error has the same JSON shape. Use the code field in your logic. The message field is written for people and can change. See the error reference.
Events
Each change to an order, an application or an allocation creates an event. List events with GET /v1/events, or receive them at your webhook endpoint. See Webhooks.
Lists
Every list has the same envelope: data, has_more and next_cursor. A list that takes limit and cursor comes a page at a time: pass limit for its size, and next_cursor as cursor for the next page. Stop when has_more is false, and keep the same filters on every page. A list that takes neither comes complete, with has_more always false. See Fixed limits.
The sandbox has its own host and its own API keys. It uses test money and doesn’t connect to the exchange.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Matamba Gateway","description":"Trade Nigerian equities for your customers through one API: accounts, funding, orders and positions at a licensed broker.","colors":{"primary":"#0A3D2E","light":"#C8960C","dark":"#0F5C44"},"logo":{"light":"https://mintcdn.com/matamba/d7uU7aKELCLD1XFJ/logo-light.svg?fit=max\u0026auto=format\u0026n=d7uU7aKELCLD1XFJ\u0026q=85\u0026s=7255112e296a0116626af645d9d94b0b","dark":"https://mintcdn.com/matamba/d7uU7aKELCLD1XFJ/logo-dark.svg?fit=max\u0026auto=format\u0026n=d7uU7aKELCLD1XFJ\u0026q=85\u0026s=bbb9ac582fa51c28ceea7f84114185ca"},"favicon":"https://mintcdn.com/matamba/d7uU7aKELCLD1XFJ/favicon.svg?fit=max\u0026auto=format\u0026n=d7uU7aKELCLD1XFJ\u0026q=85\u0026s=0dca95b27c12ee7c41bd60b272709a6c","api":{"playground":{"display":"simple"},"examples":{"languages":["curl","javascript","python","go"]}},"appearance":{"default":"light"},"background":{"color":{"light":"#FFFFFF","dark":"#060F0B"}},"fonts":{"family":"Inter"},"styling":{"eyebrows":"breadcrumbs","codeblocks":"dark","latex":false},"contextual":{"options":["copy","view","chatgpt","claude"],"display":"header"},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"matamba","hasAudioNarration":false,"actualSubdomain":"matamba","customDomains":["docs.matambaintelligence.com"],"gitSource":{"type":"github","owner":"max-nvs","repo":"matamba-gateway","deployBranch":"main","contentDirectory":"docs/partner","isPrivate":true,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"DISABLED"},"WEB_MCP":{"status":"DISABLED"},"NARRATION":{"status":"DISABLED"}},"buildId":"6aeb63e2635e0e88d9ac05b5","clientVersion":"0.0.4271","searchFilterCounts":[{"language":"default","tag":"API reference","count":27},{"language":"default","tag":"Guides","count":21},{"language":"default","tag":"Reference","count":10},{"language":"default","tag":"How-to","count":8},{"language":"default","tag":"Accounts","count":6},{"language":"default","tag":"Orders","count":5},{"language":"default","tag":"Wallet","count":5},{"language":"default","tag":"Concepts","count":4},{"language":"default","tag":"Applications","count":4},{"language":"default","tag":"Get started","count":2}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":"#content-area p,#content-area .mdx-content>span,#header p{max-width:70ch}.nav-logo{height:34px}.method-nav-pill{width:auto;min-width:2.5rem}.method-nav-pill>span{font-size:11px}html:not(.dark) [data-component-part=\"field-required-pill\"]{color:#b91c1c}"}]}
{"page":{"pagePath":"how-it-works","slug":"/how-it-works","pageMetadata":{"title":"How it works","description":"What happens to a request, and the rules every endpoint follows.","href":"/how-it-works"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"What happens to a request, and the rules every endpoint follows.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,p:`p`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{Mermaid,Note,Table}=_components;if(!Mermaid)_missingMdxReference(`Mermaid`,true);if(!Note)_missingMdxReference(`Note`,true);if(!Table)_missingMdxReference(`Table`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`You send requests to the gateway, and we route them to a licensed broker, which places orders on the Nigerian Exchange. We store each order before we send it to the exchange, and we send it only once. For the broker’s name, `,_jsx(_components.a,{href:`/support`,children:`ask us`}),`.`]}),`\n`,_jsx(Mermaid,{chart:`%%{init: {\"theme\": \"neutral\"}}%%\nflowchart LR\n you[\"Your servers\"] -->|\"requests with your API key\"| gw[\"Matamba Gateway\"]\n gw -->|\"orders, new accounts, allocations and reads\"| broker[\"Licensed broker\"]\n gw -->|\"identity checks\"| registries[\"Identity registries and banks\"]\n gw -->|\"new accounts\"| cscs[\"Depository (CSCS)\"]\n broker -->|\"orders\"| exchange[\"Nigerian Exchange\"]\n gw -->|\"signed events\"| hook[\"Your webhook endpoint\"]`}),`\n`,_jsx(_components.p,{children:`The broker holds your customers’ accounts, their cash and their shares, and the money you pay in sits in the broker’s client bank account. We keep your wallet’s ledger, and we record each order, application and allocation before we send it on. A request we refuse before that point leaves no record.`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Concept`}),_jsx(_components.th,{children:`What to know`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Authentication`}),_jsxs(_components.td,{children:[`Send your API key in the `,_jsx(_components.code,{children:`Authorization`}),` header as `,_jsx(_components.code,{children:`Bearer $KEY`}),`. Sandbox keys start with `,_jsx(_components.code,{children:`mgw_test_`}),` and live keys start with `,_jsx(_components.code,{children:`mgw_live_`}),`. Each key works only in its own environment.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Amounts`}),_jsxs(_components.td,{children:[`Amounts are integers in kobo, the smallest unit of the naira. For example, `,_jsx(_components.code,{children:`47500`}),` is ₦475.00. A field ending in `,_jsx(_components.code,{children:`_kobo_decimal`}),`, such as an average price, is a decimal string of kobo.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Idempotency`}),_jsxs(_components.td,{children:[`Requests that create an order, an application or an allocation require an `,_jsx(_components.code,{children:`Idempotency-Key`}),` header. Once we’ve stored a request, a retry with the same key answers about that request instead of making a duplicate.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Errors`}),_jsxs(_components.td,{children:[`Every error has the same JSON shape. Use the `,_jsx(_components.code,{children:`code`}),` field in your logic. The `,_jsx(_components.code,{children:`message`}),` field is written for people and can change. See the `,_jsx(_components.a,{href:`/errors`,children:`error reference`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Events`}),_jsxs(_components.td,{children:[`Each change to an order, an application or an allocation creates an event. List events with `,_jsx(_components.code,{children:`GET /v1/events`}),`, or receive them at your webhook endpoint. See `,_jsx(_components.a,{href:`/webhooks`,children:`Webhooks`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Lists`}),_jsxs(_components.td,{children:[`Every list has the same envelope: `,_jsx(_components.code,{children:`data`}),`, `,_jsx(_components.code,{children:`has_more`}),` and `,_jsx(_components.code,{children:`next_cursor`}),`. A list that takes `,_jsx(_components.code,{children:`limit`}),` and `,_jsx(_components.code,{children:`cursor`}),` comes a page at a time: pass `,_jsx(_components.code,{children:`limit`}),` for its size, and `,_jsx(_components.code,{children:`next_cursor`}),` as `,_jsx(_components.code,{children:`cursor`}),` for the next page. Stop when `,_jsx(_components.code,{children:`has_more`}),` is false, and keep the same filters on every page. A list that takes neither comes complete, with `,_jsx(_components.code,{children:`has_more`}),` always false. See `,_jsx(_components.a,{href:`/limits#fixed-limits`,children:`Fixed limits`}),`.`]})]})]})]}),`\n`,_jsxs(_components.p,{children:[`To go further, read about `,_jsx(_components.a,{href:`/orders`,children:`orders`}),`, `,_jsx(_components.a,{href:`/idempotency`,children:`idempotency`}),`, your `,_jsx(_components.a,{href:`/wallet`,children:`wallet`}),` and `,_jsx(_components.a,{href:`/webhooks`,children:`webhooks`}),`. The terms these pages use are in the `,_jsx(_components.a,{href:`/glossary`,children:`glossary`}),`.`]}),`\n`,_jsx(Note,{children:_jsx(_components.p,{children:`The sandbox has its own host and its own API keys. It uses test money and doesn’t connect to the exchange.`})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"codeStyling":"dark","config":{},"pageMetadata":{"title":"How it works","description":"What happens to a request, and the rules every endpoint follows.","href":"/how-it-works"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"subdomain":"matamba","siteName":"Matamba Gateway","title":"How it works - Matamba Gateway","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-10-11T16:28:24.722Z","originalFileLocation":"how-it-works.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"light\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"What happens to a request, and the rules every endpoint follows.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Matamba Gateway\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/matamba/1MSvvumHSgJnS-Pj/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/matamba/1MSvvumHSgJnS-Pj/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/matamba/1MSvvumHSgJnS-Pj/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/matamba/1MSvvumHSgJnS-Pj/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/matamba/1MSvvumHSgJnS-Pj/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/matamba/1MSvvumHSgJnS-Pj/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/matamba/1MSvvumHSgJnS-Pj/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/matamba/1MSvvumHSgJnS-Pj/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/matamba/1MSvvumHSgJnS-Pj/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"How it works - Matamba Gateway\">\u003cmeta data-mint-head property=\"og:description\" content=\"What happens to a request, and the rules every endpoint follows.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Matamba Gateway\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.matambaintelligence.com/how-it-works\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://matamba.mintlify.site/_mintlify/api/og/v2?division=Concepts\u0026amp;title=How+it+works\u0026amp;description=What+happens+to+a+request%2C+and+the+rules+every+endpoint+follows.\u0026amp;theme=f9488778c2f498e369638a5d\u0026amp;signature=cabb12ba0d409078896328a5eef13d24377479f8b1b5a8e1f949e0e481f67ab5\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"How it works - Matamba Gateway\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"What happens to a request, and the rules every endpoint follows.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://matamba.mintlify.site/_mintlify/api/og/v2?division=Concepts\u0026amp;title=How+it+works\u0026amp;description=What+happens+to+a+request%2C+and+the+rules+every+endpoint+follows.\u0026amp;theme=f9488778c2f498e369638a5d\u0026amp;signature=cabb12ba0d409078896328a5eef13d24377479f8b1b5a8e1f949e0e481f67ab5\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/matamba/1MSvvumHSgJnS-Pj/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Matamba Gateway\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#0A3D2E\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.matambaintelligence.com/how-it-works\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/how-it-works.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.matambaintelligence.com/#organization\",\"name\":\"Matamba Gateway\",\"url\":\"https://docs.matambaintelligence.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/matamba/d7uU7aKELCLD1XFJ/logo-light.svg?fit=max\u0026auto=format\u0026n=d7uU7aKELCLD1XFJ\u0026q=85\u0026s=7255112e296a0116626af645d9d94b0b\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.matambaintelligence.com#website\",\"name\":\"Matamba Gateway\",\"url\":\"https://docs.matambaintelligence.com\",\"publisher\":{\"@id\":\"https://docs.matambaintelligence.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.matambaintelligence.com/how-it-works#webpage\",\"url\":\"https://docs.matambaintelligence.com/how-it-works\",\"name\":\"How it works\",\"description\":\"What happens to a request, and the rules every endpoint follows.\",\"dateModified\":\"2026-10-11T16:28:24.722Z\",\"isPartOf\":{\"@id\":\"https://docs.matambaintelligence.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.matambaintelligence.com/how-it-works#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.matambaintelligence.com/how-it-works#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Matamba Gateway\",\"item\":\"https://docs.matambaintelligence.com\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How it works\",\"item\":\"https://docs.matambaintelligence.com/how-it-works\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.matambaintelligence.com/how-it-works#article\",\"headline\":\"How it works\",\"name\":\"How it works\",\"description\":\"What happens to a request, and the rules every endpoint follows.\",\"url\":\"https://docs.matambaintelligence.com/how-it-works\",\"mainEntityOfPage\":{\"@id\":\"https://docs.matambaintelligence.com/how-it-works#webpage\"},\"dateModified\":\"2026-10-11T16:28:24.722Z\",\"publisher\":{\"@id\":\"https://docs.matambaintelligence.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.matambaintelligence.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Matamba Gateway\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Matamba Gateway\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/how-it-works.md","siteName":"Matamba Gateway","nav":{"global":null,"tabs":[{"tab":"Guides","groups":[{"group":"Get started","pages":[{"title":"Matamba Gateway","sidebarTitle":"Overview","mode":"frame","href":""},{"title":"Quickstart","description":"Place your first order in the sandbox and see the resulting position.","href":"/quickstart"}]},{"group":"Concepts","pages":[{"title":"How it works","href":"/how-it-works"},{"title":"Orders","description":"An order's states, types and times in force, what a fill becomes, and how dividends, bonus shares and rights issues reach a customer.","href":"/orders"},{"title":"Idempotency","href":"/idempotency"},{"title":"Wallet","href":"/wallet"}]},{"group":"How-to","pages":[{"title":"Get access and support","sidebarTitle":"Access and support","href":"/support"},{"title":"Open an account","href":"/applications"},{"title":"Fund an account","href":"/funding"},{"title":"Trade for a customer","sidebarTitle":"Trade","href":"/trade"},{"title":"Webhooks","href":"/webhooks"},{"title":"Handle errors","href":"/handle-errors"},{"title":"Handle an uncertain result","href":"/handling-uncertain"},{"title":"Troubleshooting","href":"/troubleshooting"}]},{"group":"Reference","pages":[{"title":"Errors","href":"/errors"},{"title":"Limits","href":"/limits"},{"title":"Sandbox","href":"/sandbox"},{"title":"Keys and security","href":"/keys-and-security"},{"title":"Glossary","href":"/glossary"},{"title":"Versioning","href":"/versioning"},{"title":"Changelog","href":"/changelog"}]}]},{"tab":"API reference","pages":[{"title":"API reference","href":"/api-reference/accounts/list-your-accounts"}]}]},"basePath":"","title":"How it works - Matamba Gateway","deploymentId":"dpl_Em2U4NQQ2N2DE3HPbPUJVZLnAtvc","buildId":"dpl_Em2U4NQQ2N2DE3HPbPUJVZLnAtvc","dynamics":[],"chunks":[]}