Skip to content

Commit 8b251c8

Browse files
committed
Merge branch 'release/4.2.0'
2 parents db08f2b + e186ea6 commit 8b251c8

File tree

116 files changed

+3329
-1791
lines changed

Some content is hidden

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

116 files changed

+3329
-1791
lines changed

.github/workflows/codeql-analysis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
- name: JDK 11 Setup
3232
uses: actions/setup-java@v1
3333
with:
34-
java-version: 11.0.x
34+
java-version: '11'
3535

3636
- name: Build, run tests, package and deploy to Maven central
3737
run: |

.github/workflows/continuous-integration.yml

Lines changed: 3 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
id: jdk
2727
uses: actions/setup-java@v1
2828
with:
29-
java-version: 11.0.x
29+
java-version: '11'
3030
server-id: ossrh
3131
server-username: MAVEN_USERNAME
3232
server-password: MAVEN_PASSWORD
@@ -43,19 +43,7 @@ jobs:
4343
echo "::set-output name=version::$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)"
4444
4545
# ================================================================================================================
46-
- name: Creates a Qase run
47-
id: qase
48-
run: |
49-
echo "::set-output name=qase_run_id::$( \
50-
curl -s "https://api.qase.io/v1/run/CTB" \
51-
-X POST \
52-
-H "Token: ${{ secrets.QASE_TOKEN }}" \
53-
-H "Content-Type: application/json" \
54-
-d '{"title": "${{ github.event.head_commit.message }}","description": "Test run for ${{ steps.version.outputs.version }}","environment_id": null,"cases": []}' \
55-
| jq -r -c ".result.id")"
56-
57-
# ================================================================================================================
58-
- name: Build, run tests, package and deploy to Maven central - Also sends Qase tests reports
46+
- name: Build, run tests, package and deploy to Maven central
5947
id: package
6048
env: # Environment variables.
6149
# GPG.
@@ -64,11 +52,7 @@ jobs:
6452
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
6553
MAVEN_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
6654
run: |
67-
mvn deploy -B -Dgpg.passphrase=${GPG_PASSPHRASE} \
68-
-Dqase.enable=true \
69-
-Dqase.project.code=CTB \
70-
-Dqase.run.id=${{ steps.qase.outputs.qase_run_id }} \
71-
-Dqase.api.token=${{ secrets.QASE_TOKEN }}
55+
mvn deploy -B -Dgpg.passphrase=${GPG_PASSPHRASE}
7256
7357
# ================================================================================================================
7458
- name: Test Cassandre trading bot maven archetype - basic strategy

.github/workflows/integration-tests.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
- name: JDK 11 Setup
2020
uses: actions/setup-java@v1
2121
with:
22-
java-version: 11.0.x
22+
java-version: '11'
2323

2424
# ================================================================================================================
2525
- name: Creates a Qase run
@@ -34,7 +34,7 @@ jobs:
3434
| jq -r -c ".result.id")"
3535
3636
# ================================================================================================================
37-
- name: Build, run tests, package and deploy to Maven central
37+
- name: Build, run tests, package and deploy to Maven central - Also sends Qase tests reports
3838
env: # Environment variables.
3939
# Kucoin credentials.
4040
KUCOIN_NAME: ${{ secrets.KUCOIN_NAME }}
@@ -54,6 +54,12 @@ jobs:
5454
COINBASE_PRO_PASSPHRASE: ${{ secrets.COINBASE_PRO_PASSPHRASE }}
5555
COINBASE_PRO_KEY: ${{ secrets.COINBASE_PRO_KEY }}
5656
COINBASE_PRO_SECRET: ${{ secrets.COINBASE_PRO_SECRET }}
57+
# Binance credentials.
58+
BINANCE_NAME: ${{ secrets.BINANCE_NAME }}
59+
BINANCE_USERNAME: ${{ secrets.BINANCE_USERNAME }}
60+
BINANCE_PASSPHRASE: ${{ secrets.BINANCE_PASSPHRASE }}
61+
BINANCE_KEY: ${{ secrets.BINANCE_KEY }}
62+
BINANCE_SECRET: ${{ secrets.BINANCE_SECRET }}
5763
run: |
5864
mvn -Pintegration package \
5965
-Dqase.enable=true \

.github/workflows/pull-request.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
id: jdk
1515
uses: actions/setup-java@v1
1616
with:
17-
java-version: 11.0.x
17+
java-version: '11'
1818
server-id: ossrh
1919
server-username: MAVEN_USERNAME
2020
server-password: MAVEN_PASSWORD
@@ -25,7 +25,7 @@ jobs:
2525
uses: actions/checkout@v1
2626

2727
# ================================================================================================================
28-
- name: Build, run tests, package and deploy to Maven central - Also sends Qase tests reports
28+
- name: Build, run tests, package and deploy to Maven central
2929
id: package
3030
run: |
3131
mvn package

.github/workflows/release-creation.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
- name: JDK 11 Setup
2929
uses: actions/setup-java@v1
3030
with:
31-
java-version: 11.0.x
31+
java-version: '11'
3232
server-id: ossrh
3333
server-username: MAVEN_USERNAME
3434
server-password: MAVEN_PASSWORD
@@ -55,6 +55,8 @@ jobs:
5555
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5656
with:
5757
commitMode: true
58+
fromTag: ${{ steps.package.outputs.version }}
59+
toTag: ${{ steps.package.outputs.version }}
5860

5961
# ================================================================================================================
6062
- name: Create the release
@@ -136,6 +138,12 @@ jobs:
136138
with:
137139
args: "Cassandre trading bot ${{ steps.package.outputs.version }} released - More information here : ${{ steps.create_release.outputs.html_url }}"
138140

141+
# ================================================================================================================
142+
- uses: pozetroninc/github-action-get-latest-release@master
143+
id: getLatestRelease
144+
with:
145+
repository: ${{ github.repository }}
146+
139147
# ================================================================================================================
140148
- name: Change release in website sources
141149
id: sed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,12 @@
2424
</a>
2525
</p>
2626

27-
<h3 align="center">
27+
<h4 align="center">
2828
<a href="https://trading-bot.cassandre.tech/">Web site</a> |
2929
<a href="https://trading-bot.cassandre.tech/learn/quickstart">Quick Start</a> |
3030
<a href="https://twitter.com/cassandretech">Twitter</a> |
3131
<a href="mailto:contact@cassandre.tech">Contact us</a>
32-
</h3>
32+
</h4>
3333
<br>
3434
<p align="center">
3535
<a href="https://github.com/cassandre-tech/cassandre-trading-bot/actions">

docs/src/.vuepress/config.js

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,8 @@ module.exports = {
7373
items: [
7474
{text: 'Overview', link: '/why-cassandre/overview'},
7575
{text: 'Architecture', link: '/why-cassandre/architecture'},
76-
{text: 'Features & roadmap', link: '/why-cassandre/features-and-roadmap'}
76+
{text: 'Features & roadmap', link: '/why-cassandre/features-and-roadmap'},
77+
{text: 'Supported exchanges', link: '/why-cassandre/supported-cryptocurrency-exchanges'}
7778
]
7879
},
7980
{
@@ -91,15 +92,8 @@ module.exports = {
9192
]
9293
},
9394
{
94-
text: 'Technical analysis', items: [
95-
{text: 'Overview', link: '/learn/technical-analysis/overview'},
96-
{text: 'Create the project', link: '/learn/technical-analysis/create-the-project'},
97-
{text: 'Create your strategy', link: '/learn/technical-analysis/create-your-strategy'},
98-
{text: 'React to signals', link: '/learn/technical-analysis/react-to-signals'},
99-
{
100-
text: 'Backtest your strategy',
101-
link: '/learn/technical-analysis/backtest-your-trading-strategy'
102-
},
95+
text: 'Advanced', items: [
96+
{text: 'Technical analysis', link: '/learn/technical-analysis'},
10397
]
10498
}
10599
]

docs/src/learn/dry-mode-and-backtesting.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,5 +70,5 @@ Place this file in the `src/test/resources` folder of your project and add this
7070

7171
Now, during the tests, instead of receiving tickers from the exchange, you will receive tickers imported from the `tsv/csv` files you put in `src/test/resources`.
7272

73-
You can see an example of dry mode and backtesting in the [Technical analysis chapter](./technical-analysis/overview.md).
73+
You can see an example of dry mode and backtesting in the [Technical analysis chapter](src/learn/technical-analysis-backup/overview.md).
7474

0 commit comments

Comments
 (0)