Skip to content

Commit 5df03d7

Browse files
Merge branch 'gh-pages' of github.com:binary-com/websockets into gh-pages
2 parents 14d410b + 1c40b68 commit 5df03d7

File tree

363 files changed

+14044
-8040
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

363 files changed

+14044
-8040
lines changed

.circleci/config.yml

+111
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,111 @@
1+
version: 2.1
2+
orbs:
3+
k8s: circleci/[email protected]
4+
commands:
5+
git_checkout_from_cache:
6+
description: "Git checkout and save cache"
7+
steps:
8+
- restore_cache:
9+
name: Git restore cache
10+
keys:
11+
- source-v1-{{ .Branch }}-{{ .Revision }}
12+
- source-v1-{{ .Branch }}-
13+
- source-v1-
14+
- run:
15+
name: Fetch git tags
16+
command: |
17+
mkdir -p ~/.ssh
18+
echo 'github.com ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAq2A7hRGmdnm9tUDbO9IDSwBK6TbQa+PXYPCPy6rbTrTtw7PHkccKrpp0yVhp5HdEIcKr6pLlVDBfOLX9QUsyCOV0wzfjIJNlGEYsdlLJizHhbn2mUjvSAHQqZETYP81eFzLQNnPHt4EVVUh7VfDESU84KezmD5QlWpXLmvU31/yMf+Se8xhHTvKSCZIFImWwoG6mbUoWf9nzpIoaSjB+weqqUUmpaaasXVal72J+UX2B+2RPW3RcT0eOzQgqlJL3RKrTJvdsjE3JEAvGq3lGHSZXy28G3skua2SmVi/w4yCE6gbODqnTWlg7+wC604ydGXA8VJiS5ap43JXiUFFAaQ== ' >> ~/.ssh/known_hosts
19+
# Fetch tags if git cache is present
20+
if [ -e /home/circleci/project/.git ]
21+
then
22+
git fetch origin --tags
23+
fi
24+
- checkout
25+
- run:
26+
name: Compress git objects
27+
command: git gc
28+
- save_cache:
29+
name: Git save cache
30+
key: source-v1-{{ .Branch }}-{{ .Revision }}
31+
paths:
32+
- ".git"
33+
bundle_install:
34+
description: "Bundle install"
35+
steps:
36+
- restore_cache:
37+
name: Bundle modules cache restore
38+
keys:
39+
- bundle-v1-{{ checksum "Gemfile" }}
40+
- bundle-v1-
41+
- run:
42+
name: Bundle install
43+
command: |
44+
bundle install --path ./modules
45+
- save_cache:
46+
name: Bundle modules cache save
47+
key: bundle-v1-{{ checksum "Gemfile" }}
48+
paths:
49+
- "modules"
50+
release:
51+
description: "Build Jekyll site"
52+
steps:
53+
- restore_cache:
54+
name: "Build cache restore"
55+
keys:
56+
- _site-v1-{{ .Revision }}
57+
- _site-v1-
58+
- run:
59+
name: Building Jekyll site
60+
command: bundle exec jekyll build --incremental
61+
- save_cache:
62+
name: Build cache save
63+
key: _site-v1-{{ .Revision }}
64+
paths:
65+
- _site
66+
docker_build:
67+
description: "Build Docker image"
68+
steps:
69+
- setup_remote_docker
70+
- run:
71+
name: Building docker image
72+
command: |
73+
docker build -t ${DOCKHUB_ORGANISATION}/binary-static-developers:${CIRCLE_SHA1} .
74+
docker_push:
75+
description: "Push image to docker hub"
76+
steps:
77+
- run:
78+
name: Pushing Image to docker hub
79+
command: |
80+
echo $DOCKERHUB_PASSWORD | docker login -u $DOCKERHUB_USERNAME --password-stdin
81+
docker push ${DOCKHUB_ORGANISATION}/binary-static-developers:${CIRCLE_SHA1}
82+
k8s_deploy:
83+
description: "Deploy to k8s cluster"
84+
steps:
85+
- k8s/install-kubectl
86+
- run:
87+
name: Deploying to k8s cluster for service binary-developers
88+
command: |
89+
echo $CA_CRT | base64 --decode > ca.crt
90+
kubectl --server=${KUBE_SERVER} --certificate-authority=ca.crt --token=$SERVICEACCOUNT_TOKEN set image deployment/developers-binary-com developers-binary-com=${DOCKHUB_ORGANISATION}/binary-static-developers:${CIRCLE_SHA1}
91+
92+
jobs:
93+
release:
94+
docker:
95+
- image: circleci/ruby:2.6.5
96+
steps:
97+
- git_checkout_from_cache
98+
- bundle_install
99+
- release
100+
- docker_build
101+
- docker_push
102+
- k8s_deploy
103+
104+
workflows:
105+
release:
106+
jobs:
107+
- release:
108+
filters:
109+
branches:
110+
only: /^gh-pages$/
111+

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
_site/
22
.jekyll-metadata
33
.sass-cache
4+
.idea/
5+
Gemfile.lock

CNAME

-1
This file was deleted.

Dockerfile

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
FROM nginx:alpine
2+
COPY ./_site /usr/share/nginx/html
3+
COPY ./developers.com.conf /etc/nginx/conf.d/default.conf

Gemfile

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
source "https://rubygems.org"
2+
3+
gem "jekyll", "3.8.4"
4+
5+
group :jekyll_plugins do
6+
gem "jekyll-feed", "~> 0.9.2"
7+
end

_config.yml

+8-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# Site settings
2-
title: Binary Developers
3-
baseurl: "" # the subpath of your site, e.g. /blog/
4-
url: "https://deveopers.binary.com"
2+
title: Binary.com Developers
3+
url: "https://developers.binary.com"
54
twitter_username: binarydotcom
65
github_username: binary-com
76

@@ -12,3 +11,9 @@ collections:
1211
pages:
1312
output: true
1413
permalink: /:path/
14+
exclude:
15+
- Gemfile
16+
- Gemfile.lock
17+
- modules
18+
- Dockerfile
19+
- developers.com.conf

_data/v3.yml

+167
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,167 @@
1+
groups:
2+
- label: Unauthenticated Calls
3+
methods:
4+
- name: active_symbols
5+
title: Active Symbols
6+
- name: asset_index
7+
title: Asset Index
8+
- name: authorize
9+
title: Authorize
10+
- name: contracts_for
11+
title: Contracts For Symbol
12+
- name: copytrading_statistics
13+
title: 'Copy Trading: Statistics'
14+
- name: residence_list
15+
title: Countries List
16+
- name: exchange_rates
17+
title: Exchange Rates
18+
- name: forget
19+
title: Forget
20+
- name: forget_all
21+
title: Forget All
22+
- name: landing_company
23+
title: Landing Company
24+
- name: landing_company_details
25+
title: Landing Company Details
26+
- name: logout
27+
title: Log Out
28+
- name: new_account_virtual
29+
title: New Virtual-Money Account
30+
- name: paymentagent_list
31+
title: 'Payment Agent: List'
32+
- name: payout_currencies
33+
title: Payout Currencies
34+
- name: ping
35+
title: Ping
36+
- name: proposal
37+
title: Price Proposal
38+
- name: proposal_array
39+
title: 'Price Proposal: Multiple Contracts'
40+
- name: website_status
41+
title: Server Status
42+
- name: time
43+
title: Server Time
44+
- name: states_list
45+
title: States List
46+
- name: ticks_history
47+
title: Ticks History
48+
- name: ticks
49+
title: Ticks Stream
50+
- name: trading_durations
51+
title: Trading Durations
52+
- name: trading_times
53+
title: Trading Times
54+
- name: verify_email
55+
title: Verify Email
56+
- label: "Authenticated Calls: 'read' scope"
57+
methods:
58+
- name: get_limits
59+
title: Account Limits
60+
- name: get_account_status
61+
title: Account Status
62+
- name: app_get
63+
title: 'Application: Get Details'
64+
- name: app_list
65+
title: 'Application: List'
66+
- name: app_markup_details
67+
title: 'Application: Markup Details'
68+
- name: balance
69+
title: Balance
70+
- name: get_settings
71+
title: Get Account Settings
72+
- name: get_financial_assessment
73+
title: Get Financial Assessment
74+
- name: get_self_exclusion
75+
title: Get Self-Exclusion
76+
- name: login_history
77+
title: Login History
78+
- name: mt5_login_list
79+
title: 'MT5: Accounts List'
80+
- name: mt5_get_settings
81+
title: 'MT5: Get Setting'
82+
- name: oauth_apps
83+
title: OAuth Applications
84+
- name: portfolio
85+
title: Portfolio
86+
- name: proposal_open_contract
87+
title: 'Price Proposal: Open Contracts'
88+
- name: profit_table
89+
title: Profit Table
90+
- name: reality_check
91+
title: Reality Check
92+
- name: statement
93+
title: Statement
94+
- name: transaction
95+
title: Transactions Stream
96+
- label: "Authenticated Calls: 'trade' scope"
97+
methods:
98+
- name: buy
99+
title: Buy Contract
100+
- name: buy_contract_for_multiple_accounts
101+
title: Buy Contract for Multiple Accounts
102+
- name: copy_start
103+
title: 'Copy Trading: Start'
104+
- name: copy_stop
105+
title: 'Copy Trading: Stop'
106+
- name: sell
107+
title: Sell Contract
108+
- name: sell_contract_for_multiple_accounts
109+
title: 'Sell Contracts: Multiple Accounts'
110+
- name: sell_expired
111+
title: Sell Expired Contracts
112+
- name: topup_virtual
113+
title: Top Up Virtual-Money Account
114+
- label: "Authenticated Calls: 'admin' scope"
115+
methods:
116+
- name: api_token
117+
title: API Token
118+
- name: app_delete
119+
title: 'Application: Delete'
120+
- name: app_register
121+
title: 'Application: Register'
122+
- name: app_update
123+
title: 'Application: Update'
124+
- name: copytrading_list
125+
title: 'Copy Trading: List'
126+
- name: document_upload
127+
title: Document Upload
128+
- name: new_account_maltainvest
129+
title: 'New Real-Money Account: Binary Investment (Europe) Ltd.'
130+
- name: new_account_real
131+
title: 'New Real-Money Account: Default Landing Company'
132+
- name: revoke_oauth_app
133+
title: Revoke Oauth Application
134+
- name: set_account_currency
135+
title: Set Account Currency
136+
- name: set_settings
137+
title: Set Account Settings
138+
- name: set_financial_assessment
139+
title: Set Financial Assessment
140+
- name: set_self_exclusion
141+
title: Set Self-Exclusion
142+
- name: tnc_approval
143+
title: Terms and Conditions Approval
144+
- label: "Authenticated Calls: 'payments' scope"
145+
methods:
146+
- name: cashier
147+
title: Cashier URL
148+
- name: paymentagent_transfer
149+
title: 'Payment Agent: Transfer'
150+
- name: paymentagent_withdraw
151+
title: 'Payment Agent: Withdraw'
152+
- name: transfer_between_accounts
153+
title: Transfer Between Accounts
154+
- label: "MT5-related Calls: 'admin' scope"
155+
methods:
156+
- name: mt5_deposit
157+
title: 'MT5: Deposit'
158+
- name: mt5_new_account
159+
title: 'MT5: New Account'
160+
- name: mt5_password_change
161+
title: 'MT5: Password Change'
162+
- name: mt5_password_check
163+
title: 'MT5: Password Check'
164+
- name: mt5_password_reset
165+
title: 'MT5: Password Reset'
166+
- name: mt5_withdrawal
167+
title: 'MT5: Withdrawal'

_includes/api-methods-list.html

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<select id="api-call-selector">
2+
<option selected disabled hidden>Select API Call - Version 3</option>
3+
{%- for group in site.data.v3.groups %}
4+
<optgroup label="{{ group.label }}">
5+
{%- assign sorted_methods = group.methods | sort: "title") -%}
6+
{%- for method in sorted_methods %}
7+
<option value="{{ method.name }}">{{ method.title }}</option>
8+
{%- endfor %}
9+
</optgroup>
10+
{% endfor %}
11+
</select>

_includes/api-playground-field.html

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<fieldset>
2+
<textarea id="playground-request" placeholder="Request JSON"></textarea>
3+
</fieldset>
4+
<p id="playground-reset-buttons">
5+
<button id="playground-send-btn">Send Request</button>
6+
<a id="scroll-to-bottom-btn">Scroll To Bottom</a>
7+
<a id="playground-reset-btn">Reset Connection</a>
8+
</p>
9+
<div id="unauthorized-error" >
10+
<p class="errorfield">You are not authenticated.</p>
11+
</div>
12+
<div id="playground-console"></div>

0 commit comments

Comments
 (0)