Skip to content

Commit

Permalink
Merge branch 'release/4.1.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
straumat committed Apr 4, 2021
2 parents 43e013c + d67f227 commit db08f2b
Show file tree
Hide file tree
Showing 123 changed files with 2,476 additions and 271 deletions.
5 changes: 3 additions & 2 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@ updates:
- package-ecosystem: maven
directory: "/"
schedule:
interval: daily
time: "03:00"
interval: "weekly"
day: "friday"
time: "20:00"
timezone: Europe/Paris
open-pull-requests-limit: 10
target-branch: development
9 changes: 1 addition & 8 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: "CodeQL"

on:
schedule:
- cron: '0 0 * * 6'
- cron: '0 19 * * FRI'

jobs:
analyze:
Expand Down Expand Up @@ -34,13 +34,6 @@ jobs:
java-version: 11.0.x

- name: Build, run tests, package and deploy to Maven central
env: # Environment variables.
# Kucoin credentials.
KUCOIN_NAME: ${{ secrets.KUCOIN_NAME }}
KUCOIN_USERNAME: ${{ secrets.KUCOIN_USERNAME }}
KUCOIN_PASSPHRASE: ${{ secrets.KUCOIN_PASSPHRASE }}
KUCOIN_KEY: ${{ secrets.KUCOIN_KEY }}
KUCOIN_SECRET: ${{ secrets.KUCOIN_SECRET }}
run: |
mvn package
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ name: Continuous integration

on:
push:
branches-ignore:
- 'master'
branches:
- "development"

jobs:
build:
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Integration tests

on:
schedule:
- cron: '0 2 1 * *'
- cron: '0 19 * * FRI'

jobs:
build:
Expand Down Expand Up @@ -48,6 +48,12 @@ jobs:
GEMINI_PASSPHRASE: ${{ secrets.GEMINI_PASSPHRASE }}
GEMINI_KEY: ${{ secrets.GEMINI_KEY }}
GEMINI_SECRET: ${{ secrets.GEMINI_SECRET }}
# Coinbase pro credentials.
COINBASE_PRO_NAME: ${{ secrets.COINBASE_PRO_NAME }}
COINBASE_PRO_USERNAME: ${{ secrets.COINBASE_PRO_USERNAME }}
COINBASE_PRO_PASSPHRASE: ${{ secrets.COINBASE_PRO_PASSPHRASE }}
COINBASE_PRO_KEY: ${{ secrets.COINBASE_PRO_KEY }}
COINBASE_PRO_SECRET: ${{ secrets.COINBASE_PRO_SECRET }}
run: |
mvn -Pintegration package \
-Dqase.enable=true \
Expand Down
59 changes: 59 additions & 0 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
name: Pull request

on: pull_request

jobs:
build:
# ==================================================================================================================
# Configuration.
runs-on: ubuntu-latest

steps:
# ================================================================================================================
- name: JDK 11 Setup
id: jdk
uses: actions/setup-java@v1
with:
java-version: 11.0.x
server-id: ossrh
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD

# ================================================================================================================
- name: Retrieve the sources
id: sources
uses: actions/checkout@v1

# ================================================================================================================
- name: Build, run tests, package and deploy to Maven central - Also sends Qase tests reports
id: package
run: |
mvn package
# ================================================================================================================
- name: Test Cassandre trading bot maven archetype - basic strategy
id: cassandre-trading-bot-spring-boot-starter-basic-archetype
run: |
mvn -B archetype:generate \
-DarchetypeGroupId=tech.cassandre.trading.bot \
-DarchetypeArtifactId=cassandre-trading-bot-spring-boot-starter-basic-archetype \
-DarchetypeVersion=${{ steps.version.outputs.version }} \
-DgroupId=com.example \
-DartifactId=archetype-test-basic \
-Dversion=1.0-SNAPSHOT \
-Dpackage=com.example
mvn -f archetype-test-basic/pom.xml compile
# ================================================================================================================
- name: Test Cassandre trading bot maven archetype - basic ta4j strategy
id: cassandre-trading-bot-spring-boot-starter-basic-ta4j-archetype
run: |
mvn -B archetype:generate \
-DarchetypeGroupId=tech.cassandre.trading.bot \
-DarchetypeArtifactId=cassandre-trading-bot-spring-boot-starter-basic-ta4j-archetype \
-DarchetypeVersion=${{ steps.version.outputs.version }} \
-DgroupId=com.example \
-DartifactId=archetype-test-ta4j-basic \
-Dversion=1.0-SNAPSHOT \
-Dpackage=com.example
mvn -f archetype-test-ta4j-basic/pom.xml compile
29 changes: 26 additions & 3 deletions .github/workflows/release-creation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
# ================================================================================================================
- name: Build Changelog
id: build_changelog
uses: mikepenz/release-changelog-builder-action@v1.5.0
uses: mikepenz/release-changelog-builder-action@v1.7.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
Expand All @@ -65,7 +65,7 @@ jobs:
with:
tag_name: ${{ steps.package.outputs.version }}
release_name: ${{ steps.package.outputs.version }}
body: ${{steps.build_changelog.outputs.changelog}}
body: ${{ steps.build_changelog.outputs.changelog }}
draft: false
prerelease: false

Expand Down Expand Up @@ -134,4 +134,27 @@ jobs:
env:
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
with:
args: "Cassandre trading bot ${{ steps.package.outputs.version }} released - More information here : ${{ steps.create_release.outputs.html_url }}"
args: "Cassandre trading bot ${{ steps.package.outputs.version }} released - More information here : ${{ steps.create_release.outputs.html_url }}"

# ================================================================================================================
- name: Change release in website sources
id: sed
run: find . -type f -name "*.md" -exec sed -i 's/CASSANDRE_LATEST_RELEASE/${{ steps.getLatestRelease.outputs.release }}/g' {} \;

# ================================================================================================================
- name: Install vuepress and build the documentation website
run: |
yarn add -D vuepress
cd docs
yarn install
cd ..
yarn --cwd docs build docs
# ================================================================================================================
- name: Deploy the documentation website
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: docs/src/.vuepress/dist
commit-message: "Documentation website update"
clean: true
18 changes: 16 additions & 2 deletions .github/workflows/website-update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,25 @@ jobs:
id: sources
uses: actions/checkout@v1

# ================================================================================================================
- uses: pozetroninc/github-action-get-latest-release@master
id: getLatestRelease
with:
repository: ${{ github.repository }}

# ================================================================================================================
- name: Change release in website sources
id: sed
run: find . -type f -name "*.md" -exec sed -i 's/CASSANDRE_LATEST_RELEASE/${{ steps.getLatestRelease.outputs.release }}/g' {} \;

# ================================================================================================================
- name: Install vuepress and build the documentation website
run: |
yarn global add vuepress
yarn --cwd docs build
yarn add -D vuepress
cd docs
yarn install
cd ..
yarn --cwd docs build docs
# ================================================================================================================
- name: Deploy the documentation website
Expand Down
36 changes: 19 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,37 +1,39 @@
<h3 align="center">
<p align="center">
<a href="https://trading-bot.cassandre.tech">
<img src="https://trading-bot.cassandre.tech/assets/images/logo/cassandre-trading-bot-full.png"
alt="Cassandre trading bot"/>
<img src="https://trading-bot.cassandre.tech/assets/images/logo/cassandre-trading-bot-full-medium.png"
alt="Cassandre trading bot logo"/>
</a>
</h3>
</p>

<hr>

<p align="center">Cassandre makes it easy to create and run a Java crypto trading bot</p>
<h3 align="center">Cassandre makes it easy to create your crypto trading bot in Java</h2>

<p align="center">
<a href="https://discord.gg/sv3VXuTgFS">
<img src="https://img.shields.io/discord/796141274171310110.svg?logo=discord&label=Discord"
alt="Discord conversation" />
</a>
</p>

<p align="center">
<a href="https://github.com/cassandre-tech/cassandre-trading-bot/actions">
<img src="https://github.com/cassandre-tech/cassandre-trading-bot/workflows/Continuous%20integration/badge.svg"
alt="GitHub Actions" />
alt="Cassandre trading bot discord" />
</a>
<a href="https://www.codacy.com/gh/cassandre-tech/cassandre-trading-bot?utm_source=github.com&amp;utm_medium=referral&amp;utm_content=cassandre-tech/cassandre-trading-bot&amp;utm_campaign=Badge_Grade">
<img src="https://api.codacy.com/project/badge/Grade/f26dc41008a64bb18dcd404b46b69fc8"
alt="Codacy" />
alt="Cassandre trading bot codacy" />
</a>
<a href="https://search.maven.org/search?q=g:tech.cassandre.trading.bot">
<img src="https://img.shields.io/maven-central/v/tech.cassandre.trading.bot/cassandre-trading-bot-project.svg?label=Maven%20Central"
alt="Maven Central Repository" />
alt="Cassandre trading bot on Maven Central Repository" />
</a>
</p>

<p align="center">
<h3 align="center">
<a href="https://trading-bot.cassandre.tech/">Web site</a> |
<a href="https://trading-bot.cassandre.tech/learn/quickstart">Quick Start</a> |
<a href="https://twitter.com/cassandretech">Twitter</a> |
<a href="mailto:[email protected]">Contact us</a>
</p>
</h3>
<br>
<p align="center">
<a href="https://github.com/cassandre-tech/cassandre-trading-bot/actions">
<img src="https://github.com/cassandre-tech/cassandre-trading-bot/workflows/Continuous%20integration/badge.svg"
alt="Cassandre trading bot integration with gitHub actions" />
</a>
</p>
4 changes: 3 additions & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@
},
"license": "MIT",
"devDependencies": {
"@vuepress/plugin-back-to-top": "^1.8.2",
"@vuepress/plugin-google-analytics": "^1.8.2",
"vuepress": "^1.5.3"
"@vuepress/plugin-medium-zoom": "^1.8.2",
"vuepress": "^1.8.2"
}
}
36 changes: 27 additions & 9 deletions docs/src/.vuepress/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ module.exports = {
* Ref:https://v1.vuepress.vuejs.org/config/#title
*/
title: 'Cassandre',

/**
* Ref:https://v1.vuepress.vuejs.org/config/#description
*/
Expand All @@ -19,6 +20,23 @@ module.exports = {
['meta', {name: 'theme-color', content: '#3eaf7c'}],
['meta', {name: 'apple-mobile-web-app-capable', content: 'yes'}],
['meta', {name: 'apple-mobile-web-app-status-bar-style', content: 'black'}],
// Favicons.
['link', { rel: "apple-touch-icon", sizes: "57x57", href: "/assets/images/favicon/apple-icon-57x57.png"}],
['link', { rel: "apple-touch-icon", sizes: "60x60", href: "/assets/images/favicon/apple-icon-60x60.png"}],
['link', { rel: "apple-touch-icon", sizes: "72x72", href: "/assets/images/favicon/apple-icon-72x72.png"}],
['link', { rel: "apple-touch-icon", sizes: "76x76", href: "/assets/images/favicon/apple-icon-76x76.png"}],
['link', { rel: "apple-touch-icon", sizes: "114x114", href: "/assets/images/favicon/apple-icon-114x114.png"}],
['link', { rel: "apple-touch-icon", sizes: "120x120", href: "/assets/images/favicon/apple-icon-120x120.png"}],
['link', { rel: "apple-touch-icon", sizes: "144x144", href: "/assets/images/favicon/apple-icon-144x144.png"}],
['link', { rel: "apple-touch-icon", sizes: "152x152", href: "/assets/images/favicon/apple-icon-152x152.png"}],
['link', { rel: "apple-touch-icon", sizes: "180x180", href: "/assets/images/favicon/apple-icon-180x180.png"}],
['link', { rel: "icon", sizes: "192x192", href: "/assets/images/favicon/android-icon-192x192.png"}],
['link', { rel: "icon", sizes: "32x32", href: "/assets/images/favicon/favicon-32x32.pn"}],
['link', { rel: "icon", sizes: "96x96", href: "/assets/images/favicon/favicon-96x96.png"}],
['link', { rel: "icon", sizes: "16x16", href: "/assets/images/favicon/favicon-16x16.png"}],
['link', { rel: "manifest", href: "/assets/images/favicon/manifest.json"}],
['link', { rel: "msapplication-TileColor", content: "#fffff"}],
['link', { rel: "msapplication-TileImage", href: "/assets/images/favicon/ms-icon-144x144.png"}],
// For social networks.
['meta', {property: 'og:url', content: 'https://trading-bot.cassandre.tech'}],
['meta', {property: 'og:title', content: 'Cassandre trading bot framework'}],
Expand Down Expand Up @@ -68,7 +86,8 @@ module.exports = {
{text: 'Database structure', link: '/learn/database-structure'},
{
text: 'Deploy & run', items: [
{text: 'Using docker', link: '/learn/deploy-and-run/docker'}
{text: 'Using docker', link: '/learn/deploy-and-run/docker'},
{text: 'Using qovery', link: '/learn/deploy-and-run/qovery'}
]
},
{
Expand Down Expand Up @@ -118,6 +137,10 @@ module.exports = {
{text: 'Newsletter', link: 'https://cassandre.substack.com/'},
],
},
{
text: 'Support us',
link: 'https://opencollective.com/cassandre-tech'
},
{
text: 'Github',
link: 'https://github.com/cassandre-tech/cassandre-trading-bot'
Expand All @@ -130,13 +153,8 @@ module.exports = {
* Apply plugins,ref:https://v1.vuepress.vuejs.org/zh/plugin/
*/
plugins: [
'@vuepress/plugin-back-to-top',
'@vuepress/plugin-medium-zoom',
[
'@vuepress/google-analytics',
{
'ga': 'UA-158255496-1'
}
]
['@vuepress/plugin-back-to-top'],
['@vuepress/plugin-medium-zoom'],
['@vuepress/plugin-google-analytics', { 'ga': 'UA-158255496-1' }]
]
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<?xml version="1.0" encoding="utf-8"?>
<browserconfig><msapplication><tile><square70x70logo src="/ms-icon-70x70.png"/><square150x150logo src="/ms-icon-150x150.png"/><square310x310logo src="/ms-icon-310x310.png"/><TileColor>#ffffff</TileColor></tile></msapplication></browserconfig>
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
41 changes: 41 additions & 0 deletions docs/src/.vuepress/public/assets/images/favicon/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{
"name": "App",
"icons": [
{
"src": "\/android-icon-36x36.png",
"sizes": "36x36",
"type": "image\/png",
"density": "0.75"
},
{
"src": "\/android-icon-48x48.png",
"sizes": "48x48",
"type": "image\/png",
"density": "1.0"
},
{
"src": "\/android-icon-72x72.png",
"sizes": "72x72",
"type": "image\/png",
"density": "1.5"
},
{
"src": "\/android-icon-96x96.png",
"sizes": "96x96",
"type": "image\/png",
"density": "2.0"
},
{
"src": "\/android-icon-144x144.png",
"sizes": "144x144",
"type": "image\/png",
"density": "3.0"
},
{
"src": "\/android-icon-192x192.png",
"sizes": "192x192",
"type": "image\/png",
"density": "4.0"
}
]
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion docs/src/index.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
home: true
heroImage: assets/images/logo/cassandre-trading-bot-without-text.png
tagline: An open-source framework that makes it easy to create your Java crypto trading bot
tagline: An open-source framework that makes it easy to create your crypto trading bot in Java
actionText: Quick Start
actionLink: /learn/quickstart
features:
Expand Down
Loading

0 comments on commit db08f2b

Please sign in to comment.