0
mirror of https://github.com/valentineus/go-metatrader4.git synced 2025-08-12 09:26:40 +03:00

8 Commits

Author SHA1 Message Date
e073e69756 Deleted old GitHub Actions 2025-08-11 10:58:23 +00:00
61f75d0f7b Moved repositories to the organization 2025-08-11 10:57:49 +00:00
renovate[bot]
1d635b187a Update module golang.org/x/text to v0.28.0 (#12)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-08-07 20:31:37 +00:00
renovate[bot]
452b0d4076 Update dependency go to v1.24.6 (#11)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-08-07 04:56:49 +00:00
renovate[bot]
d6d0d2ede6 Update dependency go to v1.24.5 (#10)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-07-11 12:56:33 +00:00
renovate[bot]
bf914a1498 Update module golang.org/x/text to v0.27.0 (#9)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-07-10 03:09:06 +00:00
a045cc87d0 Update README with new source mirror URL and add GitHub Actions workflow for repository mirroring 2025-06-15 16:10:03 +04:00
8f88b8b9c8 Add Go Report Card badge to README 2025-06-09 16:48:59 +04:00
9 changed files with 19 additions and 22 deletions

View File

@@ -19,7 +19,7 @@ jobs:
- name: Set up Go - name: Set up Go
uses: actions/setup-go@v5 uses: actions/setup-go@v5
with: with:
go-version: "1.24.4" go-version: "1.24.6"
- name: Cache Go modules - name: Cache Go modules
uses: actions/cache@v4 uses: actions/cache@v4
with: with:
@@ -51,7 +51,7 @@ jobs:
- name: Set up Go - name: Set up Go
uses: actions/setup-go@v5 uses: actions/setup-go@v5
with: with:
go-version: "1.24.4" go-version: "1.24.6"
- name: Run golangci-lint - name: Run golangci-lint
uses: golangci/golangci-lint-action@v8 uses: golangci/golangci-lint-action@v8
with: with:

View File

@@ -1,4 +1,4 @@
Copyright (c) 2025 Valentin Popov <valentin@popov.link> Copyright (c) 2025 Valentin Popov <valentin.p@digineat.com>
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

View File

@@ -1,14 +1,14 @@
# MT4 Client Library # MT4 Client Library
[![Go Reference](https://pkg.go.dev/badge/go.popov.link/metatrader4.svg)](https://pkg.go.dev/go.popov.link/metatrader4) [![Go Reference](https://pkg.go.dev/badge/github.com/digineat/go-metatrader4.svg)](https://pkg.go.dev/github.com/digineat/go-metatrader4)
[![codecov](https://codecov.io/gh/valentineus/go-metatrader4/graph/badge.svg?token=6ZE32TQERQ)](https://codecov.io/gh/valentineus/go-metatrader4) [![Go Report Card](https://goreportcard.com/badge/github.com/digineat/go-metatrader4)](https://goreportcard.com/report/github.com/digineat/go-metatrader4)
A lightweight Go client library for interacting with a MetaTrader 4 (MT4) trading server over TCP. A lightweight Go client library for interacting with a MetaTrader 4 (MT4) trading server over TCP.
## Example Usage ## Example Usage
```go ```go
import "go.popov.link/metatrader4/mt4" import "github.com/digineat/go-metatrader4/mt4"
client := mt4.NewClient("127.0.0.1", 443, client := mt4.NewClient("127.0.0.1", 443,
mt4.WithDialTimeout(3*time.Second), mt4.WithDialTimeout(3*time.Second),
@@ -39,11 +39,10 @@ Use `WithAutoClose(false)` if you want to reuse the connection manually via `cli
## Project Info ## Project Info
- Vanity import path: `go.popov.link/metatrader4` - Vanity import path: `github.com/digineat/go-metatrader4/mt4`
- Source mirror (read-only): [code.popov.link](https://code.popov.link/valentineus/go-metatrader4) - Issues and contributions: [GitHub](https://github.com/digineat/go-metatrader4/issues)
- Issues and contributions: [GitHub](https://github.com/valentineus/go-metatrader4/issues)
Maintained by [Valentin Popov](mailto:valentin@popov.link). Maintained by [Valentin Popov](mailto:valentin.p@digineat.com).
## License ## License

View File

@@ -1,6 +1,6 @@
# Example: INFO Command # Example: INFO Command
This example demonstrates how to use the [`go-metatrader4`](https://github.com/valentineus/go-metatrader4) library to send the `INFO` command to a MetaTrader 4 (MT4) server and retrieve server information. This example demonstrates how to use the [`go-metatrader4`](https://github.com/digineat/go-metatrader4) library to send the `INFO` command to a MetaTrader 4 (MT4) server and retrieve server information.
The `INFO` command requests basic server details such as build version and company name. The `INFO` command requests basic server details such as build version and company name.

View File

@@ -6,7 +6,7 @@ import (
"log" "log"
"time" "time"
"go.popov.link/metatrader4/mt4" "github.com/digineat/go-metatrader4/mt4"
) )
func main() { func main() {

4
go.mod
View File

@@ -1,5 +1,5 @@
module go.popov.link/metatrader4 module github.com/digineat/go-metatrader4
go 1.24.2 go 1.24.2
require golang.org/x/text v0.26.0 require golang.org/x/text v0.28.0

6
go.sum
View File

@@ -1,4 +1,2 @@
golang.org/x/text v0.25.0 h1:qVyWApTSYLk/drJRO5mDlNYskwQznZmkpV2c8q9zls4= golang.org/x/text v0.28.0 h1:rhazDwis8INMIwQ4tpjLDzUhx6RlXqZNPEM0huQojng=
golang.org/x/text v0.25.0/go.mod h1:WEdwpYrmk1qmdHvhkSTNPm3app7v4rsT8F2UD6+VHIA= golang.org/x/text v0.28.0/go.mod h1:U8nCwOR8jO/marOQ0QbDiOngZVEBB7MAiitBuMjXiNU=
golang.org/x/text v0.26.0 h1:P42AVeLghgTYr4+xUnTRKDMqpar+PtX7KWuNQL21L8M=
golang.org/x/text v0.26.0/go.mod h1:QK15LZJUUQVJxhz7wXgxSy/CJaTFjd0G+YLonydOVQA=

View File

@@ -5,8 +5,8 @@ import (
"fmt" "fmt"
"time" "time"
"go.popov.link/metatrader4/internal/conn" "github.com/digineat/go-metatrader4/internal/conn"
"go.popov.link/metatrader4/internal/proto" "github.com/digineat/go-metatrader4/internal/proto"
) )
// Client provides access to a MetaTrader4 server. // Client provides access to a MetaTrader4 server.

View File

@@ -7,8 +7,8 @@ import (
"testing" "testing"
"time" "time"
ic "go.popov.link/metatrader4/internal/conn" ic "github.com/digineat/go-metatrader4/internal/conn"
"go.popov.link/metatrader4/internal/proto" "github.com/digineat/go-metatrader4/internal/proto"
) )
// mockServer returns net.Pipe connections with server writing resp to client. // mockServer returns net.Pipe connections with server writing resp to client.