{"info":{"_postman_id":"01644a42-4556-4681-ba72-1cd7494849ce","name":"FX_Trading_API","description":"<html><head></head><body><p>This collection contains endpoints for user authentication, wallet management, and transaction tracking for a multi-currency FX trading platform.</p>\n<p>Supports NGN, USD, and EUR wallets.</p>\n<p>JWT-based authentication is required for protected routes.EndFragment</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"21481014","collectionId":"01644a42-4556-4681-ba72-1cd7494849ce","publishedId":"2sB2cVg39a","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2025-04-08T12:24:06.000Z"},"item":[{"name":"SignUp","event":[{"listen":"test","script":{"id":"8c2aaca9-22fe-4930-8893-8b2bced3c3f9","exec":["let json = pm.response.json();\r","\r","if (json.accessToken) {\r","  pm.environment.set(\"auth_token\", json.accessToken);\r","  console.log(\"Token saved:\", json.accessToken);\r","} else {\r","  console.warn(\"No accessToken found in response!\");\r","}"],"type":"text/javascript","packages":{}}}],"id":"03e4ecea-163e-4bec-80aa-ad07aa735b65","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"ajibewadannyboi@gmail.com\",\r\n    \"password\": \"ajibewa2451\",\r\n    \"repeatPassword\": \"ajibewa2451\",\r\n    \"firstName\": \"Daniel\",\r\n    \"lastName\": \"Ajibewa\"\r\n}","options":{"raw":{"language":"json"}}},"url":"localhost:8000/v1/auth/register/","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"01644a42-4556-4681-ba72-1cd7494849ce","id":"01644a42-4556-4681-ba72-1cd7494849ce","name":"FX_Trading_API","type":"collection"}},"urlObject":{"port":"8000","path":["v1","auth","register",""],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"03e4ecea-163e-4bec-80aa-ad07aa735b65"},{"name":"Login","event":[{"listen":"test","script":{"id":"15945088-65bf-4b5f-88fc-470918d25cdf","exec":["let json = pm.response.json();\r","\r","if (json.accessToken) {\r","  pm.collectionVariables.set(\"auth_token\", json.accessToken);\r","  console.log(\"Token saved:\", json.accessToken);\r","} else {\r","  console.warn(\"No accessToken found in response!\");\r","}"],"type":"text/javascript","packages":{}}},{"listen":"prerequest","script":{"id":"8822fa27-7aab-4185-98b4-a6d3b0b8fedb","exec":[""],"type":"text/javascript","packages":{}}}],"id":"d6f6a495-bcfd-48f6-b59d-ba38c60a1855","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"ajibewadannyboi@gmail.com\",\r\n    \"password\": \"ajibewa2451\"\r\n}","options":{"raw":{"language":"json"}}},"url":"localhost:3000/v1/auth/login","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"01644a42-4556-4681-ba72-1cd7494849ce","id":"01644a42-4556-4681-ba72-1cd7494849ce","name":"FX_Trading_API","type":"collection"}},"urlObject":{"port":"3000","path":["v1","auth","login"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"d6f6a495-bcfd-48f6-b59d-ba38c60a1855"},{"name":"Get Users","id":"c99ca88a-b66a-4f34-b4cc-51ea6144de8e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":false},"method":"GET","header":[],"url":"localhost:3000/users/","urlObject":{"port":"3000","path":["users",""],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"c99ca88a-b66a-4f34-b4cc-51ea6144de8e"},{"name":"Verify Email","event":[{"listen":"test","script":{"id":"5aaa7ceb-f270-4f52-b5ed-cf7c039ebeca","exec":[""],"type":"text/javascript","packages":{}}}],"id":"a21ead80-1f12-48bc-bfa5-9b1b33599e76","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"ajibewadannyboi@gmail.com\",\r\n    \"otpCode\": \"252761\"\r\n}","options":{"raw":{"language":"json"}}},"url":"localhost:3000/v1/auth/verify","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"01644a42-4556-4681-ba72-1cd7494849ce","id":"01644a42-4556-4681-ba72-1cd7494849ce","name":"FX_Trading_API","type":"collection"}},"urlObject":{"port":"3000","path":["v1","auth","verify"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"a21ead80-1f12-48bc-bfa5-9b1b33599e76"},{"name":"Resend OTP","id":"35fe7f8a-d098-4665-8117-7a2c147de0c5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"ajibewadannyboi@gmail.com\"\r\n}","options":{"raw":{"language":"json"}}},"url":"localhost:3000/auth/resend-otp","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"01644a42-4556-4681-ba72-1cd7494849ce","id":"01644a42-4556-4681-ba72-1cd7494849ce","name":"FX_Trading_API","type":"collection"}},"urlObject":{"port":"3000","path":["auth","resend-otp"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"35fe7f8a-d098-4665-8117-7a2c147de0c5"},{"name":"Get Wallet","id":"077c119f-c6b1-4ffe-8768-6de80bbac6fc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"localhost:3000/wallet","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"01644a42-4556-4681-ba72-1cd7494849ce","id":"01644a42-4556-4681-ba72-1cd7494849ce","name":"FX_Trading_API","type":"collection"}},"urlObject":{"port":"3000","path":["wallet"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"077c119f-c6b1-4ffe-8768-6de80bbac6fc"},{"name":"Fund Wallet","id":"d3e799ed-0d17-4bb4-b79d-39c78718177f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"currency\": \"NGN\",\r\n  \"amount\": 1000000\r\n}","options":{"raw":{"language":"json"}}},"url":"localhost:3000/wallet/fund","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"01644a42-4556-4681-ba72-1cd7494849ce","id":"01644a42-4556-4681-ba72-1cd7494849ce","name":"FX_Trading_API","type":"collection"}},"urlObject":{"port":"3000","path":["wallet","fund"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"d3e799ed-0d17-4bb4-b79d-39c78718177f"},{"name":"Get Transactions","id":"0b653936-c26f-41ef-ba0f-cfd828c657c6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"localhost:3000/transcations?&currency=NGN&page=1&limit=5","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"01644a42-4556-4681-ba72-1cd7494849ce","id":"01644a42-4556-4681-ba72-1cd7494849ce","name":"FX_Trading_API","type":"collection"}},"urlObject":{"port":"3000","path":["transcations"],"host":["localhost"],"query":[{"key":null,"value":null},{"key":"currency","value":"NGN"},{"key":"page","value":"1"},{"key":"limit","value":"5"}],"variable":[]}},"response":[],"_postman_id":"0b653936-c26f-41ef-ba0f-cfd828c657c6"},{"name":"Convert Funds","id":"862a39f4-606d-4144-904f-42bc2c9a5a3a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"amount\": 300,\r\n  \"sourceCurrency\": \"USD\",\r\n  \"targetCurrency\": \"EUR\"\r\n}","options":{"raw":{"language":"json"}}},"url":"localhost:3000/wallet/convert","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"01644a42-4556-4681-ba72-1cd7494849ce","id":"01644a42-4556-4681-ba72-1cd7494849ce","name":"FX_Trading_API","type":"collection"}},"urlObject":{"port":"3000","path":["wallet","convert"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"862a39f4-606d-4144-904f-42bc2c9a5a3a"},{"name":"Trade","id":"f98fd6b9-5cb7-435e-8b4e-70944a11d7cf","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"amount\": 1000000,\r\n  \"sourceCurrency\": \"NGN\",\r\n  \"targetCurrency\": \"USD\"\r\n}","options":{"raw":{"language":"json"}}},"url":"localhost:3000/wallet/trade","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"01644a42-4556-4681-ba72-1cd7494849ce","id":"01644a42-4556-4681-ba72-1cd7494849ce","name":"FX_Trading_API","type":"collection"}},"urlObject":{"port":"3000","path":["wallet","trade"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"f98fd6b9-5cb7-435e-8b4e-70944a11d7cf"}],"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]}},"event":[{"listen":"prerequest","script":{"id":"c4945aac-e441-4969-8c9e-02d4bb9f1b60","type":"text/javascript","packages":{},"exec":[""]}},{"listen":"test","script":{"id":"ffea7c4e-0b63-4b27-8e86-65329cfa8fa2","type":"text/javascript","packages":{},"exec":[""]}}],"variable":[{"key":"auth_token","value":""}]}