Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
PyWaves authored Jun 7, 2017
1 parent 90cee5e commit a07dfaa
Showing 1 changed file with 21 additions and 21 deletions.
42 changes: 21 additions & 21 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,10 @@ __pywaves.Address(address, publicKey, privateKey, seed)__ _Creates a new Address

`uniqueAsset(Asset, txFee=DEFAULT_UNIQUE_FEE)` make asset name unique

###Asset Class
### Asset Class
__pywaves.Asset(assetId)__ _Creates a new Asset object_

####attributes:
#### attributes:
- _status_
- _assetId_
- _issuer_
Expand All @@ -88,18 +88,18 @@ __pywaves.Asset(assetId)__ _Creates a new Asset object_
- _decimals_ = 0
- _reissuable = False_

####methods:
#### methods:
`status()` returns 'Issued' if the asset exists


###AssetPair Class
### AssetPair Class
__pywaves.AssetPair(asset1, asset2)__ _Creates a new AssetPair object with 2 Asset objects_

####attributes:
#### attributes:
- _asset1_
- _asset2_

####methods:
#### methods:
`orderbook()` get order book
`ticker()` get ticker with 24h ohlcv data
`last()` get traded price
Expand All @@ -115,23 +115,23 @@ __pywaves.AssetPair(asset1, asset2)__ _Creates a new AssetPair object with 2 Ass
`candles(timeframe, n)` get the last n candles in the specified timeframe
`candles(timeframe, from, to)` get the candles in from/to interval in the specified timeframe

###Order Class
### Order Class
__pywaves.Order(orderId, assetPair, address='')__ Creates a new Order object

####attributes:
#### attributes:
- _status_
- _orderId_
- _assetPair_
- _address_
- _matcher_
- _matcherPublicKey_

####methods:
#### methods:
`status()` returns current order status
`cancel()` cancel the order


##Other functions
## Other functions
`pywaves.setNode(node, chain)` set node URL ('http://ip-address:port') and chain (either 'mainnet' or 'testnet')

`pywaves.setMatcher(node)` set matcher URL ('http://ip-address:port')
Expand Down Expand Up @@ -166,7 +166,7 @@ The fees for waves/asset transfers, asset issue/reissue/burn and matcher transac

## More Examples

####Playing with addresses:
#### Playing with addresses:

```python
import pywaves as pw
Expand All @@ -184,7 +184,7 @@ myAddress = pw.Address(seed='seven wrist bargain hope pattern banner plastic map
myAddress = pw.Address(privateKey='CtMQWJZqfc7PRzSWiMKaGmWFm4q2VN5fMcYyKDBPDx6S')
```

####Balances:
#### Balances:
```python
import pywaves as pw

Expand All @@ -200,7 +200,7 @@ print("Your balance is %18d" % myAddress.balance(confirmations = 20))
print("Your asset balance is %18d" % myAddress.balance('DHgwrRvVyqJsepd32YbBqUeDH4GJ1N984X8QoekjgH8J'))
```

####Waves and asset transfers:
#### Waves and asset transfers:
```python
import pywaves as pw

Expand All @@ -217,7 +217,7 @@ myAddress.sendAsset(recipient = pw.Address('3PNTcNiUzppQXDL9RZrK3BcftbujiFqrAfM'
amount = 1000)
```

####Issuing an asset:
#### Issuing an asset:
```python
import pywaves as pw

Expand All @@ -227,23 +227,23 @@ myToken = myAddress.issueToken( name = "MyToken",
decimals = 2 )
```

####Making asset name unique:
#### Making asset name unique:
```python
import pywaves as pw

myToken = pw.Asset("8dzLYRNtYR6ASG2W4h3FqeeY49paRxNheQwRW6CpP1HT")
myAddress.uniqueAsset(myToken)
```

####Create an alias:
#### Create an alias:
```python
import pywaves as pw

myAddress = pw.Address(privateKey='CtMQWJZqfc7PRzSWiMKaGmWFm4q2VN5fMcYyKDBPDx6S')
myAddress.createAlias("MYALIAS1")
```

####Mass payment:
#### Mass payment:
```python
import pywaves as pw

Expand All @@ -259,7 +259,7 @@ for address in recipients:
myAddress.sendWaves(pw.Address(address), 1000000)
```

####Token airdrop:
#### Token airdrop:
```python
import pywaves as pw

Expand All @@ -273,7 +273,7 @@ for address in lines:
myAddress.sendAsset(pw.Address(address.strip()), myToken, amount)
```

####Playing with Waves Matcher node (DEX):
#### Playing with Waves Matcher node (DEX):
```python
import pywaves as pw

Expand Down Expand Up @@ -304,7 +304,7 @@ myAddress.cancelOrder(assetPair, myOrder)

```

####Getting Market Data from Waves Data Feed (WDF):
#### Getting Market Data from Waves Data Feed (WDF):
```python
import pywaves as pw

Expand All @@ -330,7 +330,7 @@ for t in ohlcv:
print("%s %s %s %s %s" % (t['open'], t['high'], t['low'], t['close'], t['volume']))
```

####LPOS
#### LPOS
```python
import pywaves as pw

Expand Down

0 comments on commit a07dfaa

Please sign in to comment.