Skip to content

Commit abed5e7

Browse files
Merge pull request #569 from crypto-chassis/develop
Release
2 parents 6eaff58 + 6d7759a commit abed5e7

168 files changed

Lines changed: 716 additions & 715 deletions

File tree

Some content is hidden

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

.github/workflows/test.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ on:
1414
- '**/README.md'
1515
- '**.example'
1616

17+
concurrency:
18+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
19+
cancel-in-progress: true
20+
1721
env:
1822
CMAKE_VERSION: 3.17.5
1923
NINJA_VERSION: 1.9.0
@@ -53,7 +57,7 @@ jobs:
5357
# }
5458

5559
steps:
56-
- uses: actions/checkout@v5
60+
- uses: actions/checkout@v6
5761

5862
- name: Download Ninja and CMake
5963
id: cmake_and_ninja

README.md

Lines changed: 70 additions & 78 deletions
Large diffs are not rendered by default.

binding/go/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ foreach(ZLIB_LIBRARY IN LISTS ZLIB_LIBRARIES)
121121
get_filename_component(ZLIB_LIBRARY_DIR ${ZLIB_LIBRARY} DIRECTORY)
122122
list(APPEND CGO_LDFLAGS_LIST -L${ZLIB_LIBRARY_DIR} -lz)
123123
endforeach()
124+
list(REMOVE_DUPLICATES CGO_LDFLAGS_LIST)
124125
list(JOIN CGO_LDFLAGS_LIST " " CGO_LDFLAGS)
125126
message(STATUS "CGO_LDFLAGS: ${CGO_LDFLAGS}")
126127
file(APPEND ${COMPILER_OPTIONS_FILE_PATH}

binding/go/example/execution_management_simple_request/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ type MyEventHandler struct {
1212
}
1313

1414
func (*MyEventHandler) ProcessEvent(event ccapi.Event, session ccapi.Session) {
15-
fmt.Printf("Received an event:\n%s\n", event.ToStringPretty(2, 2))
15+
fmt.Printf("Received an event:\n%s\n", event.ToPrettyString(2, 2))
1616
}
1717

1818
func main() {

binding/go/example/execution_management_simple_subscription/main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ type MyEventHandler struct {
1313

1414
func (*MyEventHandler) ProcessEvent(event ccapi.Event, session ccapi.Session) {
1515
if event.GetType() == ccapi.EventType_SUBSCRIPTION_STATUS {
16-
fmt.Printf("Received an event of type SUBSCRIPTION_STATUS:\n%s\n", event.ToStringPretty(2, 2))
16+
fmt.Printf("Received an event of type SUBSCRIPTION_STATUS:\n%s\n", event.ToPrettyString(2, 2))
1717
message := event.GetMessageList().Get(0)
1818
if message.GetType() == ccapi.MessageType_SUBSCRIPTION_STARTED {
1919
request := ccapi.NewRequest(ccapi.RequestOperation_CREATE_ORDER, "okx", "BTC-USDT")
@@ -27,7 +27,7 @@ func (*MyEventHandler) ProcessEvent(event ccapi.Event, session ccapi.Session) {
2727
session.SendRequest(request)
2828
}
2929
} else if event.GetType() == ccapi.EventType_SUBSCRIPTION_DATA {
30-
fmt.Printf("Received an event of type SUBSCRIPTION_DATA:\n%s\n", event.ToStringPretty(2, 2))
30+
fmt.Printf("Received an event of type SUBSCRIPTION_DATA:\n%s\n", event.ToPrettyString(2, 2))
3131
}
3232
}
3333

binding/go/example/fix_simple/main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ type MyEventHandler struct {
1313

1414
func (*MyEventHandler) ProcessEvent(event ccapi.Event, session ccapi.Session) {
1515
if event.GetType() == ccapi.EventType_AUTHORIZATION_STATUS {
16-
fmt.Printf("Received an event of type AUTHORIZATION_STATUS:\n%s\n", event.ToStringPretty(2, 2))
16+
fmt.Printf("Received an event of type AUTHORIZATION_STATUS:\n%s\n", event.ToPrettyString(2, 2))
1717
message := event.GetMessageList().Get(0)
1818
if message.GetType() == ccapi.MessageType_AUTHORIZATION_SUCCESS {
1919
request := ccapi.NewRequest(ccapi.RequestOperation_FIX, "coinbase", "", "same correlation id for subscription and request")
@@ -44,7 +44,7 @@ func (*MyEventHandler) ProcessEvent(event ccapi.Event, session ccapi.Session) {
4444
session.SendRequestByFix(request)
4545
}
4646
} else if event.GetType() == ccapi.EventType_FIX {
47-
fmt.Printf("Received an event of type FIX:\n%s\n", event.ToStringPretty(2, 2))
47+
fmt.Printf("Received an event of type FIX:\n%s\n", event.ToPrettyString(2, 2))
4848
}
4949
}
5050

binding/go/example/market_data_simple_request/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ type MyEventHandler struct {
1111
}
1212

1313
func (*MyEventHandler) ProcessEvent(event ccapi.Event, session ccapi.Session) {
14-
fmt.Printf("Received an event:\n%s\n", event.ToStringPretty(2, 2))
14+
fmt.Printf("Received an event:\n%s\n", event.ToPrettyString(2, 2))
1515
}
1616

1717
func main() {

binding/go/example/market_data_simple_subscription/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ type MyEventHandler struct {
1212

1313
func (*MyEventHandler) ProcessEvent(event ccapi.Event, session ccapi.Session) {
1414
if event.GetType() == ccapi.EventType_SUBSCRIPTION_STATUS {
15-
fmt.Printf("Received an event of type SUBSCRIPTION_STATUS:\n%s\n", event.ToStringPretty(2, 2))
15+
fmt.Printf("Received an event of type SUBSCRIPTION_STATUS:\n%s\n", event.ToPrettyString(2, 2))
1616
} else if event.GetType() == ccapi.EventType_SUBSCRIPTION_DATA {
1717
messageList := event.GetMessageList()
1818
for i := 0; i < int(messageList.Size()); i++ {

binding/go/go.mod.in

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
11
module cryptochassis.com
2+
3+
go 1.17

binding/go/go.mod.in_2

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
module main
22

3+
go 1.17
4+
35
require (
46
cryptochassis.com/ccapi v1.0.0
57
)

0 commit comments

Comments
 (0)