{"activeVersionTag":"latest","latestAvailableVersionTag":"latest","collection":{"info":{"_postman_id":"90422360-929b-4846-b330-ffcb72516cbc","name":"500 Trading","description":"All number values should be BUX values, which is our on-site currency. **$1 = 1666 BUX**\n\nAvailable balance types: \"bux\", \"bch\", \"btc\", \"doge\", \"eos\", \"eth\", \"ltc\", \"sol\", \"xlm\", \"xrp\", \"usdt\", \"usdc\", \"bnb\", \"trx\", \"avax\", \"matic\", \"ada\".\n\nSome requests require `appId`. Currently we're supporting CSGO and Rust marketplaces.\n\nCSGO `appId` - 730\n\nRust `appId` - 252490\n\n# Escrow\n\n**This is currently only related to CS2.**  \n**Trading flow with RUST items remains the same.**\n\nStarting 10.04.24, due to Steam changes, we'll be using the [Escrow](https://en.wikipedia.org/wiki/Escrow) system, where we'll rely on users to confirm whether the trade has been successful or not.\n\nSellers will need to manually confirm that they have sent the item.  \nBuyers will need to manually confirm that they have received the item.\n\nThis is when the trade will be considered successful and funds credited.\n\n\\* Buyers will be able to confirm that they have received the item even if sellers didn't mark the item as sent.\n\nBuyers will be able to open a dispute if the seller marked the item as sent but didn't actually send it.\n\nIf the seller marked the item as sent and the buyer didn't act on the listing, as in, didn't confirm nor opened the dispute, we'll automatically open a dispute when the trade time ends.\n\nAll dispute cases will need to be reviewed by support. You will have to contact us and provide video evidence.\n\nWe're adding new endpoints so you can manipulate the trade status:\n\n- [/confirm-sent](https://docs.500casino.io/#41582bb3-0b79-48dd-a53a-fd1d4cd8ce69)\n    \n- [/confirm-received](https://docs.500casino.io/#e88acb47-922d-4f9e-9f1e-ec3ee918c944)\n    \n- [/dispute](https://docs.500casino.io/#317a8ae2-a9c7-42f2-a8d5-ddac7c18f089)\n    \n\nAlso you have to send the following body to the [ping request](https://docs.500casino.io/#26c49fad-39e5-4951-a06b-e7322f1500fa) now, to ensure that you understand and comply with the changes:  \n`{ version: 2 }`\n\n# Changelog\n\n[https://discord.com/channels/421268677099520000/1085604835283435713](https://discord.com/channels/421268677099520000/1085604835283435713)\n\n# Base URL\n\n[https://tradingapi.500.casino/api/v1](https://tradingapi.500.casino/api/v1)\n\n# Authentication\n\nEach request requires a `'x-500-auth'` header with a **JWT**. Payload must be `{userId: \"your user id\"}` _signed by your API key.\n\nHTTP request example:\n\n``` javascript\nconst jwt = require('jsonwebtoken');\nconst userId = `your_user_id`;\nconst apiKey = `your_api_key`;\nconst baseURL = \"https://tradingapi.500.casino/api/v1\";\nconst authToken = jwt.sign({ userId: 'your id' }, your_api_key);\nfetch(baseURL + \"/balance\", {\n    headers: {\n        \"x-500-auth\": authToken,\n    }\n});\n\n ```\n\nSockets connection example is provided below:\n\n``` javascript\nconst jwt = require('jsonwebtoken');  \nconst authToken = jwt.sign({ userId: 'your id' }, your_api_key);\nconst options = {\n    transports: [\"websocket\"],\n    secure: true,\n    reconnect: true,\n    /* extraHeaders: {\n        'x-500-auth': authToken\n    },*/\n    auth: {\n        'x-500-auth': authToken\n    }\n};\nconst socket = io.connect(\"wss://tradingapi.500.casino\", options);\n\n ```\n\n# Listing statuses\n\n3 - Listed - `{ short: \"market_listed\", nice: \"Active Listing\" }`  \n4 - Requested - `{ short: \"market_requested\", nice: \"Requested for Withdraw\" }`  \n5 - Request confirmed - `{ short: \"market_confirmed\", nice: \"Confirmed by seller\" }`  \n6 - Waiting for tradeoffer - `{ short: \"market_waiting_tradeoffer\", nice: \"Waiting for tradeoffer\" }`  \n7 - Sent - `{ short: \"market_sent\", nice: \"User sent the tradeoffer\" }`  \n8 - Accepted - `{ short: \"market_accepted\", nice: \"Accepted\" }`  \n9 - Cancelled - `{ short: \"market_cancelled\", nice: \"Cancelled\" }`  \n10 - Disputed - `{ short: \"market_disputed\", nice: \"Disputed\" }`  \n11 - Expired - `{ short: \"market_expired\", nice: \"Expired\" }`  \n12 - Error - `{ short: \"market_error\", nice: \"ERROR\" }`  \n13 - Locked - `{ short: \"market_locked\", nice: \"LOCKED\" }`  \n14 - Archived - `{ short: \"market_archived\", nice: \"Archived\" }`  \n15 - Timed out - `{ short: \"market_timedout\", nice: \"Timed out\" }`\n17 - Trade Protected - `{ short: \"market_trade_protected\", nice: \"Trade Protected\" }`\n\nLocked - requires a look from the support if you're missing anything.  \nTimed out - not sent / not accepted.  \nArchived - fixed by support.  \nExpired - purchase not accepted (on-site).\n\n# Responses\n\nAll responses will have the following format:  \n`{success: true, data: {}}`  \nOR  \n`{success: false, message: \"\", type: \"\", data: {}}`\n\n# Endpoints","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","isPublicCollection":true,"owner":"26262944","team":4788210,"collectionId":"90422360-929b-4846-b330-ffcb72516cbc","publishedId":"2s93JruPDQ","public":true,"publicUrl":"https://docs.500casino.io","privateUrl":"https://go.postman.co/documentation/26262944-90422360-929b-4846-b330-ffcb72516cbc","customColor":{"top-bar":"322f3b","right-sidebar":"322f3b","highlight":"fe617c"},"documentationLayout":"classic-double-column","customisation":null,"version":"8.10.1","publishDate":"2023-03-09T14:28:32.000Z","activeVersionTag":"latest","documentationTheme":"light","metaTags":{},"logos":{}},"statusCode":200},"environments":[],"user":{"authenticated":false,"permissions":{"publish":false}},"run":{"button":{"js":"https://run.pstmn.io/button.js","css":"https://run.pstmn.io/button.css"}},"web":"https://www.getpostman.com/","team":{"logo":"https://res.cloudinary.com/postman/image/upload/t_team_logo_pubdoc/v1/team/e85deeb52574f6725a6489fc2f68d15afb1bec045bc7f40cb9759333f558b5c6","favicon":"https://500casino.io/favicon.ico"},"isEnvFetchError":false,"languages":"[{\"key\":\"csharp\",\"label\":\"C#\",\"variant\":\"HttpClient\"},{\"key\":\"csharp\",\"label\":\"C#\",\"variant\":\"RestSharp\"},{\"key\":\"curl\",\"label\":\"cURL\",\"variant\":\"cURL\"},{\"key\":\"dart\",\"label\":\"Dart\",\"variant\":\"http\"},{\"key\":\"go\",\"label\":\"Go\",\"variant\":\"Native\"},{\"key\":\"http\",\"label\":\"HTTP\",\"variant\":\"HTTP\"},{\"key\":\"java\",\"label\":\"Java\",\"variant\":\"OkHttp\"},{\"key\":\"java\",\"label\":\"Java\",\"variant\":\"Unirest\"},{\"key\":\"javascript\",\"label\":\"JavaScript\",\"variant\":\"Fetch\"},{\"key\":\"javascript\",\"label\":\"JavaScript\",\"variant\":\"jQuery\"},{\"key\":\"javascript\",\"label\":\"JavaScript\",\"variant\":\"XHR\"},{\"key\":\"c\",\"label\":\"C\",\"variant\":\"libcurl\"},{\"key\":\"nodejs\",\"label\":\"NodeJs\",\"variant\":\"Axios\"},{\"key\":\"nodejs\",\"label\":\"NodeJs\",\"variant\":\"Native\"},{\"key\":\"nodejs\",\"label\":\"NodeJs\",\"variant\":\"Request\"},{\"key\":\"nodejs\",\"label\":\"NodeJs\",\"variant\":\"Unirest\"},{\"key\":\"objective-c\",\"label\":\"Objective-C\",\"variant\":\"NSURLSession\"},{\"key\":\"ocaml\",\"label\":\"OCaml\",\"variant\":\"Cohttp\"},{\"key\":\"php\",\"label\":\"PHP\",\"variant\":\"cURL\"},{\"key\":\"php\",\"label\":\"PHP\",\"variant\":\"Guzzle\"},{\"key\":\"php\",\"label\":\"PHP\",\"variant\":\"HTTP_Request2\"},{\"key\":\"php\",\"label\":\"PHP\",\"variant\":\"pecl_http\"},{\"key\":\"powershell\",\"label\":\"PowerShell\",\"variant\":\"RestMethod\"},{\"key\":\"python\",\"label\":\"Python\",\"variant\":\"http.client\"},{\"key\":\"python\",\"label\":\"Python\",\"variant\":\"Requests\"},{\"key\":\"r\",\"label\":\"R\",\"variant\":\"httr\"},{\"key\":\"r\",\"label\":\"R\",\"variant\":\"RCurl\"},{\"key\":\"ruby\",\"label\":\"Ruby\",\"variant\":\"Net::HTTP\"},{\"key\":\"shell\",\"label\":\"Shell\",\"variant\":\"Httpie\"},{\"key\":\"shell\",\"label\":\"Shell\",\"variant\":\"wget\"},{\"key\":\"swift\",\"label\":\"Swift\",\"variant\":\"URLSession\"}]","languageSettings":[{"key":"csharp","label":"C#","variant":"HttpClient"},{"key":"csharp","label":"C#","variant":"RestSharp"},{"key":"curl","label":"cURL","variant":"cURL"},{"key":"dart","label":"Dart","variant":"http"},{"key":"go","label":"Go","variant":"Native"},{"key":"http","label":"HTTP","variant":"HTTP"},{"key":"java","label":"Java","variant":"OkHttp"},{"key":"java","label":"Java","variant":"Unirest"},{"key":"javascript","label":"JavaScript","variant":"Fetch"},{"key":"javascript","label":"JavaScript","variant":"jQuery"},{"key":"javascript","label":"JavaScript","variant":"XHR"},{"key":"c","label":"C","variant":"libcurl"},{"key":"nodejs","label":"NodeJs","variant":"Axios"},{"key":"nodejs","label":"NodeJs","variant":"Native"},{"key":"nodejs","label":"NodeJs","variant":"Request"},{"key":"nodejs","label":"NodeJs","variant":"Unirest"},{"key":"objective-c","label":"Objective-C","variant":"NSURLSession"},{"key":"ocaml","label":"OCaml","variant":"Cohttp"},{"key":"php","label":"PHP","variant":"cURL"},{"key":"php","label":"PHP","variant":"Guzzle"},{"key":"php","label":"PHP","variant":"HTTP_Request2"},{"key":"php","label":"PHP","variant":"pecl_http"},{"key":"powershell","label":"PowerShell","variant":"RestMethod"},{"key":"python","label":"Python","variant":"http.client"},{"key":"python","label":"Python","variant":"Requests"},{"key":"r","label":"R","variant":"httr"},{"key":"r","label":"R","variant":"RCurl"},{"key":"ruby","label":"Ruby","variant":"Net::HTTP"},{"key":"shell","label":"Shell","variant":"Httpie"},{"key":"shell","label":"Shell","variant":"wget"},{"key":"swift","label":"Swift","variant":"URLSession"}],"languageOptions":[{"label":"C# - HttpClient","value":"csharp - HttpClient - C#"},{"label":"C# - RestSharp","value":"csharp - RestSharp - C#"},{"label":"cURL - cURL","value":"curl - cURL - cURL"},{"label":"Dart - http","value":"dart - http - Dart"},{"label":"Go - Native","value":"go - Native - Go"},{"label":"HTTP - HTTP","value":"http - HTTP - HTTP"},{"label":"Java - OkHttp","value":"java - OkHttp - Java"},{"label":"Java - Unirest","value":"java - Unirest - Java"},{"label":"JavaScript - Fetch","value":"javascript - Fetch - JavaScript"},{"label":"JavaScript - jQuery","value":"javascript - jQuery - JavaScript"},{"label":"JavaScript - XHR","value":"javascript - XHR - JavaScript"},{"label":"C - libcurl","value":"c - libcurl - C"},{"label":"NodeJs - Axios","value":"nodejs - Axios - NodeJs"},{"label":"NodeJs - Native","value":"nodejs - Native - NodeJs"},{"label":"NodeJs - Request","value":"nodejs - Request - NodeJs"},{"label":"NodeJs - Unirest","value":"nodejs - Unirest - NodeJs"},{"label":"Objective-C - NSURLSession","value":"objective-c - NSURLSession - Objective-C"},{"label":"OCaml - Cohttp","value":"ocaml - Cohttp - OCaml"},{"label":"PHP - cURL","value":"php - cURL - PHP"},{"label":"PHP - Guzzle","value":"php - Guzzle - PHP"},{"label":"PHP - HTTP_Request2","value":"php - HTTP_Request2 - PHP"},{"label":"PHP - pecl_http","value":"php - pecl_http - PHP"},{"label":"PowerShell - RestMethod","value":"powershell - RestMethod - PowerShell"},{"label":"Python - http.client","value":"python - http.client - Python"},{"label":"Python - Requests","value":"python - Requests - Python"},{"label":"R - httr","value":"r - httr - R"},{"label":"R - RCurl","value":"r - RCurl - R"},{"label":"Ruby - Net::HTTP","value":"ruby - Net::HTTP - Ruby"},{"label":"Shell - Httpie","value":"shell - Httpie - Shell"},{"label":"Shell - wget","value":"shell - wget - Shell"},{"label":"Swift - URLSession","value":"swift - URLSession - Swift"}],"layoutOptions":[{"value":"classic-single-column","label":"Single Column"},{"value":"classic-double-column","label":"Double Column"}],"versionOptions":[],"environmentOptions":[{"value":"0","label":"No Environment"}],"canonicalUrl":"https://docs.500casino.io/view/metadata/2s93JruPDQ"}