1 Star 0 Fork 1.4K

err118 / CoinExchange

forked from Jammy / CoinExchange 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
Apache-2.0

Crypto-Exchange / Coin-Exchange

开源代码仅供参考学习,请勿用于非法用途;

一次特殊的更新(2021/01/21)

有人拿到我的代码,因为没有技术能力,跑不起来,怨我骗他,在我项目主页上发很多辱骂语言。

有人拿到我的代码,做了些小更新,四处倒卖,却反过来黑我。

有人在别人那里买到我的代码,别人不给技术支持,却跑过来找我麻烦。

有人拿到我的代码,发现有些小BUG,不依不饶。

有人通过担保平台的“消费者第一”的规则,骗取我的代码。

总之,什么样的人都有,我也懒得多说什么。年底了,工作上很忙,没来得及更新这里,结果有人说我跑了。。。我有必要跑么。。。
千言万语,不及技术人用技术来证明自己实在。

新版交易所在业余时间开发,已经出来了一小部分。以下是前端的一些改变。

  • 全新UI版面
  • 支持49国语言
  • 支持54种货币汇率
  • 全新K线组件
  • 等等等各种,可以自己对比着老版的看看。

后端的改造更多,不一一列出。

为了避免不必要的麻烦,新版系统无论是前端还是后端,都不再开放全部源码。 老客户也别问我要新版系统的更新,这个是完全重构了,不兼容,而且也没开发完,暂时不卖。

新版闭源系统PC演示

http://118.25.133.182:84/#/

老版系统PC演示

http://118.25.133.182/

APP下载(含永续合约)

APP下载 最好用浏览器扫码下载

后端 & 代理商后台 等演示

添加本人 QQ:877070886 获取。

虽然说是演示的,但其实并不是专门用来给大家演示的,而是给我自己开发用的。所以请不要乱动数据,这样会导致脏数据,我开发的最新成果一般都会反应到这个站上。你本周看到的页面,可能下周就不一样了,一直在优化,一直在开发新功能。

基于ETH发行ERC20代币可参考:

https://gitee.com/ethergo/ether-erc20-token
收集了431个基于以太坊发行的ERC20代币源码,基本上能找到各种业务模型的ERC20代币业务模型

下一阶段工作重点:

  1. 系统性能提升(基础软件优化)
  2. 系统稳定性提升(完善服务治理、链路监控、网关路由、负载均衡等)
  3. 撮合引擎升级,支持横向扩展(当前系统唯一性能瓶颈所在)
  4. 基础软件版本升级(SpringCloud、MySQL、Kafka、Redis以及Maven依赖等)
  5. 统一配置中心,降低配置难度(计划将Eureka变更为Nacos)
  6. 支持Docker及K8S容器编排部署方式
  7. 支持Jekins持续集成
  8. 设计全新交易所UI,提升用户体验&避免撞脸

2020/11/07 稳定版更新公示

  • 新增 期权合约 Android App
  • 新增 阿里云&赛邮(短信&邮件)支持
  • 新增 Link & YFI钱包RPC支持
  • 新增 Api模块(进度:80%)
  • 新增 超机器人增加跟随型趋势设置
  • 新增 PC端白蓝版
  • 新增 基础版手机端H5页面支持
  • 新增 Android App去除第三方K线插件(改为自研K线模块)
  • 新增 永续合约 IOS App(感谢nomo)
  • 新增 双端APP多语言(中英)支持
  • 修复 币币交易Websocket行情推送卡顿
  • 修复 IOS App兼容IOS 13颜色设置
  • 修复 升级OmniUSDT版本至0.8.0,解决部分节点接口过时问题
  • 更新 安装部署文档新增2节

2020/09/08 稳定版更新公示

  • 新增 永续合约后端
  • 新增 永续合约PC用户端
  • 新增 永续合约PC管理端
  • 新增 永续合约 Android App
  • 新增 预测合约后端
  • 新增 预测/期权合约PC用户端
  • 新增 预测/期权合约PC管理端
  • 新增 Android APP白色版
  • 新增 IOS App白色版
  • 修复 12个BUG(非重大)
  • 优化 33个UI细节
  • 优化 安装部署文档新增3节

白色版截图预览: 输入图片说明 下载体验请联系QQ:877070886

特色

特色1: 基于内存撮合引擎,与传统基于数据库撮合更快
特色2: 前后端分离,基于Token的Api授权机制
特色3: 基于SpringCloud微服务架构,扩展更容易
特色4: MySQL、MongoDB、Redis多种数据存储方式,只为更快
特色5: Kafka发布订阅消息队列,让订单更快流转
特色6: 主流币种对接区块链接口齐全,开箱即用
特色7: 冷热钱包分离,两种提现方式,保证安全
特色8: 机器人系统,同步行情,维护深度,防止搬砖
特色9: 原生App,Java和ObjectC提供原生体验
特色10: 交易所设计者提供技术支持,部署+二开无忧
特色11: 支持添加自定义平台币及其他币种

声明一:我已在新公司上班,一些说明性的东西我会抽空在这里更新,以方便大家编译、搭建、开发
声明二:APP源码及交易机器人源码未开源,有需要的添加QQ:877070886
声明四:请不要用本开源代码直接搭建交易所!本源码尚有一些隐藏BUG,仅供学习!否则后果自负!
声明五:本交易所完整源码仅向有技术团队或技术实力的人提供,小白或不同技术的请勿咨询!

新功能持续开发中,敬请期待

  • 代理商系统(100%,5月已完成,未开源)
  • 极速兑换(100%,6月已完成,未开源)
  • IEO首发活动(100%,6月已完成,未开源)
  • 永续合约(100%,8月完成,不开源)
  • 期权合约(100%,9月完成,不开源)
  • 秒合约(0%,11月完成,不开源)
  • 指数合约(0%,12月完成,不开源)
  • 差价合约(0%,1月完成,不开源)
  • 交割合约(0%,2月完成,不开源)
  • 智能客服系统(0%,1月完成,不开源)

部分新功能预览

永续合约 永续合约

二元期权/预测合约 二元期权/预测合约

本人仅业余时间开发,进度延迟可能性大,已尽最大可能赶进度。有兴趣一起开发的小伙伴,欢迎一起。

简要介绍

本项目是基于Java(SpringCloud)开发的比特币交易所 | BTC交易所 | ETH交易所 | 数字货币交易所 | 交易平台 | 撮合交易引擎。本项目基于SpringCloud微服务开发,可用来搭建和二次开发数字货币交易所,有完整的系统组成部分。

  • 撮合交易引擎
  • 后台管理(后端+前端)
  • 前台(交易页面、活动页面、个人中心等)
  • 原生安卓APP源码
  • 原生苹果APP源码
  • 币种钱包RPC源码

PC

APP

APP

部署文档(超详细版)

仅限客户使用 输入图片说明

系统架构概要

随便画的几个草图,凑合看吧。。。

整体架构

整体架构

逻辑架构

逻辑架构

部署架构

部署架构

依赖关系

依赖关系

联系方式

QQ:877070886

系统演示视频

PC前端(用户Web端):https://gitee.com/cexchange/CoinExchange/attach_files

手机APP端:https://gitee.com/cexchange/CoinExchange/attach_files

管理后台:https://gitee.com/cexchange/CoinExchange/attach_files

开发参考

开发参考文档:https://gitee.com/cexchange/CoinExchange/blob/master/DEVELOP.md

管理后台截图:https://gitee.com/cexchange/CoinExchange/tree/master/09_DOC/管理后台截图

关于SpringCloud

Spring Cloud是一系列框架的有序集合。它利用Spring Boot的开发便利性巧妙地简化了分布式系统基础设施的开发,如服务发现注册、配置中心、消息总线、负载均衡、断路器、数据监控等,都可以用Spring Boot的开发风格做到一键启动和部署。Spring Cloud并没有重复制造轮子,它只是将各家公司开发的比较成熟、经得起实际考验的服务框架组合起来,通过Spring Boot风格进行再封装屏蔽掉了复杂的配置和实现原理,最终给开发者留出了一套简单易懂、易部署和易维护的分布式系统开发工具包。 一般而言,一个完整的SpringCloud框架应该如下图所示:

SpringCloud框架图

如果对SpringCloud尚不熟悉,可以先简单学习一下SpringCloud的相关教程,这样再回来看本项目,会更加容易上手。 提醒一下,因为Springcloud框架图中是完整的架构,在开发的时候,我们会适当的裁剪一些内容,从而让开发和部署更加快速,所以有一些出入的地方。

关于撮合交易引擎

本系统对交易队列采用内存撮合的方式进行,以Kafka做撮合订单信息传输,MongoDB持久化订单成交明细,MySQL记录订单总体成交。 其中01_Framework/Exchange项目主要负责内存撮合,01_Framework/Market项目主要负责订单成交持久化、行情生成、行情推送等服务,包括:

  • K线数据,间隔分别为:1分钟、5分钟、15分钟、30分钟、1小时、1天、1周、1月
  • 所有交易对的市场深度(market depth)数据
  • 所有交易对的最新价格
  • 最近成交的交易对

内存撮合交易支持的模式

  • 限价订单与限价订单撮合
  • 市价订单与限价订单撮合
  • 限价订单与市价订单撮合
  • 市价订单与市价订单撮合

限价&市价订单处理逻辑

限价&市价订单处理逻辑 注意:这个图很久以前的了,最新代码中的逻辑更复杂了

撮合引擎支持的其他功能

除了普通的限价与市价撮合交易功能外,本系统的撮合交易引擎还引入了活动成交模式,通过设置交易对(如:BTC/USDT)的开始交易时间、初始发行量、初始发行价、活动模式等参数,可以制定出丰富的撮合交易模式,从而满足不同的撮合模式。

举例说明

交易所预计在2020年8月8日 12时00分00秒上线交易对AAA/USDT,但是作为一个新上线的币种,没有活动怎么能行呢?项目方或交易所决定拿出10000个AAA以0.0001USDT(市场行情价:0.0005)的价格让大家抢购。本系统支持对这种活动的设置。

另外,如果项目方或交易所决定拿出10000个AAA以0.0001USDT的价格发行,不希望大家抢购,而是希望所有充值USDT的用户能够平均瓜分10000个AAA,本系统也支持这种活动的设置。

总结

总之,本系统支持高度自定义的撮合模式,同时你也可以开发出你自己想要的撮合交易模式,只需要通过修改Exchange项目中的撮合逻辑就可以。

关于技术构成

  • 后端:Spring、SpringMVC、SpringData、SpringCloud、SpringBoot
  • 数据库:Mysql、Mongodb
  • 其他:redis、kafka、阿里云OSS、腾讯防水校验
  • 前端:Vue、iView、less

实际演示网站

https://www.bizzan.com

这个是给客户做的,但是后来客户不运营了,所以遗留了这个网站,因为我没有服务器权限,所以这个网站随时可能无法访问。

搭建起来一个测试站点需要购买好几台云服务器,成本较大,所以我自己没有搭建测试站,但是系统是完整的,经过了将近一年的商用及实际运营考验。

关于交易机器人
交易机器人是自动交易的程序,可以根据外部行情,自动进行交易,让本交易所的交易对价格与外部保持一致,防止因部分用户“搬砖”导致的损失。

关于搬砖
例如A交易所BTC价格是10000USDT,而B交易所的BTC价格是9500USDT,搬砖就是在B交易所通过9500USDT的价格买入BTC,然后转账到A交易所,赚取差价(500USDT)。
如果交易所没有交易机器人,就会导致本交易所的币种价格与其他主流交易所相比有差价,从而让用户“搬砖”,导致交易所损失。
另外,交易机器人还有一个功能,就是在交易所初期运营的时候,形成一个初期的交易深度,不会让用户觉得交易所冷清,没有用户。

我本人是Java程序员,对移动端开发不太了解,所以包调试安装实际上也是我付费请别人帮忙的。

如果你没有技术人员,我可以帮助你搭建一套完整的交易所系统,但是需要你请一到两名维护人员,因为系统的稳定运行少不了运维人员。

联系QQ:877070886

==============================================

系统运行环境

  1. Centos 6.8
  2. MySQL 5.5.16
  3. Redis-x64-3.2.100
  4. Mongodb 3.6.13
  5. kafka_2.11-2.2.1
  6. nginx-1.16.0
  7. JRE 8u241
  8. JDK 1.8
  9. Vue
  10. Zookeeper

生产环境建议配置

生产环境建议配置

文件目录说明

00_framework

└─———admin 后台管理API

└─———bitrade-job 任务管理

└─———chat OTC聊天

└─———cloud SpringCloud微服务管理

└─———core 核心

└─———exchange 撮合交易引擎

└─———exchange-api 撮合交易API

└─———exchange-core 撮合交易核心

└─———jar 第三方类库

└─———market 市场行情API、K线生成

└─———otc-api OTC交易API(如无需otc功能可不启动)

└─———otc-core OTC核心

└─———sql SQL脚本

└─———ucenter-api 用户个人中心API

└─———wallet 钱包资产管理,负责与RPC对接

01_wallet_rpc

└─———bitcoin

└─———bsv

└─———btm

└─———eos

└─———erc-eusdt

└─———erc-token(可对接各种ERC20币种)

└─———eth

└─———ltc

└─———usdt

02_App_Android

03_App_IOS

04_Web_Admin

05_Web_Front

使用教程

  1. 准备mysql数据库,创建名称为“xxxx”的数据库
  2. 准备redis缓存数据库
  3. 准备kafka流式处理环境(先配置运行zookper,接着配置运行kafka)
  4. 准备mongodb数据库环境,创建用户admin、xxxx,创建bitrade数据库
  5. 准备阿里云OSS(修改项目中需要配置的地方)
  6. 准备nginx,修改配置文件(可选,正式上线需配置)
  7. 修改framework代码中的配置文件为准备环境配置参数
  8. 编译生成jar可执行文件
  9. 运行cloud.jar(微服务注册中心)
  10. 运行exchange.jar(撮合交易引擎)
  11. 运行market.jar(行情中心,需要等待Exchange.jar完全启动)
  12. 运行ucenter.jar(用户中心)
  13. 运行其他模块(wallet.jar、chat.jar、otc-api.jar等)
  14. 打开mysql,导入framework代码中的sql文件夹中xxxxxxx.sql文件,注意,trigger的sql如果报错,需要针对wallet表添加trigger
  15. 运行前端vue项目
  16. 运行后端vue项目
  17. 运行钱包RPC
  18. 运行自动交易机器人程序(本部分代码未上传,但不影响)
  19. 运行Admin项目(该服务并不依赖其他服务,因此也可只运行此项目,直接查看后台)

技术支持

本数字货币交易系统系我所在公司为交易所开发的项目,该交易所因团队原因已停止运营,我司也已于2月解散。因我参与项目时,负责整体研发管理、架构设计以及客户对接,所以掌握所有代码。

本系统在功能使用上有一些需要特别注意的地方,例如新建交易对以后的其他操作,操作不当会引起数据紊乱的错误出现。

本人可提供有偿技术帮助与使用培训指导!

联系QQ:877070886

注意事项

当内存不足时,在linux控制台输入top可以查看java进程占用了大量内存(一个java进程占用1G以上),因为有很多jar包需要运行,所以需要控制某些jar包使用的内存,你可选择几个不怎么耗费资源的项目,如下:

java -jar -Xms128m -Xmx128m -Xmn200m -Xss256k  admin-api.jar

java -jar -Xms512m -Xmx512m -Xmn200m -Xss256k  cloud.jar

java -jar -Xms512m -Xmx512m -Xmn200m -Xss256k  wallet.jar

关于邮件&短信

  1. 本系统支持邮件、短信发送系统运营状态
  2. 系统通知/报警支持:用户注册、用户认证、用户充值/提现、币种RPC运行状态、系统资源使用监控等24种监控

关于数据库脚本的问题

有朋友反映没有完整的SQL文件,这是因为编译成功的Jar,首次运行后会自动将Entity映射成数据库结构,项目中的SQL只是完成一些Springcloud无法完成的数据库结构。 数据库自动生成配置位于application.properties配置文件:

#jpa
spring.jpa.show-sql=true
spring.data.jpa.repositories.enabled=true
spring.jpa.hibernate.ddl-auto=update

spring.jpa.hibernate.ddl-auto=update 这个配置会自动更新数据库结构。

核心功能说明(用户端)

  • 1. 注册/登录/实名认证/审核(目前仅支持手机,二次开发可加入邮件,很简单)
  • 2. Banner/公告/帮助/定制页面(Banner支持PC与APP分开设置,帮助支持各种分类模式)
  • 3. 法币C2C交易/法币OTC交易(支持两种法币模式,项目早期可由平台承担C2C法币兑换,后期可开放OTC交易)
  • 4. 币币交易(支持限价委托、市价委托,二次开发可加入其它委托模式)
  • 5. 邀请注册/推广合伙人(支持对邀请推广人数、佣金进行以日、周、月的排行统计)
  • 6. 创新实验室(该部分支持功能较多,分项说明。另,APP暂不全部支持该功能)
  • 6-1. 首发抢购活动模式(如发行新交易对时,可对交易对设置一定数量的币种进行抢购)
  • 6-2. 首发分摊活动模式(如发行BTC/USDT交易对之前,官方拿出5BTC做活动,根据用户充值抵押的USDT多少进行均分BTC)
  • 6-3. 控盘抢购模式(如发行ZZZ/USDT交易对之前,ZZZ币种价格为5USDT,官方发行活动价为0.5USDT,则可使用该模式)
  • 6-4. 控盘均摊模式(如6-3,只不过平均分配)
  • 6-5. 矿机活动模式(支持用户抵押一定数量的币种,由官方承诺每月返还一定数量的币种)
  • 7. 红包功能(支持平台及官方发放一定数量币种的红包,此功能适合用户裂变)
  • 8. 用户资产管理、流水管理、委托管理、实名管理等各种基础管理

核心功能说明(管理端)

  • 1. 概要(查看平台运行数据,包含交易额、注册人数、充值等)
  • 2. 会员管理(会员信息管理、会员实名审核、会员实名管理、会员余额管理、会员充值/冻结余额等)
  • 3. 邀请管理(会员邀请信息、会员邀请排行管理)
  • 4. CTC管理(CTC订单管理、流水管理、承兑商管理)
  • 5. 内容管理(PC广告管理、APP广告管理、公告管理、帮助管理)
  • 6. 财务管理(充值提现管理、财务流水管理、对账管理、币种钱包余额管理)
  • 7. 币币管理(新建交易对、管理交易对、新建交易机器人、设置交易机器人参数、设置行情引擎/交易引擎、撤销所有委托)
  • 8. 活动管理(新建活动、矿机认购、抢购/瓜分管理)
  • 9. 红包管理(平台红包管理、用户红包管理)
  • 10. 系统管理(角色管理、部门管理、用户管理、权限管理、币种管理、RPC管理、版本管理)
  • 11. 保证金管理(此功能设计时考虑到,但实际运营期间未使用到)
  • 12. OTC管理(广告管理、订单管理、OTC币种管理、退保管理等,此功能未获得实际运营检验)

关于区块链钱包对接

本项目提供两种钱包对接方式,一种是自建节点+区块链浏览器的方式,另一种是第三方钱包对接方式。如果你想使用自建节点或区块链浏览器,你直接使用00_framework中的代码进行编译即可。如果你想使用第三方钱包对接,你可以下载07_Uduncloud文件夹的优盾钱包的项目文件,把他们复制到00_framework中即可。

当你拿到代码以后,对本项目进行调试运行期间,可不连接区块链节点,这并不会有太大的影响;即使不连接区块链节点,你也可以部署其一个具有撮合交易功能的交易平台(只是用户无法通过钱包地址充值而已)。

当你渐渐熟悉整套系统,同时对区块链运行原理、节点搭建、区块链浏览器有一定基础储备后,就可以开始对 01_wallet_rpc 文件夹下的项目进行研究。每个币种对应不同的数据访问方式,大部分区块链项目的钱包操作方式是相同的或十分相似的,比如BTC、LTC、BCH、BSV、BCD等比特币衍生币,其API操作方式几乎一样;再比如ETH,当你掌握一个合约币种的操作,其他基于ETH发行的数字货币的操作方式几乎一样。所以,基本上当你花时间弄懂了一个,就懂了一堆币种。

本项目使用的钱包操作方案也是不同的,也尽可能的为大家展示了不同用法:

  • 如BTC、USDT,使用的自建全节点,现在差不多需要300G硬盘空间;
  • 如ETH,使用的是自建轻节点(参考文章),因为全节点需要硬盘空间太大;
  • 如BCH、BSV等,使用的是第三方区块链浏览器获取数据;
  • 如XRP,官方就已经提供了访问区块数据的接口(Ripple API GitHub地址

一般而言,当交易所来往资金量不大的时候,你可以自己摸索,但是当交易所资金量大了以后,如果你对自己操作钱包不太放心,你也可以使用第三方的钱包服务,当然,这需要你与钱包服务商进行谈判,付个年费什么的。

下图是用户充值监控逻辑的简要说明图,简单看看就行:

充值逻辑

系统展示(PC前端)

首页

币币交易

法币交易

登录

活动/创新实验室

创新实验室详情

推广合伙人

公告

帮助

系统运行展示(APP前端)

首页

行情

K线

交易

个人中心

个人资产管理

邀请管理

手机Web端部分页面

APP下载

抢红包

活动/创新实验室

系统运行展示(后端)

登录

首页

用户管理

邀请管理

法币交易订单管理

首页Banner管理

交易对管理

活动管理

红包管理

币种管理

OTC管理,后端开发完成,前端未对接

APP下载图片示例

输入图片说明 输入图片说明 输入图片说明 输入图片说明 输入图片说明

特别注意

任何使用本源码从事商业活动,对别人和自己造成损失的,本人概不负责!

Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 1. Definitions. "License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document. "Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License. "Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity. "You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License. "Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files. "Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types. "Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below). "Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof. "Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution." "Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work. 2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form. 3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed. 4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions: (a) You must give any other recipients of the Work or Derivative Works a copy of this License; and (b) You must cause any modified files to carry prominent notices stating that You changed the files; and (c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and (d) If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License. 5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions. 6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file. 7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License. 8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages. 9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability. END OF TERMS AND CONDITIONS APPENDIX: How to apply the Apache License to your work. To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives. Copyright [yyyy] [name of copyright owner] Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

简介

开源数字货币合约交易所,基于Java开发的比特币交易所 | BTC交易所 | ETH交易所 | 数字货币交易所 | 交易平台 | 撮合交易引擎。本项目有完整的撮合交易引擎源码、后台管理(后端+前端)、前台(交易页面、活动页面、个人中心等)、安卓APP源码、苹果APP源码、币种钱包RPC源码。开源项目仅供学习参考,请勿用于非法用途。 展开 收起
Java
Apache-2.0
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
Java
1
https://gitee.com/err118/CoinExchange.git
git@gitee.com:err118/CoinExchange.git
err118
CoinExchange
CoinExchange
master

搜索帮助

14c37bed 8189591 565d56ea 8189591