Skip to content

Commit 334c339

Browse files
authored
Binance.us (Independent Publisher) (#1422)
* Binance.us (Independent Publisher) Initial Commit * Binance.us (Independent Publisher) Minor Updates * Binance.us (Independent Publisher) Updated readme
1 parent 43b3e5e commit 334c339

File tree

3 files changed

+217
-0
lines changed

3 files changed

+217
-0
lines changed
Lines changed: 182 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,182 @@
1+
{
2+
"swagger": "2.0",
3+
"info": {
4+
"version": "3.0.0",
5+
"title": "Binance.us",
6+
"description": "A Power Platform Connector for connecting to the Binance.us API to query crypto market rates and trades.",
7+
"contact": {
8+
"name": "Roy Paar",
9+
"email": "roypaar@microsoft.com"
10+
}
11+
},
12+
"host": "api.binance.us",
13+
"basePath": "/api/v3",
14+
"schemes": [
15+
"https"
16+
],
17+
"consumes": [],
18+
"produces": [
19+
"application/json"
20+
],
21+
"paths": {
22+
"/ticker/price": {
23+
"get": {
24+
"summary": "Get Live Ticker Price",
25+
"description": "Latest price for a symbol or symbols. If the symbol is not sent, prices for all symbols will be returned in an array.",
26+
"operationId": "GetLiveTickerPrice",
27+
"parameters": [
28+
{
29+
"name": "symbol",
30+
"required": false,
31+
"in": "query",
32+
"type": "string",
33+
"x-ms-summary": "Desired currency code and base currency code with no space",
34+
"description": "Enter symbol parameter as the desired currency followed by base currency with no space ie LTCUSD"
35+
}
36+
],
37+
"responses": {
38+
"200": {
39+
"description": "The operation was successful.",
40+
"schema": {
41+
"$ref": "#/definitions/GetLiveTickerPriceResponse"
42+
}
43+
}
44+
}
45+
}
46+
},
47+
"/exchangeInfo": {
48+
"get": {
49+
"summary": "Get Exchange Information",
50+
"description": "Current exchange trading rules and symbol information.",
51+
"operationId": "GetExchangeInformation",
52+
"parameters": [
53+
{
54+
"name": "symbol",
55+
"required": false,
56+
"in": "query",
57+
"type": "string",
58+
"x-ms-summary": "Desired currency code and base currency code with no space",
59+
"description": "Enter symbol parameter as the desired currency followed by base currency with no space ie LTCUSD"
60+
}
61+
],
62+
"responses": {
63+
"200": {
64+
"description": "The operation was successful.",
65+
"schema": {
66+
"$ref": "#/definitions/GetExchangeInfoResponse"
67+
}
68+
}
69+
}
70+
}
71+
},
72+
"/trades": {
73+
"get": {
74+
"summary": "Get Recent Trades",
75+
"description": "Get recent trades (up to last 1000).",
76+
"operationId": "GetRecentTrades",
77+
"parameters": [
78+
{
79+
"name": "symbol",
80+
"required": true,
81+
"in": "query",
82+
"type": "string",
83+
"x-ms-summary": "Desired currency code and base currency code with no space",
84+
"description": "Enter symbol parameter as the desired currency followed by base currency with no space ie LTCUSD"
85+
},
86+
{
87+
"name": "limit",
88+
"required": false,
89+
"in": "query",
90+
"type": "integer",
91+
"x-ms-summary": "Default 500; max 1000",
92+
"description": "Default 500; max 1000"
93+
}
94+
],
95+
"responses": {
96+
"200": {
97+
"description": "The operation was successful.",
98+
"schema": {
99+
"$ref": "#/definitions/GetRecentTradesResponse"
100+
}
101+
}
102+
}
103+
}
104+
}
105+
},
106+
"definitions": {
107+
"GetLiveTickerPriceResponse": {
108+
"type": "object",
109+
"properties": {
110+
"statusDetails": {
111+
"$ref": "#/definitions/statusDetails"
112+
}
113+
}
114+
},
115+
"GetExchangeInfoResponse": {
116+
"type": "object",
117+
"properties": {
118+
"statusDetails": {
119+
"$ref": "#/definitions/statusDetails"
120+
}
121+
}
122+
},
123+
"GetRecentTradesResponse": {
124+
"type": "object",
125+
"properties": {
126+
"statusDetails": {
127+
"$ref": "#/definitions/statusDetails"
128+
}
129+
}
130+
},
131+
"statusDetails": {
132+
"type": "object",
133+
"properties": {
134+
"success": {
135+
"type": "boolean"
136+
},
137+
"statusCode": {
138+
"type": "string"
139+
},
140+
"messages": {
141+
"type": "array",
142+
"items": {
143+
"$ref": "#/definitions/messages"
144+
}
145+
}
146+
}
147+
},
148+
"messages": {
149+
"type": "object",
150+
"properties": {
151+
"code": {
152+
"type": "string"
153+
},
154+
"description": {
155+
"type": "string"
156+
},
157+
"id": {
158+
"type": "string"
159+
}
160+
}
161+
}
162+
},
163+
"parameters": {},
164+
"responses": {},
165+
"tags": [],
166+
"x-ms-connector-metadata": [
167+
{
168+
"propertyName": "Website",
169+
"propertyValue": "https://www.binance.us/"
170+
},
171+
{
172+
"propertyName": "Privacy policy",
173+
"propertyValue": "https://www.binance.us/en/privacy-policy"
174+
},
175+
{
176+
"propertyName": "Categories",
177+
"propertyValue": "Finance"
178+
}
179+
],
180+
"securityDefinitions": {},
181+
"security": []
182+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"properties": {
3+
"connectionParameters": {},
4+
"iconBrandColor": "#da3b01",
5+
"capabilities": [],
6+
"publisher": "Roy Paar",
7+
"stackOwner": "Binance.us"
8+
}
9+
}
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Binance.us
2+
The Binance platform allows anyone to get crypto market rates and historical trades. This connector allows a user to pull this data into their app, flow, or report.
3+
4+
## Publisher: Roy Paar
5+
6+
## Prerequisites
7+
None.
8+
9+
## Obtaining Credentials
10+
No credentials are required for this connector.
11+
12+
## Supported Operations
13+
### Get Live Ticker Price
14+
Latest price for a symbol. If the symbol is not sent, prices for all symbols will be returned in an array. Enter two three-digit currency codes with no separation i.e. BTCUSD to see the market rate of the first currency in the denomination of the second.
15+
16+
### Get Exchange Information
17+
Current exchange trading rules and symbol information. Enter two three-digit currency codes with no separation i.e. BTCUSD to see the market rate of the first currency in the denomination of the second.
18+
19+
### Get Recent Trades
20+
Get recent trades (up to last 1000). Enter two three-digit currency codes with no separation i.e. BTCUSD to see the market rate of the first currency in the denomination of the second.
21+
22+
## API Documentation
23+
https://docs.binance.us/
24+
25+
## Known Issues and Limitations
26+
None.

0 commit comments

Comments
 (0)