Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

yifanes yifanes

🎯
Focusing
View GitHub Profile
View Coin_All_API.md

API概述

交易市场概况和基础信息

撮合引擎

成交价

CoinAll撮合系统撮合订单的优先级按照价格优于时间的优先级来撮合,优先撮合价格更有优势的订单。当价格一致时按照下单时间顺序撮合,先下单的先撮合。 比如深度列表中目前有3笔挂单等待成交,分别为1: 9900USDT买1BTC,2: 10100USDT买2BTC,3: 9900USDT买1.5BTC。他们是按时间顺序1-2-3进入撮合系统的,根据价格优先,系统优先撮合订单2,根据时间优先,1跟3优先撮合1。所以系统撮合顺序是2-1-3。

View Coin_All_API.md

API概述

交易市场概况和基础信息

撮合引擎

成交价

CoinAll撮合系统撮合订单的优先级按照价格优于时间的优先级来撮合,优先撮合价格更有优势的订单。当价格一致时按照下单时间顺序撮合,先下单的先撮合。 比如深度列表中目前有3笔挂单等待成交,分别为1: 9900USDT买1BTC,2: 10100USDT买2BTC,3: 9900USDT买1.5BTC。他们是按时间顺序1-2-3进入撮合系统的,根据价格优先,系统优先撮合订单2,根据时间优先,1跟3优先撮合1。所以系统撮合顺序是2-1-3。

View optionPattern.go
package main
import (
"fmt"
)
type options struct {
a int64
b string
c map[int]string
View context_with_timeout.go
package main
import (
"context"
"fmt"
"time"
)
func main() {
ctx := context.Background()
@yifanes
yifanes / FactoryMethod.go
Created Jul 22, 2019
golang工厂方法
View FactoryMethod.go
package main
import "fmt"
type Operator interface {
SetA(int)
SetB(int)
Result() int
}
View solarized-dark.xcs
[Solarized Dark]
text(bold)=839496
magenta(bold)=6c71c4
text=839496
white(bold)=fdf6e3
green=859900
red(bold)=cb4b16
green(bold)=586e75
black(bold)=073642
red=dc322f
View jdk_replace_openjdk.sh
//relace openjdk to sun-jdk
//envirment: mint (Ubuntu)
#wget http://download.oracle.com/otn-pub/java/jdk/7/jdk-7-linux-i586.tar.gz
#tar zxvf jdk-7-linux-i586.tar.gz
#mkdir /usr/local/jvm
#mv jdk1.7.0 /usr/local/jvm
#vim /etc/envirment
JAVA_HOME=/usr/local/jvm
@yifanes
yifanes / chain of php.php
Last active Dec 14, 2015
Using OOP serialize the chain of php,always used to handle the DB.
View chain of php.php
<?php
/**
* Created by JetBrains PhpStorm.
* User: zhangxy
* Date: 13-3-5
* Time: 下午2:31
*/
error_reporting(E_ALL | E_STRICT);
class Base_OOP_VAR{
You can’t perform that action at this time.