1
mirror of https://github.com/digineat/go-metatrader4.git synced 2025-12-03 11:13:59 +04:00

21 Commits

Author SHA1 Message Date
renovate[bot]
ba0635a111 Update actions/checkout action to v6 2025-11-20 17:25:52 +00:00
renovate[bot]
e2decfc923 Update module golang.org/x/text to v0.31.0 (#26)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-11-11 23:36:59 +00:00
renovate[bot]
eec4f27098 Update dependency go to v1.25.4 (#23)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-11-06 06:43:09 +00:00
renovate[bot]
b32aba8530 Update dependency go to v1.25.3 (#22)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-10-14 09:05:01 +00:00
renovate[bot]
0aaaafa1da Update module golang.org/x/text to v0.30.0 (#21)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-10-08 21:09:46 +00:00
renovate[bot]
c053b6367c Update dependency go to v1.25.2 (#20)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-10-08 11:07:45 +00:00
dependabot[bot]
7fe3c29a1a Bump actions/setup-go from 5 to 6 (#19)
Bumps [actions/setup-go](https://github.com/actions/setup-go) from 5 to 6.
- [Release notes](https://github.com/actions/setup-go/releases)
- [Commits](https://github.com/actions/setup-go/compare/v5...v6)

---
updated-dependencies:
- dependency-name: actions/setup-go
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Valentin Popov <valentin@popov.link>
2025-09-17 02:44:05 +04:00
renovate[bot]
da6a5d89b7 Update actions/setup-go action to v6 (#17)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-09-17 02:42:01 +04:00
renovate[bot]
4afa2d5fa0 Update module golang.org/x/text to v0.29.0 (#18)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-09-08 12:58:59 +00:00
renovate[bot]
9168227401 Update dependency go to v1.25.1 (#16)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-09-06 16:57:49 +00:00
renovate[bot]
b6d3cebcb9 Update dependency go to v1.25.0 (#15)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-08-13 05:14:04 +00:00
0920a88f2d Merge pull request #13 from digineat/renovate/actions-checkout-5.x
Update actions/checkout action to v5
2025-08-12 19:36:17 +04:00
renovate[bot]
6b2c2905f2 Update actions/checkout action to v5 2025-08-11 13:59:24 +00:00
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 29 additions and 26 deletions

View File

@@ -15,11 +15,11 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Check out code - name: Check out code
uses: actions/checkout@v4 uses: actions/checkout@v6
- name: Set up Go - name: Set up Go
uses: actions/setup-go@v5 uses: actions/setup-go@v6
with: with:
go-version: "1.24.4" go-version: "1.25.4"
- name: Cache Go modules - name: Cache Go modules
uses: actions/cache@v4 uses: actions/cache@v4
with: with:
@@ -47,11 +47,11 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Check out code - name: Check out code
uses: actions/checkout@v4 uses: actions/checkout@v6
- name: Set up Go - name: Set up Go
uses: actions/setup-go@v5 uses: actions/setup-go@v6
with: with:
go-version: "1.24.4" go-version: "1.25.4"
- 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.31.0

12
go.sum
View File

@@ -1,4 +1,8 @@
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.29.0 h1:1neNs90w9YzJ9BocxfsQNHKuAT4pkghyXc4nhZ6sJvk=
golang.org/x/text v0.26.0/go.mod h1:QK15LZJUUQVJxhz7wXgxSy/CJaTFjd0G+YLonydOVQA= golang.org/x/text v0.29.0/go.mod h1:7MhJOA9CD2qZyOKYazxdYMF85OwPdEr9jTtBpO7ydH4=
golang.org/x/text v0.30.0 h1:yznKA/E9zq54KzlzBEAWn1NXSQ8DIp/NYMy88xJjl4k=
golang.org/x/text v0.30.0/go.mod h1:yDdHFIX9t+tORqspjENWgzaCVXgk0yYnYuSZ8UzzBVM=
golang.org/x/text v0.31.0 h1:aC8ghyu4JhP8VojJ2lEHBnochRno1sgL6nEi9WGFGMM=
golang.org/x/text v0.31.0/go.mod h1:tKRAlv61yKIjGGHX/4tP1LTbc13YSec1pxVEWXzfoeM=

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.