在这里,您可以创建/重新创建用于自动交易的私钥,该私钥将绑定到您的帐户。
您不明白为什么需要钥匙?为了个人安全,请不要将其告诉任何人。
在测试模式下,可以开始销售应用程序,这样就可以在我们的网站上自动进行交易 - CounterBot.
使用API,即表示您同意以下条款 合同, 其中,保修期是4小时.
json格式的价格表。
https://market.csgo.com/api/v2/prices/RUB.json
https://market.csgo.com/api/v2/prices/USD.json
https://market.csgo.com/api/v2/prices/EUR.json
json格式的价格清单,其中 buy_order 是该装备的最低报价。
https://market.csgo.com/api/v2/prices/class_instance/RUB.json
https://market.csgo.com/api/v2/prices/class_instance/USD.json
https://market.csgo.com/api/v2/prices/class_instance/EUR.json
{ success: true, time: 1565103435, currency: "RUB", items: { 1434515088_0: { price: "0.50", buy_order: "0.10", avg_price: "0.74", popularity_7d: "47", market_hash_name: "Arcane Defiance Loading Screen", ru_name: "Загрузочный экран «Arcane Defiance»", ru_rarity: "Common", ru_quality: "Standard", text_color: "D2D2D2", bg_color: "", }, 1479313949_0: { price: "0.60", buy_order: "0.10", avg_price: "0.94", popularity_7d: "13", market_hash_name: "Armor of Utter Eradication", ru_name: "Armor of Utter Eradication", ru_rarity: "Uncommon", ru_quality: "Standard", text_color: "D2D2D2", bg_color: "", } } }
创建一个请求,以转移机器人手中的已购装备。
https://market.csgo.com/api/v2/trade-request-take?key=[your_secret_key][&bot=botid]
{ "success": true, "trade": "1704976549", "nick": "NIPFribergEZIO", "botid": "354589802", "profile": "https://steamcommunity.com/profiles/76561198314855530/", "secret": "1J10", "items": [ "1812819920_188530170", "2082539396_188530139", "2048839018_902658099" ] }
创建一个请求,以将购买的商品转移给机器人
https://market.csgo.com/api/v2/trade-request-give?key=[your_secret_key]
{ "success": true, "trade": "1704976549", "nick": "NIPFribergEZIO", "botid": "354589802", "profile": "https://steamcommunity.com/profiles/76561198314855530/", "secret": "1J10", "items": [ 15060788266 ] }
要求提供资料以将商品转售给买方(仅限CS:GO, Dota2)
https://market.csgo.com/api/v2/trade-request-give-p2p?key=[your_secret_key]
{ "success": true, "hash" : "234234234/wefsdgsd", "offer" : { "partner" : 12345, "token" : "fffffff", "tradeoffermessage" : "sdfsdf . . . 234234234/wefsdgsd", "items" : [ { "appid" : 730, "contextid" : 2, "assetid" : 23452345, "amount" : 1} ] } }
Возвращает данные для создания всех тейдов (только для CS:GO и Dota2)
https://market.csgo.com/api/v2/trade-request-give-p2p-all?key=[your_secret_key]
{ "success": true, "hash" : "234234234/wefsdgsd", "offers" : [ { "partner" : 12345, "token" : "fffffff", "tradeoffermessage" : "sdfsdf . . . 234234234/wefsdgsd", "items" : [ { "appid" : 730, "contextid" : 2, "assetid" : 23452345, "amount" : 1} ] }, { "partner" : 123456, "token" : "fffffff", "tradeoffermessage" : "sdfsdf . . . 234234234/wefsdas", "items" : [ { "appid" : 730, "contextid" : 2, "assetid" : 23452346, "amount" : 1} ] } ]}
启用销售必须每3分钟发送一次。
https://market.csgo.com/api/v2/ping?key=[your_secret_key]
{ "success": true, "ping": "pong" }
停止销售装备。
https://market.csgo.com/api/v2/go-offline?key=[your_secret_key]
仅获取尚未出售的装备库存。
https://market.csgo.com/api/v2/my-inventory/?key=[your_secret_key]
{ "success": true, "items": [ { "id": "14933635912", "classid": "310776767", "instanceid": "0", "market_hash_name": "SCAR-20 | Carbon Fiber (Factory New)", "market_price": 10.34, "tradable": 1 } ]}
展出一个待售装备。要获取要参展的装备清单,请使用以下方法 my-inventory.
https://market.csgo.com/api/v2/add-to-sale?key=[your_secret_key]&id=[id]&price=[price]&cur=[currency]
{"success":true,"item_id":136285662}
{"success":false,"error":"bad_request"}
为装备设置新价格或取消销售。
https://market.csgo.com/api/v2/set-price?key=[your_secret_key]&item_id=[item_id]&price=[price]&cur=[currency]
{"success":true}
{"success":false,"error":"bad_item"}
立刻从销售中删除所有装备。
https://market.csgo.com/api/v2/remove-all-from-sale?key=[your_secret_key]
{"count":4, "success":true}
装备清单:
https://market.csgo.com/api/v2/items?key=[your_secret_key]
{ "success": true, "items": [ { "item_id": "286316844", "assetid": "15092687536", "classid": "637317999", "instanceid": "630912635", "real_instance": "1629337655", "market_hash_name": "Horns of Monstrous Reprisal", "position": 0, "price": 4, "currency": "USD", "status": "1", "live_time": 920, "left": null, "botid": "0" }]}
获取账户市场已发布装备的当前交易报价清单,您需要在Steam确认中确认报价。
https://market.csgo.com/api/v2/trades/?key=[your_secret_key]
https://market.csgo.com/api/v2/trades/?key=[your_secret_key]&extended=1
{ "success": true, "trades": [ { "dir": "in", "trade_id": "1705069832", "bot_id": "354486743", "timestamp": 23423423423 } ] }
{"success":true,"trades":[{"dir":"out","trade_id":"3759667687","bot_id":"1022850783","timestamp":1572021797,"secret":"3R5U","nik":"teresiacais","list_item_id":{"361847026":{"id":"361847026","assetid":"17737368051","classid":"284952881","instanceid":"1625510296"},"361851594":{"id":"361851594","assetid":"17737368059","classid":"284952881","instanceid":"1625510296"}}},{"dir":"in","trade_id":"3759668212","bot_id":"1022850783","timestamp":1572021825,"secret":"EC58","nik":"teresiacais","list_item_id":{"381304045":{"id":"381304045","assetid":"8028182393","classid":"996701649","instanceid":"0"}}}]}
购买装备。在此系统中,每个请求只能购买一个装备。
https://market.csgo.com/api/v2/buy?key=[your_secret_key]&hash_name=[market_hash_name]&price=[price]
https://market.csgo.com/api/v2/buy?key=[your_secret_key]&id=[id]&price=[price]
{ "success": true, "id": "136256960" }
购买装备并将其转售给其他用户。仅限CS:GO, Dota2
https://market.csgo.com/api/v2/buy-for?key=[your_secret_key]&hash_name=[market_hash_name]&price=[price]&partner=[partner]&token=[token]
https://market.csgo.com/api/v2/buy-for?key=[your_secret_key]&id=[id]&price=[price]&partner=[partner]&token=[token]
{ "success": true, "id": "136256960" }
Возвравщает информацию о статусе покупки
https://market.csgo.com/api/v2/get-buy-info-by-custom-id?key=[your_secret_key]&custom_id=[custom_id]
{ "success": true, "data": { "item_id": "534415936", "market_hash_name": "Spectrum 2 Case", "classid": "2521767801", "instance": "0", "time": "1548081954", "send_until" : null, "stage": "2", "paid": 0.5, "causer": null, "currency": "RUB", "for": "1234567", "trade_id": null } }
Возвравщает информацию о статусе покупки
https://market.csgo.com/api/v2/get-list-buy-info-by-custom-id?key=[your_secret_key]&custom_id[]=[custom_id1]&custom_id[]=[custom_id2]
{ "success": true, "data": { "custom_id": { "item_id": "534415936", "market_hash_name": "Spectrum 2 Case", "classid": "2521767801", "instance": "0", "time": "1548081954", "send_until" : null, "stage": "2", "paid": 0.5, "currency": "RUB", "for": "1234567", "trade_id": null } } }
所有平台的买卖历史记录
https://market.csgo.com/api/v2/history?key=[your_secret_key]&date=12312314&date_end=12312714
https://market.csgo.com/api/v2/history?key=[your_secret_key]&date=[DD-MM-YYYY]
{"success":true,"data":[{"item_id":"286316842","market_hash_name":"Maraxiform's Ire","class":"2274724615","instance":"57949762","time":"1546229560","event":"buy","app":"570","stage":"2","for":null,"custom_id":null,"paid":"72","currency":"RUB"}]}
获取余额总数及当前货币。
https://market.csgo.com/api/v2/get-money?key=[your_secret_key]
{"money": 123.45, "currency": "RUB", "success": true}
{"money": 123.456, "currency": "USD", "success": true}
{"money": 123.789, "currency": "EUR", "success": true}
建议立即暂停交易,还应该断开与Web的连接。
https://market.csgo.com/api/v2/go-offline?key=[your_secret_key]
{"success":true}
请求更新库存缓存(建议在接受交易报价之后再发送此请求)。
https://market.csgo.com/api/v2/update-inventory/?key=[your_secret_key]
{"success":true}
Перенос скидок на другой аккаунт
https://market.csgo.com/api/v2/transfer-discounts?key=[your_secret_key]&to=[his_secret_key]
{"success":true}
Узнать свой steamID
https://market.csgo.com/api/v2/get-my-steam-id?key=[your_secret_key]
{ "success": true, "steamid32": 123456, "steamid64": "1234123513245234" }
请求搜素一个装备的方案
https://market.csgo.com/api/v2/search-item-by-hash-name?key=[your_secret_key]&hash_name=[market_hash_name]
{ "success" : true, "currency" : "RUB", "list": [ { "market_hash_name" : "ABC", "price" : 400, "class" : 93975063, "instance" : 57944754, "count" : 10 } ] }
请求搜素一个装备的方案
https://market.csgo.com/api/v2/search-item-by-hash-name-specific?key=[your_secret_key]&hash_name=[market_hash_name]
{ "success": true, "currency": "USD", "data": [ { "id": 521320033, "market_hash_name": "AWP | Worm God (Factory New)", "price": 3573, "class": 3088304936, "instance": 480085569, "extra": { "float": "0.061443410813808", "phase": "aq_awp_twine" } }, { "id": 523494595, "market_hash_name": "AWP | Worm God (Factory New)", "price": 3604, "class": 1848971742, "instance": 480085569, "extra": { "float": "0.051711451262236", "phase": "aq_awp_twine" } }, { "id": 522446815, "market_hash_name": "AWP | Worm God (Factory New)", "price": 4386, "class": 3033846573, "instance": 188530139, "extra": { "float": "0.038657382130623", "phase": "aq_awp_twine" } }, { "id": 521834932, "market_hash_name": "AWP | Worm God (Factory New)", "price": 4386, "class": 3099667914, "instance": 188530139, "extra": { "float": "0.0054426062852144", "phase": "aq_awp_twine" } } ] }
Вариант для запроса по списку предметов
https://market.csgo.com/api/v2/search-list-items-by-hash-name-all?key=[your_secret_key]&list_hash_name[]=[market_hash_name]
{ "success": true, "currency": "RUB", "data": { "USP-S | Lead Conduit (Well-Worn)": [ { "id": 535992148, "price": "5100", "class": 3017010398, "instance": 188530139, "extra": { "float": "0.39269635081291", "phase": "gs_usp_voltage", "percent_success": "100.00", "average_time": "195" } } ] } }
Вариант для запроса по списку предметов
https://market.csgo.com/api/v2/get-list-items-info?key=[your_secret_key]&list_hash_name[]=[market_hash_name]
{ "success": true, "currency": "RUB", "data": { "USP-S | Lead Conduit (Well-Worn)": { "max": "100", "min": 1, "average": 50, "history": [ [12312312312, 1.234], [12312312313, 1.234] ] } } }
检查可能影响成功销售的所有障碍。
https://market.csgo.com/api/v2/test?key=[your_secret_key]
{ "success": true, "status": { "user_token": true, "trade_check": true, "site_online": false, "site_notmpban": false } }